* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #f3e5f5, #ede7f6);
  color: #2c2c2c;
  min-height: 150vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background: linear-gradient(90deg, #b5056c, #8e24aa);
  color: #fff;
  text-align: center;
  padding: 1.2rem 0;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

header h1 {
  letter-spacing: 1px;
  font-size: 1.8rem;
}

/* Navigation */
nav {
  background-color: #4a148c;
  display: flex;
  justify-content: center;
  gap: 1.7rem;
  padding: 0.8rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.4s ease;
}

nav a:hover {
  color: #e393f1;
}

/* Main Layout */
main {
  flex: 5;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Form Containers */
.form-box {
  background-color: #ffffff;
  padding: 5rem;
  border-radius: 17px;
  max-width: 430px;
  width: 100%;
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.16);
  margin-top: 3rem;
  animation: fadeIn 0.8s ease-in-out;
}

.form-box h2 {
  text-align: center;
  color: #4a148c;
  margin-bottom: 1.2rem;
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

input,
select {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.5rem;
  border: 1px solid #bbb;
  border-radius: 6px;
  transition: border 0.3s, box-shadow 0.3s;
}

input:focus,
select:focus {
  border-color: #8e24aa;
  box-shadow: 0 0 6px rgba(142, 36, 170, 0.3);
  outline: none;
}

button,
input[type="submit"] {
  background: #8e24aa;
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  margin-top: 1.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
  background: #6a1b9a;
  transform: scale(1.03);
}

/* Gender Styling */
fieldset {
  border: 1px solid #bbb;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  margin-top: 1rem;
}

legend {
  font-weight: 600;
  color: #6a1b9a;
}

.gender-options {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.gender-options input {
  accent-color: #8e24aa;
  transform: scale(1.2);
}

/* Home Page */
.home-content {
  text-align: center;
  max-width: 700px;
  margin-top: 3rem;
}

.home-content h1 {
  color: #6a1b9a;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.home-content p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.7;
}

/* About Us Page */
.about-section {
  max-width: 800px;
  background: #fff;
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  margin-top: 2rem;
}

.about-section h2 {
  color: #4a148c;
  margin-bottom: 3rem;
}

.about-container p {
  color: #333;
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.about-section img {
  display: block;
  margin: 1rem auto;
  max-width: 160px;
  border-radius: 50%;
  border: 3px solid #8e24aa;
}

/* Footer */
footer {
  background: #4a148c;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .form-box,
  .about-section {
    width: 90%;
  }

  header h1 {
    font-size: 1.5rem;
  }
}
/* for invalid input */
.input-error {
  border: 2px solid #e50914 !important; /* Netflix-style red */
  box-shadow: 0 0 4px rgba(229, 9, 20, 0.3);
  outline: none;
  border-radius: 6px;
}


.error-msg {
  color: #e50914;
  font-size: 0.9rem;
  margin-top: 5px;
  margin-bottom: 10px;
  font-weight: 500;
}



