.background-title {
  min-height: clamp(300px, 40vh, 400px); /* Responsive height based on screen size */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* .container-fluid {
  background: #f1fbfc;
} */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner-container {
  text-align: center;
}


ul li {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admissions-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 50px 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.admissions-card-wrapper::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  z-index: -1;
  opacity: 0.8;
}

.admissions-card-wrapper::before {
  background: #17a2b8; /* yellow */
}


/* .admissions-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-bottom: 12px solid #117985;
  margin-bottom: 50px;
} */

/* @media (max-width: 480px) {
  .content-container { padding: 0 0.5rem; }
  ul li { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
} */
/* Default font size for larger screens */
.approach,
.list {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #333333;
  text-align: justify;
  line-height: 1.8;
}

/* Hover styles for links */
.app-link, .mail-admission {
  color: #17a2b8;
  text-decoration: none;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

body.loading {
  overflow: hidden; /* Prevent scrolling while loading */
}

.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.spinner-wrapper {
  position: relative;
}

.spinner-image {
  width: 100px;
  height: 100px;
  animation: spin 2s linear infinite;
}

@media (max-width: 768px) {
  .spinner-image {
    width: 15vw;
    height: 15vw;
  }
}

@media (max-width: 480px) {
  .spinner-image {
    width: 20vw;
    height: 20vw;
  }
}


.loading-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  border: 5px solid #ccc;
  border-radius: 50%;
  border-top: 5px solid #3498db;
  animation: rotate 5s linear infinite;
  transform: translate(-50%, -50%);
}

.d-none {
  display: none;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.fade-out {
  opacity: 0;
}

ul {
  padding-left: 0px;
}

/* @media (max-width: 376px) {
  .text {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }
} */
@media (max-width: 1024px) {
  .approach {
    font-size: clamp(1rem, 2.2vw, 1.3rem); /* Adjust size for tablets and smaller laptops */
  }
  .app-link, .mail-admission {
    color: #17a2b8;
    text-decoration: none;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
  }
  .background-title {
    min-height: clamp(250px, 35vh, 350px); /* Adjust height for medium screens */
  }
}
/* Smaller screens (max-width: 768px) */
@media (max-width: 768px) {
  .background-title {
    min-height: clamp(200px, 30vh, 300px);
  }
  .app-link, .mail-admission {
    color: #17a2b8;
    text-decoration: none;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
  }
  .approach {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
  }
}

/* Very small screens (max-width: 480px) */
@media (max-width: 480px) {
  .background-title {
    min-height: clamp(150px, 25vh, 250px);
  }
  /* .app-link {
    font-size: clamp(0.8rem, 2vw, 1rem);
  }
  .approach {
    font-size: clamp(0.8rem, 2vw, 1rem);
  } */
}
.email-link {
  text-decoration: none;
  color:#fff;
}
.email-link:hover {
  text-decoration: underline;
  color: #fff;
}

/* Selected option */
/* Selected option */
.selected-option {
  display: flex;
  align-items: center;
  gap: 8px; /* space between flag and name */
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  min-height: 40px;
}

.selected-option .selected-flag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0; /* flag does not shrink */
}

.selected-option input {
  border: none;
  outline: none;
  flex-grow: 1;      /* input takes remaining space */
  min-width: 0;      /* allows text to shrink */
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected-option .dropdown-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  border-right: 2px solid black;
  border-bottom: 2px solid black;
  transition: transform 0.3s ease;
}

/* Dropdown items */
.options .option div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.options .option div span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tablet responsiveness */
@media (max-width: 768px) {
  .selected-option input,
  .options .option div span {
    font-size: 0.9rem;
  }
  .selected-option .selected-flag span {
    transform: scale(0.9); /* shrink flag slightly */
  }
  .selected-option {
    padding: 6px 8px;
    gap: 6px;
  }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .selected-option input,
  .options .option div span {
    font-size: 0.8rem;
  }
  .selected-option .selected-flag span {
    transform: scale(0.8); /* shrink flag more */
  }
  .selected-option {
    gap: 4px;
    padding: 5px 6px;
  }
  .selected-option .dropdown-arrow {
    width: 8px;
    height: 8px;
  }
}

.spinner-image {
  position: relative;
  width: 7rem;
  height: 7rem;
  border-top: 3px solid #17a2b8;
  border-radius: 50%;
  animation: rotate 2s linear infinite;
}

/* Inner circles */
.spinner-image::before,
.spinner-image::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border-top: 3px solid transparent;
}

.spinner-image::before {
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-top-color: #6fc3d5;
  animation: rotate 2s linear infinite;
}

.spinner-image::after {
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border-top-color: #0f6c85;
  animation: rotate 1s linear infinite;
}

/* Rotation animation */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive spinner sizes */
@media (max-width: 768px) {
  .spinner-image {
    width: 5rem;
    height: 5rem;
  }

  .spinner-image::before {
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
  }

  .spinner-image::after {
    top: 7px;
    left: 7px;
    right: 7px;
    bottom: 7px;
  }
}

@media (max-width: 480px) {
  .spinner-image {
    width: 4rem;
    height: 4rem;
  }

  .spinner-image::before {
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
  }

  .spinner-image::after {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
  }
}

/* Container & Section */
.child-registration-section {
  background: #f8f9fa;
}

/* Section Title */
.section-title {
  font-size: clamp(1rem, 2.2vw, 1.3rem); /* responsive */
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
  white-space: normal; /* allow wrapping on very small screens */
}

/* Section Description */
.section-description {
  font-size: clamp(0.9rem, 2vw, 1.1rem); /* responsive scaling */
  color: #495057;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
  text-align: center;
}

/* Form Cards */
.form-card {
  border-radius: 1rem;
  padding: clamp(1.5rem, 2vw, 2rem); /* responsive padding */
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}

.form-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Card Titles */
.card-title {
  color: #17a2b8;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.25rem); /* responsive */
  border-bottom: 2px solid #17a2b8;
  padding-bottom: 0.25rem;
  margin-bottom: 1.5rem; /* increased gap after title */
}

/* Add gap between form groups */
.mb-3 {
  margin-bottom: 1.5rem !important; /* increased gap between fields */
}

/* Add gap between columns in row */
.row.g-2 {
  row-gap: 1rem; /* gap between rows on mobile */
  column-gap: 1rem; /* gap between columns */
}

/* Inputs & Labels */
.form-control {
  border-radius: 0.5rem;
  padding: clamp(0.5rem, 1vw, 0.75rem); /* increased padding */
  font-size: clamp(0.85rem, 1.5vw, 1rem); /* responsive font size */
  border: 1px solid #ced4da;
  margin-bottom: 0; /* remove default margin */
}

.form-label {
  font-weight: 600;
  color: #495057;
  font-size: clamp(0.85rem, 1.5vw, 1rem); /* responsive */
  margin-bottom: 0.5rem; /* gap between label and input */
}

/* Radio Buttons */
.form-check {
  margin-bottom: 0.5rem;
}

.form-check-label {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  margin-left: 0.25rem;
}

/* Submit Button */
.submit-btn {
  background-color: #17a2b8;
  border-color: #17a2b8;
  font-size: clamp(0.95rem, 2vw, 1.1rem); /* responsive */
  padding: clamp(0.5rem, 1vw, 0.6rem) clamp(1.5rem, 2vw, 2rem); /* responsive */
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
  width: 100%; /* mobile full width */
  max-width: 300px; /* limit size on large screens */
  display: block;
  margin: 2rem auto 0 auto; /* increased top margin */
}

.submit-btn:hover {
  background-color: #0b5ed7;
  border-color: #0b5ed7;
  box-shadow: 0 6px 20px rgba(11, 94, 215, 0.5);
}

/* Gap between cards */
.card.shadow-sm {
  margin-bottom: 1.5rem; /* gap between cards */
}

/* Media Queries for Very Small Screens */
@media (max-width: 480px) {
  .form-card {
    padding: 1rem 1rem;
  }
  .card-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  .form-control, .form-label, .form-check-label {
    font-size: 0.85rem;
  }
  .mb-3 {
    margin-bottom: 1rem !important; /* reduced gap on mobile */
  }
  .submit-btn {
    font-size: 0.95rem;
    padding: 0.45rem 1.25rem;
    margin-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  .row.g-2 {
    row-gap: 1rem;
  }
}

.error {
  color: red;
  font-size: clamp(14px, 1.2vw, 16px); /* Responsive font size */
  min-height: 18px;
  display: block;
  margin-top: 5px;
}

.resize-none {
  resize: none;
}
