/* ============================================================
   pls-find-branches.css
   Exclusive styles for the "Find Podar Learn School Branches" section.
   All class names are prefixed with "pls-" to avoid conflicts
   with the existing location.css styles.
   ============================================================ */

/* ---- Section wrapper ---- */
.pls-find-branches {
  /* margin-top creates visual breathing room below the
     "Search through state - Podar International School" section */
  margin-top: 60px;
  padding-bottom: 40px;
  font-family: "Urbanist", "Poppins", sans-serif;
}

@media screen and (max-width: 1200px) {
  .pls-find-branches {
    margin-top: 48px;
    padding-bottom: 50px;
  }
}

@media screen and (max-width: 768px) {
  .pls-find-branches {
    margin-top: 36px;
    padding-bottom: 40px;
  }
}

/* ---- Heading
   Uses the site's existing .font-heading + .gradient-text classes
   for styling. This rule only handles spacing below the heading,
   matching the pattern used in .applicationForm .font-heading.
   ---- */
.pls-find-branches .pls-heading {
  font-size: 40px;
  line-height: 1.5;
  margin-bottom: 36px;
}

@media screen and (max-width: 1440px) {
  .pls-find-branches .pls-heading {
    font-size: 38px;
  }
}

@media screen and (max-width: 1336px) {
  .pls-find-branches .pls-heading {
    font-size: 35px;
  }
}

@media screen and (max-width: 1280px) {
  .pls-find-branches .pls-heading {
    font-size: 30px;
  }
}

@media screen and (max-width: 768px) {
  .pls-find-branches .pls-heading {
    font-size: 28px;
    margin-bottom: 28px;
  }
}

/* ---- Dropdowns row ---- */
.pls-dropdowns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 36px;
}

/* ---- Individual dropdown wrapper ---- */
.pls-select-wrap {
  flex: 1 1 200px;
  max-width: 260px;
}

/* ---- The <select> element
   Inherits the site's .form-select styles (arrow, border, padding, font)
   from location.css. The rules here only handle layout overrides.
   ---- */
.pls-find-branches .pls-select {
  /* The purple chevron arrow is already provided by .form-select
     in location.css via its background-image SVG — no override needed. */
  width: 100%;
}

/* Disabled state — slightly muted to indicate not yet selectable */
.pls-find-branches .pls-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---- Results panel ---- */
.pls-results {
  display:    none;
  text-align: left;
  padding:    32px 36px;
  /* border-top: 2px solid rgba(131, 41, 150, 0.18); */
  margin-top: 8px;
}

/* Visible state – added by JS when all 4 dropdowns are selected */
.pls-results.pls-results--visible {
  display: block;
  animation: plsFadeUp 0.35s ease forwards;
}

@keyframes plsFadeUp {
  from {
    opacity:   0;
    transform: translateY(10px);
  }
  to {
    opacity:   1;
    transform: translateY(0);
  }
}

/* ---- Results inner grid – 4 equal columns ---- */
.pls-results-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   24px;
  align-items:           start;
}

/* ---- Single result column ---- */
.pls-result-col {
  text-align: left;
}

/* ---- Label  e.g. "» School Name:" – bold, slightly darker purple ---- */
.pls-result-label {
  font-family: "Urbanist", "Poppins", sans-serif;
  font-size:   1.2rem;
  font-weight: 600;               /* extra-bold for clear label weight */
  color:       #832996;           /* one shade darker than brand purple #832996 */
  margin-bottom: 6px;
  line-height: 1.4;
  text-decoration: underline;
}

/* ---- Value – regular weight, brand purple ---- */
.pls-result-value {
  font-family: "Urbanist", "Poppins", sans-serif;
  font-size:   1rem;
  font-weight: 400;
  color:       #832996;           /* brand purple, as requested */
  margin-bottom: 0;
  line-height: 1.6;
}

/* ============================================================
   Responsive overrides
   ============================================================ */

/* Tablet – 2 columns for dropdowns, 2 columns for results */
@media only screen and (max-width: 991px) {
  .pls-select-wrap {
    flex:      1 1 calc(50% - 20px);
    max-width: none;
  }

  .pls-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
  }
}

/* Mobile – single column throughout */
@media only screen and (max-width: 575px) {
  .pls-dropdowns {
    gap: 16px;
  }

  .pls-select-wrap {
    flex:      1 1 100%;
    max-width: none;
  }

  .pls-results {
    padding: 4px 4px;
  }

  .pls-results-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pls-result-label,
  .pls-result-value {
    font-size: 0.9rem;
  }
}