/* ============================================================
   SDM School — Contact
   Figma: SDM School Website Final / CONTACT DESIGN (1440 × 2624)
   Shared tokens, header, pills, CTA and footer live in styles.css.
   ============================================================ */

.page-contact { --nav-ink: #3934c9; }   /* the Contact frame sets its menu in blue */

/* Decorative lines and the CTA wave run past the frame on purpose. */
.page-contact main { overflow-x: clip; }

/* ============================================================
   Intro + enquiry form
   ============================================================ */
.enquire {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--hero-gap) + clamp(24px, 2.8vw, 40px));   /* header, then a little room above the headline */
}

.enquire-lines { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.enquire-line {
  position: absolute;
  width: 114.7%;
  max-width: none;
  height: auto;                 /* the SVG ignores its ratio; keep it here */
  aspect-ratio: 1656 / 352;
}
.enquire-line--blue { left: -1.39%; top: 488px; }
.enquire-line--pink { left: -4.46%; top: 487px; transform: rotate(-10.35deg); }

.enquire-inner {
  display: grid;
  grid-template-columns: minmax(0, 473px) minmax(0, 703px);
  column-gap: 96px;
  padding-inline: 78px 90px;
}

.enquire-title {
  font-size: var(--fs-title);
  line-height: 1.15;
  color: var(--navy);
}

.enquire-lede {
  margin-top: 44px;
  font-size: var(--fs-lede);
  line-height: 1.22;
  color: var(--grey);
}
.enquire-lede span { color: var(--navy); }

.enquire-form-wrap { margin-top: 13px; }

.form-title {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 55px;
  color: var(--navy);
  text-align: center;
}

.form-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 15px;
  padding: 40px;
  border-radius: 5px 60px 5px 60px;
  background: var(--mist-line);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 2px solid transparent;
  border-radius: 15px;
  background: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: 600;
  color: var(--blue);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea {
  height: 130px;
  padding: 16px 12px;
  border-radius: 22px;
  resize: vertical;
  line-height: 1.4;
}
.field ::placeholder { color: var(--blue); opacity: 1; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(72, 79, 161, 0.15);
}
.field .is-invalid { border-color: #e34c39; }

/* Custom chevron so the select reads like the other fields. */
.field--select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%23484fa1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") right 16px center / 12px 8px no-repeat;
  cursor: pointer;
}

.form-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.form-submit {
  min-width: 150px;
  height: 41px;
  padding: 0 28px;
  border: 0;
  border-radius: 95px;
  background: var(--blue);
  font-size: var(--fs-body);
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.form-submit:hover { background: var(--navy); transform: translateY(-2px); }

.form-status {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--navy);
}
.form-status.is-error { color: #e34c39; }

/* ============================================================
   How can we help?
   ============================================================ */
.help-inner {
  position: relative;
  min-height: 532px;
  padding: 110px 0 0 173px;
}

.help-copy { width: 626px; max-width: 100%; }

.help-title {
  font-size: var(--fs-title);
  line-height: 1.15;
  color: #e34c39;
  text-align: center;
}

.help-actions,
.help-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 297px));
  column-gap: 32px;
}

.help-actions { margin-top: 35px; }

.help-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 78px;
  padding: 10px 16px;
  border-radius: 39px;
  background: var(--navy);
  color: #fff;
  font-size: var(--fs-caption);
  text-align: center;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.help-btn strong { font-weight: 700; }
.help-btn em { font-weight: 500; }
.help-btn:hover { background: var(--blue); transform: translateY(-3px); }

.help-contacts { margin-top: 55px; }
.help-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.help-contacts p {
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.22;
  color: var(--grey-dark);
}
.help-contacts a { text-decoration: none; }
.help-contacts a:hover { color: var(--navy); }

.help-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
}
.help-icon img { width: 49px; height: 49px; }
.help-icon--phone {
  border-radius: 50%;
  background: var(--mist-line);
}
.help-icon--phone img { width: 22px; height: auto; }

.help-character {
  position: absolute;
  left: 921px;
  top: -103px;
  width: 449px;
  pointer-events: none;
}
.help-figure {
  position: relative;
  width: 100%;
  height: auto;
  transform: scaleX(-1);
  transform-origin: center;
  animation: chatter 3.2s ease-in-out infinite;
}
.help-shadow {
  position: absolute;
  left: 141px;
  top: 568px;
  width: 290px;
}
/* A small sway while the character is on the phone. */
@keyframes chatter {
  0%, 100% { transform: scaleX(-1) rotate(0deg); }
  50%      { transform: scaleX(-1) rotate(-2deg); }
}

/* ============================================================
   Find your way
   ============================================================ */
.visit { margin-top: 49px; }

.visit-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 407px);
  column-gap: 48px;
  align-items: start;
  padding-inline: 178px 159px;
}

.visit-copy { padding-top: 37px; }

.visit-title {
  font-size: var(--fs-title);
  line-height: 1.15;
  color: var(--blue);
}

.visit-address,
.visit-hours {
  font-size: var(--fs-lede);
  line-height: 1.22;
  color: var(--grey);
}
.visit-address { margin-top: 36px; }

.visit-hours-title {
  margin-top: 54px;
  font-size: var(--fs-lede);
  font-weight: 400;
  line-height: 1.22;
  color: var(--navy);
}

.visit-hours {
  display: grid;
  grid-template-columns: 247px auto;
  margin: 0;
}
.visit-hours dd { margin: 0; }

.visit-map {
  position: relative;
  display: block;
  height: 306px;
  border-radius: 34px;
  overflow: hidden;
  background: #a7a7a7;
}
.visit-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.visit-map:hover img { transform: scale(1.05); }

.visit-map-cta {
  position: absolute;
  left: 50%;
  bottom: 18px;
  padding: 8px 16px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-ui);
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.visit-map:hover .visit-map-cta,
.visit-map:focus-visible .visit-map-cta { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   Make an informed choice (extends .join from styles.css)
   ============================================================ */
.join--contact {
  margin-top: 158px;
  padding: 231px 20px 132px;
}
.join--contact::before {
  left: -35.6%;
  width: 172.8%;
  --join-wave: url('../assets/figma/contact/cta-wave.svg');
}
.join--contact .join-copyright { top: 85px; }

.join-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 46px;
  margin-top: 26px;
}
.join-btn {
  min-width: 182px;
  min-height: 53px;
  padding: 12px 22px;
  font-size: var(--fs-ui);
}
.join-btn--sm { min-width: 160px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1380px) {
  .enquire-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
    column-gap: 48px;
    padding-inline: 40px;
  }
  .help-inner { padding-left: 40px; }
  .help-character { left: auto; right: 40px; width: clamp(300px, 31vw, 449px); }
  .help-shadow { display: none; }
  .visit-inner { padding-inline: 40px; }
}

@media (max-width: 1000px) {
  .enquire-inner { grid-template-columns: 1fr; row-gap: 48px; padding-inline: 24px; }
  .enquire-form-wrap { margin-top: 0; }
  .enquire-lede { margin-top: 24px; }

  .help-inner { min-height: 0; padding: 80px 24px 0; }
  .help-copy { margin-inline: auto; }
  .help-character {
    position: relative;
    right: auto;
    top: auto;
    width: 220px;
    margin: 32px auto 0;
  }

  .visit-inner { grid-template-columns: 1fr; row-gap: 32px; padding-inline: 24px; }
  .visit-copy { padding-top: 0; }
}

@media (max-width: 640px) {
  .form-card { padding: 24px 20px; border-radius: 5px 40px 5px 40px; }
  .help-actions,
  .help-contacts { grid-template-columns: 1fr; row-gap: 16px; }
  .help-contacts { margin-top: 32px; }
  /* Each number and address gets a full-height tap area on phones. */
  .help-contacts a { display: inline-block; padding-block: 10px; }
  .help-contacts p { margin-top: -10px; }
  .visit-hours { grid-template-columns: auto auto; column-gap: 20px; }
  .visit-hours-title { margin-top: 28px; }
  .join--contact { padding-top: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .help-figure { animation: none; }
}
