/* ITM IDM — enquiry form styles.
   From v1.2 shared/css/forms.css + idm-form-chrome.css, in that order,
   unchanged. The overlay, dialog and close button used by the event
   popup are styled here too. */
/* ========================================================================
   forms.css
   ======================================================================== */
/* ============================================================
   ITM BBA Website — Form Component Styles
   Covers: hero enquiry form, modal 2-step form, OTP input,
   field styling, validation states, mobile bottom bar.
   ============================================================ */

/* ---- Field container ---- */
.hq-f {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* ---- Label ---- */
.hq-l {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.hq-l i {
  font-style: normal;
  color: var(--text-faint);
  font-weight: var(--fw-regular, 400);
}

/* ---- Text input ---- */
.hq-i {
  width: 100%;
  min-width: 0;
  height: 48px;
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--text-strong);
  background: var(--surface-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  outline: none;
  transition:
    border-color var(--dur-base) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard);
}
.hq-i::placeholder {
  color: var(--text-faint);
}
.hq-i:hover {
  border-color: var(--border-strong);
}
.hq-i:focus {
  border-color: var(--inst, var(--accent-bschool));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-bschool) 18%, transparent);
}

/* ---- Select wrapper ---- */
.hq-sel {
  position: relative;
}
.hq-sel select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
.hq-sel > span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: inline-flex;
  color: var(--text-muted);
}
.hq-sel select:disabled {
  cursor: not-allowed;
  background: var(--surface-sunken);
}

/* ---- Select option styling ---- */
select option {
  color: var(--text-strong);
  background: var(--surface-card);
  font-family: var(--font-body);
}
select option[value=""] {
  color: var(--text-faint);
}

/* ---- Telephone prefix ---- */
.hq-tel {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  transition:
    border-color var(--dur-base) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard);
}
.hq-tel:focus-within {
  border-color: var(--inst, var(--accent-bschool));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-bschool) 18%, transparent);
}
.hq-tel > span {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-family: var(--font-ui);
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  background: var(--surface-sunken);
  border-right: 1.5px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.hq-tel input {
  border: none !important;
  box-shadow: none !important;
  height: 45px;
}

/* ---- 2-column row ---- */
.hq-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

/* ---- Primary action button ---- */
.hq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  font-family: var(--font-ui);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  transition:
    background-color var(--dur-base) var(--ease-standard),
    transform var(--dur-base) var(--ease-standard);
}
.hq-btn:active {
  transform: translateY(1px);
}
/* Form buttons are always brand crimson (same as the Enquire Now button). Validation runs on click and explains what is missing. */
.hq-btn { background-color: var(--surface-brand); box-shadow: var(--shadow-brand); cursor: pointer; }
.hq-btn:hover { filter: brightness(0.94); }
.hq-btn:disabled { cursor: progress; opacity: 0.85; }

/* ---- Success card (shown in place after a server-confirmed submit) ---- */
.hq-done { text-align: left; }
.hq-done__badge { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: var(--space-6) 0 var(--space-4); background: color-mix(in srgb, var(--surface-brand) 14%, white); color: var(--surface-brand); }
.hq-done__name { font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--fw-bold); color: var(--text-strong); margin: 0 0 var(--space-2); line-height: var(--lh-snug); overflow-wrap: anywhere; }
.hq-done__text { font-family: var(--font-body); font-weight: var(--fw-light); font-size: var(--text-md); line-height: var(--lh-relaxed); color: var(--text-body); margin: 0 0 var(--space-3); }
.hq-done__link { display: inline-block; font-family: var(--font-ui); font-size: var(--text-sm); font-weight: var(--fw-semibold); color: color-mix(in srgb, var(--accent-bschool) 78%, black); text-decoration: underline; text-underline-offset: 3px; }
.hq-done__actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-6); }
.hq-done__actions .hq-btn { width: auto; min-width: 140px; padding: 0 var(--space-6); }
.hq-done__back { font-family: var(--font-ui); font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--text-muted); background: none; border: none; cursor: pointer; padding: var(--space-2) 0; }

/* ---- Inline link-style button ---- */
.hq-link {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* ---- Form card golden-ratio stripe ---- */
.hq-stripe {
  height: 6px;
  display: flex;
}
.hq-stripe > span:first-child {
  width: 61.8%;
  background: var(--crimson);
}
.hq-stripe > span:last-child {
  width: 38.2%;
  background: var(--inst, var(--accent-bschool));
}

/* ---- OTP input ---- */
.hq-otp {
  width: 100%;
  height: 60px;
  font-family: var(--font-ui);
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.5em;
  text-align: center;
  color: var(--text-strong);
  background: var(--surface-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  outline: none;
  transition:
    border-color var(--dur-base) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard);
}
.hq-otp:focus {
  border-color: var(--inst, var(--accent-bschool));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-bschool) 18%, transparent);
}
.hq-otp[aria-invalid="true"] {
  border-color: var(--danger, #c0392b);
}

/* ---- Validation error ---- */
.hq-error {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--danger, #c0392b);
}

/* ---- Enquire modal location grid ---- */
.enq-loc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}
.enq-loc select:disabled {
  cursor: not-allowed !important;
  background: var(--surface-sunken) !important;
}

/* ============================================================
   MODAL OVERLAY
   ============================================================ */
.enq-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 13, 24, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.enq-dialog {
  width: 100%;
  max-width: 520px;
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  max-height: 92vh;
  overflow-y: auto;
}

/* ============================================================
   MOBILE BOTTOM BAR
   ============================================================ */
.itm-mbar {
  display: none;
}
.itm-rail-enq {
  display: inline-flex;
}

@media (max-width: 760px) {
  .itm-rail-enq { display: none !important; }
  .itm-mbar {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 96;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--surface-card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px rgba(14, 13, 24, 0.16);
  }
  .itm-mbar a,
  .itm-mbar button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 48px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    font-weight: var(--fw-bold);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 420px) {
  .hq-row { grid-template-columns: 1fr; }
  .enq-loc { grid-template-columns: 1fr !important; }
}

/* Touch devices: larger hit targets */
@media (pointer: coarse), (max-width: 760px) {
  button[style*="radius-pill"] { min-height: 44px; }
}

/* ============================================================
   ENQUIRE-NOW BUTTON TREATMENT ON EVERY FORM / CTA BUTTON
   ------------------------------------------------------------
   Confirmed decision: every form button, popup button, success-card
   button, Apply Now, Download the brochure and both mobile-bar
   buttons carry the SAME crimson fill and the SAME effects as the
   header "Enquire Now" CTA:
       • a shine sweep across the face
       • a slow glow pulse
       • hover: the pulse stops, the button lifts 1px and gains a
         stronger glow plus a 4px glow ring

   The header CTA animates its shine from JavaScript (shared/js/header.js
   drives .itm-shine inside one requestAnimationFrame loop). Form buttons
   use the CSS equivalent below (class .hq-shine) so they work even if the
   header has not mounted, and so prefers-reduced-motion is honoured by the
   browser rather than by script. The timings are identical:
       period 5.5s, sweep over the first 16%, translateX -130% → 300%,
       skewX(-18deg), 26% wide, white 0.28 alpha gradient.
   ============================================================ */

@keyframes hqGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(170, 0, 79, 0.30), 0 0 0 0 rgba(170, 0, 79, 0); }
  50%      { box-shadow: 0 6px 24px rgba(170, 0, 79, 0.55), 0 0 0 4px rgba(170, 0, 79, 0.10); }
}
@keyframes hqShineSweep {
  0%     { opacity: 1; transform: translateX(-130%) skewX(-18deg); }
  16%    { opacity: 1; transform: translateX(300%) skewX(-18deg); }
  16.01% { opacity: 0; transform: translateX(300%) skewX(-18deg); }
  100%   { opacity: 0; transform: translateX(-130%) skewX(-18deg); }
}

/* The sweep overlay. Markup: <span class="hq-shine" aria-hidden="true"></span>
   as the FIRST child of the button, which must be position:relative. */
.hq-shine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 26%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: hqShineSweep 5.5s linear infinite;
}

.hq-btn {
  position: relative;
  overflow: hidden;
  animation: hqGlow 2.8s ease-in-out infinite;
}
.hq-btn:hover:not(:disabled) {
  /* Pause, never cancel. Cancelling an infinite animation on a composited
     layer has been reported to blank the button mid-hover in some browsers;
     pausing leaves the layer intact. The hover shadow below still wins
     because it is declared after the animation's own box-shadow. */
  animation-play-state: paused;
  filter: none;
  transform: translateY(-1px);
  background-color: var(--brand-hover);
  box-shadow: 0 8px 30px rgba(170, 0, 79, 0.62), 0 0 0 4px rgba(170, 0, 79, 0.14);
}
.hq-btn:focus-visible {
  outline: 2px solid var(--surface-brand);
  outline-offset: 3px;
}
.hq-btn:disabled { animation-play-state: paused; }
.hq-btn:disabled .hq-shine { display: none; }

[data-itheme="dark"] .hq-btn:hover:not(:disabled) {
  box-shadow: 0 8px 30px rgba(212, 86, 127, 0.60), 0 0 0 4px rgba(212, 86, 127, 0.18);
}

/* The Enquire Now modal's Continue / Verify button sits inline next to Back. */
.hq-btn--inline {
  width: auto;
  height: auto;
  min-height: 48px;
  padding: 13px 26px;
  font-size: var(--text-md);
}

/* ---- Design-system CTAs (Apply Now, Download the brochure, hero CTAs) ---- */
[data-ds-btn="primary"] {
  position: relative;
  overflow: hidden;
  animation: hqGlow 2.8s ease-in-out infinite;
}
[data-ds-btn="primary"]::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 26%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: hqShineSweep 5.5s linear infinite;
}
[data-ds-btn="primary"]:hover {
  animation-play-state: paused;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(170, 0, 79, 0.62), 0 0 0 4px rgba(170, 0, 79, 0.14);
}
[data-itheme="dark"] [data-ds-btn="primary"]::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 26%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: hqShineSweep 5.5s linear infinite;
}
[data-ds-btn="primary"]:hover {
  box-shadow: 0 8px 30px rgba(212, 86, 127, 0.60), 0 0 0 4px rgba(212, 86, 127, 0.18);
}

/* ---- Country-code select inside the telephone row ---- */
.hq-tel .hq-cc {
  flex: none;
  max-width: 44%;
  border-right: 1.5px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--surface-sunken);
}
.hq-tel .hq-cc select {
  height: 45px;
  border: none !important;
  box-shadow: none !important;
  background: transparent;
  font-family: var(--font-ui);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
  padding-right: 32px;
}
.hq-tel .hq-cc > span { right: 10px; background: none; border: none; padding: 0; }

/* ---- Authorisation checkbox (replaces the old DND sentence) ---- */
.hq-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text-2xs);
  line-height: var(--lh-snug);
  color: var(--text-faint);
  text-align: left;
  text-wrap: pretty;
  cursor: pointer;
}
.hq-consent input[type="checkbox"] {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  accent-color: var(--surface-brand);
  cursor: pointer;
}
.hq-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--surface-brand);
  outline-offset: 2px;
}

/* ---- OTP helper line ---- */
.hq-hint {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---- Mobile bottom bar CTAs ---- */
.itm-mbar__cta {
  position: relative;
  overflow: hidden;
  background-color: var(--surface-brand);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-brand);
  animation: hqGlow 2.8s ease-in-out infinite;
}
.itm-mbar__cta:hover,
.itm-mbar__cta:active {
  animation-play-state: paused;
  box-shadow: 0 8px 30px rgba(170, 0, 79, 0.62), 0 0 0 4px rgba(170, 0, 79, 0.14);
}

/* ============================================================
   REDUCED MOTION
   A visitor who asks for less motion gets the same crimson buttons
   with no sweep, no pulse and no lift — only the colour change.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hq-shine,
  [data-ds-btn="primary"]::after { animation: none; opacity: 0; }
  .hq-btn,
  .itm-mbar__cta,
  [data-ds-btn="primary"] { animation: none; }
  .hq-btn:hover:not(:disabled),
  [data-ds-btn="primary"]::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 26%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: hqShineSweep 5.5s linear infinite;
}
[data-ds-btn="primary"]:hover { transform: none; }
}

/* Narrow phones: the country-code plate must show its full label
   ("India (+91)") next to the chevron rather than clipping it.
   The plate is sized to its content instead of to a percentage, so a longer
   country name cannot cut off either, and the number field takes the rest. */
@media (max-width: 460px) {
  /* IDM fix: at <=460px the plate's intrinsic width (the longest country label)
     could still push the row wider than the card, so the row is allowed to
     shrink and nothing is permitted to overflow horizontally. */
  .hq-card, #hq-card, #enquire-form, #enqDialog { max-width: 100%; overflow-x: clip; }
  .hq-tel { display: flex; flex-wrap: nowrap; min-width: 0; max-width: 100%; }
  .hq-tel > * { min-width: 0; }
  .hq-tel .hq-cc { flex: 0 1 auto; width: auto; max-width: 46%; min-width: 0; }
  .hq-tel .hq-cc select {
    width: 100%;
    max-width: 100%;
    font-size: var(--text-sm);
    padding-left: 10px;
    padding-right: 24px;
    text-overflow: ellipsis;
  }
  .hq-tel .hq-cc > span { right: 6px; }
  .hq-tel input { min-width: 0; flex: 1 1 auto; }

  #enq_cc {
    width: 100% !important;
    max-width: 100% !important;
    font-size: var(--text-sm) !important;
    padding-left: 10px !important;
    padding-right: 24px !important;
    text-overflow: ellipsis;
  }
  #enq_cc ~ span { right: 6px !important; }
}
@media (max-width: 360px) {
  .hq-tel .hq-cc select,
  #enq_cc { font-size: var(--text-xs) !important; padding-right: 22px !important; }
}

/* ============================================================
   BROCHURE / SYLLABUS CALLS TO ACTION
   ------------------------------------------------------------
   Confirmed decision: the brochure CTAs carry the same treatment as
   Apply Now. In the approved source and on the live MBA pages these
   were crimson *text* links; they are now filled crimson buttons with
   the shine sweep, the glow pulse and the hover lift.

   The secondary "Download the Brochure" button in the dark Apply
   section stays WHITE and gains the same effects in its own colour —
   turning it crimson would make two identical buttons sit side by side
   with Apply Now. Flagged in DEV_BLOCKERS.md #8 for confirmation.
   ============================================================ */

.itm-dl-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background-color: var(--surface-brand);
  color: var(--on-brand);
  box-shadow: var(--shadow-brand);
  font-family: var(--font-ui);
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  line-height: 1;
  letter-spacing: var(--ls-tight);
  white-space: nowrap;
  cursor: pointer;
  animation: hqGlow 2.8s ease-in-out infinite;
  transition: background-color var(--dur-base) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
}
.itm-dl-cta:hover {
  animation-play-state: paused;
  transform: translateY(-1px);
  background-color: var(--brand-hover);
  box-shadow: 0 8px 30px rgba(170, 0, 79, 0.62), 0 0 0 4px rgba(170, 0, 79, 0.14);
}
.itm-dl-cta:active { transform: translateY(0); background-color: var(--brand-active); }
.itm-dl-cta:focus-visible { outline: 2px solid var(--surface-brand); outline-offset: 3px; }
[data-itheme="dark"] .itm-dl-cta:hover {
  box-shadow: 0 8px 30px rgba(212, 86, 127, 0.60), 0 0 0 4px rgba(212, 86, 127, 0.18);
}
/* The icon that followed the old text link keeps its size. */
.itm-dl-cta svg { flex: none; }

/* White secondary button (dark Apply section): same effects, own colour. */
[data-ds-btn="white"] {
  position: relative;
  overflow: hidden;
  animation: hqGlowWhite 2.8s ease-in-out infinite;
}
[data-ds-btn="white"]::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 26%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(170, 0, 79, 0.16), transparent);
  animation: hqShineSweep 5.5s linear infinite;
}
[data-ds-btn="white"]:hover {
  animation-play-state: paused;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.34), 0 0 0 4px rgba(255, 255, 255, 0.16);
}
@keyframes hqGlowWhite {
  0%, 100% { box-shadow: 0 4px 14px rgba(255, 255, 255, 0.16), 0 0 0 0 rgba(255, 255, 255, 0); }
  50%      { box-shadow: 0 6px 24px rgba(255, 255, 255, 0.28), 0 0 0 4px rgba(255, 255, 255, 0.10); }
}

@media (prefers-reduced-motion: reduce) {
  .itm-dl-cta,
  [data-ds-btn="white"] { animation: none; }
  [data-ds-btn="white"]::after { content: none; }
  .itm-dl-cta:hover,
  [data-ds-btn="white"]:hover { transform: none; }
  .itm-dl-cta:hover { background-color: var(--brand-hover); box-shadow: var(--shadow-brand); }
}

/* ============================================================
   FLOATING ACTION BUTTONS (WhatsApp + chat)
   ------------------------------------------------------------
   On a short phone (320x568) the stack sat over the H1. The approved
   source has the same overlap with its single button; the export
   stacks two, so it covers more. Confirmed decision: move them down on
   short screens so the headline stays readable.
   ============================================================ */
@media (max-height: 700px) and (max-width: 760px) {
  .itm-fab-group {
    bottom: 78px !important;          /* just clear of the mobile bottom bar */
    gap: 8px !important;
    transform: scale(0.86);
    transform-origin: bottom right;
  }
}
@media (max-height: 600px) and (max-width: 760px) {
  .itm-fab-group {
    bottom: 74px !important;
    transform: scale(0.78);
  }
}

/* The popup's country-code plate sizes to its content on narrow phones too,
   so "India (+91)" is never clipped. The inline max-width on the wrapper is
   the approved source's; it is only relaxed below 460px. */
@media (max-width: 460px) {
  .enq-cc-wrap { max-width: 58% !important; }
}

/* ========================================================================
   idm-form-chrome.css
   ======================================================================== */
/* IDM form chrome — wrapper styling only. No field, label or flow is changed. */
#enquire-form #hq-card,
#enquire-form .hq-card {
  background: var(--surface-card);
  border: 1px solid var(--border-brand, var(--border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(18px, 2.4vw, 28px);
}
#enquire-form { position: relative; }
#enquire-form #heroStepHead { border-bottom: 1px solid var(--divider); padding-bottom: 12px; margin-bottom: 14px; }
#enquire-form #heroStepLabel { font-family: var(--font-ui); font-size: var(--text-3xs); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-brand); }
#enquire-form .enq-field, #enquire-form input, #enquire-form select { border-radius: var(--radius-sm); }
#enquire-form button[type="submit"], #enquire-form #heroSubmitBtn, #enquire-form #heroVerifyBtn { border-radius: var(--radius-sm); }
#enqDialog { border-radius: var(--radius-lg); }

/* The IDM section already carries its own heading above the form card, so the
   component's own eyebrow, title and intro are hidden here to avoid a second
   heading and to keep the card the height the approved design expects. They
   stay in the markup, and in the modal, where there is no surrounding heading. */
#enquire-form [data-bba-card-eyebrow],
#enquire-form [data-bba-card-title],
#enquire-form [data-bba-card-intro] { display: none; }

/* ────────────────────────────────────────────────────────────────────────────
   Compact enquiry card — Institute and Campus Life only (Phase 7, item 4)
   ────────────────────────────────────────────────────────────────────────────
   On these two pages the artifact's card is shorter than BBA v4.1's, and the
   extra height pushed the whole hero down. This tightens the card's vertical
   rhythm ONLY: no field, label, control or step is removed or hidden, and
   nothing here applies to the other eight form pages.                       */
[data-form-compact] #heroForm > div { padding: clamp(14px, 1.8vw, 20px); }
[data-form-compact] #heroForm .hq-f { gap: 4px; }
[data-form-compact] #heroForm .hq-i,
[data-form-compact] #heroForm .hq-sel select { height: 42px; }
[data-form-compact] #heroForm .hq-tel input,
[data-form-compact] #heroForm .hq-tel > span select { height: 40px; }
[data-form-compact] #heroForm .hq-btn { height: 46px; }
[data-form-compact] #heroForm #heroStepHead { padding-bottom: 8px; margin-bottom: 10px; }
[data-form-compact] #heroForm .hq-grid,
[data-form-compact] #heroForm .hq-rows { gap: 10px; }
/* Card rhythm, measured against the artifact's 584px card at 1440 (Phase 7).
   Padding and gaps only — every field, label, control and step is untouched. */
[data-form-compact] #heroForm > div { padding: 20px !important; }
[data-form-compact] #heroForm > div > div:nth-child(2) { padding-top: 19px !important; padding-bottom: 19px !important; }
[data-form-compact] #heroForm > div > div:nth-child(2) > div:nth-child(2) { margin-bottom: 6px !important; }
[data-form-compact] #heroForm > div > div:nth-child(2) > p:nth-child(3) { margin-bottom: 12px !important; }
[data-form-compact] #heroForm > div > div:nth-child(2) > div:nth-child(4) { margin-bottom: 10px !important; padding-bottom: 4px !important; }
[data-form-compact] #heroForm .hero-form__step > div { gap: 12px !important; }
[data-form-compact] #heroForm > div > div:nth-child(3) { padding-top: 10px !important; padding-bottom: 10px !important; }
