/* ==========================================================================
   Public tuition enquiry — matches the live page: navy gradient backdrop,
   centred green card, blue section headings. Mobile-first.
   ========================================================================== */

.enq {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1.5rem, 1rem + 3vw, 3rem) 1rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.enq__head { text-align: center; margin-bottom: 1.5rem; }
.enq__logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  padding: 3px;
  display: block;
}
.enq__head h1 {
  color: #fff;
  font-family: var(--edsy-heading-font);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.enq__head p { color: var(--edsy-text-muted); font-size: 0.9375rem; margin: 0; }

.enq__card {
  width: 100%;
  max-width: 50rem;
  margin-inline: auto;
  background: var(--edsy-surface);
  border: 1px solid var(--edsy-border);
  border-radius: var(--edsy-radius-lg);
  padding: clamp(1.25rem, 1rem + 2vw, 2rem);
}

/* Blue section headings, as on the live page. */
.enq__section {
  color: #40a9ff;
  font-size: 1rem;
  font-weight: 700;
  margin: 1.75rem 0 1rem;
}
.enq__section:first-of-type { margin-top: 0; }

/* Single column on phones, two from 700px. */
.enq__grid {
  display: grid;
  gap: 0 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .enq__grid { grid-template-columns: 1fr 1fr; }
  .enq__grid .field--wide { grid-column: 1 / -1; }
}

.enq .field { margin-bottom: 1.1rem; }
.enq .field > label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--edsy-text-secondary);
}

.enq input[type='text'],
.enq input[type='email'],
.enq input[type='tel'],
.enq select,
.enq textarea {
  min-height: 44px;
  background: rgba(30, 61, 53, 0.6);
  border: 1px solid #3D6B5A;
  border-radius: var(--edsy-radius);
  color: #fff;
}
/* Fallback height for the native control if the enhancement script fails. */
.enq select[multiple] { min-height: 6.5rem; padding: 0.35rem; }
.enq__grid { align-items: start; }

/* ---------- Tag-style multi-select --------------------------------------
   Replaces the native <select multiple> once multiselect.js has enhanced it,
   matching the single-line tag input used on the live site. */

select.ms-enhanced { display: none; }

.ms { position: relative; }

.ms__control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.3rem 2rem 0.3rem 0.55rem;
  background: rgba(30, 61, 53, 0.6);
  border: 1px solid #3D6B5A;
  border-radius: var(--edsy-radius);
  cursor: text;
}
.ms:hover .ms__control { border-color: var(--edsy-primary); }
.ms.is-open .ms__control {
  border-color: var(--edsy-primary);
  box-shadow: 0 0 0 3px rgba(165, 201, 60, 0.18);
}
.ms.is-disabled .ms__control {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: #3D6B5A;
}

.ms__chips { display: contents; }

.ms__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  padding: 0.2rem 0.35rem 0.2rem 0.55rem;
  font-size: 0.8125rem;
  color: var(--edsy-text);
  background: rgba(165, 201, 60, 0.16);
  border: 1px solid var(--edsy-border);
  border-radius: var(--edsy-radius-sm);
}
.ms__chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms__chip-x {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  color: var(--edsy-text-muted);
  background: none;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.ms__chip-x:hover { color: var(--edsy-error); background: rgba(220, 38, 38, 0.15); }

/* The search box grows to fill whatever room the chips leave. */
.ms__search {
  flex: 1 1 6rem;
  min-width: 6rem;
  min-height: 28px !important;
  padding: 0 !important;
  font-size: 0.9375rem;
  color: #fff;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
}
.ms__search::placeholder { color: var(--edsy-text-muted); }

.ms__arrow {
  position: absolute;
  top: 12px;
  right: 0.7rem;
  color: var(--edsy-text-muted);
  font-size: 0.75rem;
  pointer-events: none;
}

.ms__menu {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 15rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--edsy-surface);
  border: 1px solid var(--edsy-primary);
  border-radius: var(--edsy-radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  padding: 0.25rem;
}

.ms__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;           /* comfortable tap target */
  padding: 0.4rem 0.6rem;
  border-radius: var(--edsy-radius-sm);
  color: var(--edsy-text-secondary);
  font-size: 0.9375rem;
  cursor: pointer;
}
.ms__option:hover,
.ms__option.is-active { background: var(--edsy-elevated); color: #fff; }
.ms__option.is-selected { color: var(--edsy-primary); font-weight: 600; }
.ms__check { width: 1rem; flex: none; color: var(--edsy-primary); }

.ms__empty {
  padding: 0.75rem 0.6rem;
  color: var(--edsy-text-muted);
  font-size: 0.875rem;
  text-align: center;
}
.enq select[multiple] option {
  padding: 0.35rem 0.5rem;
  border-radius: var(--edsy-radius-sm);
}
.enq input:hover, .enq select:hover, .enq textarea:hover { border-color: var(--edsy-primary); }
.enq input:focus, .enq select:focus, .enq textarea:focus {
  border-color: var(--edsy-primary);
  box-shadow: 0 0 0 3px rgba(165, 201, 60, 0.18);
}
.enq select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: #3D6B5A;
}

.enq .help { font-size: 0.75rem; color: var(--edsy-text-subtle); }
.enq .errorlist { color: #ff6b6b; font-size: 0.75rem; }

.enq__submit {
  width: 100%;
  min-height: 48px;
  margin-top: 0.75rem;
  background: var(--edsy-primary);
  color: var(--edsy-on-primary);
  border: 0;
  font-size: 1rem;
  font-weight: 700;
}
.enq__submit:hover { background: var(--edsy-primary-light); }

.enq__back { display: block; text-align: center; margin-top: 1rem; color: #40a9ff; font-size: 0.875rem; }

.enq .messages { margin: 0 0 1rem; }

/* ---------- Success screen ----------------------------------------------- */

.enq__result {
  max-width: 37.5rem;
  margin-inline: auto;
  background: var(--edsy-surface);
  border: 1px solid var(--edsy-border);
  border-radius: var(--edsy-radius-lg);
  padding: clamp(1.75rem, 1.25rem + 3vw, 3rem) 1.5rem;
  text-align: center;
}
.enq__result-icon { color: #52c41a; width: 64px; height: 64px; margin: 0 auto 1rem; display: block; }
.enq__result h1 { color: #fff; font-size: 1.5rem; margin-bottom: 0.5rem; }
.enq__result p { color: var(--edsy-text-muted); }
.enq__ref {
  display: inline-block;
  margin: 0.5rem 0 1.5rem;
  padding: 0.4rem 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--edsy-primary);
  background: rgba(165, 201, 60, 0.12);
  border: 1px solid var(--edsy-border);
  border-radius: 999px;
}
