/* ==========================================================================
   Contact page (app/views/pages/contact.php)
   Contact cards · enquiry form · map.
   ========================================================================== */

/* Contact cards ------------------------------------------------------------- */
.contact-cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 48rem) {
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
@media (min-width: 80rem) {
  .contact-cards {
    grid-template-columns: repeat(var(--cards, 4), minmax(0, 1fr));
  }
  /* Narrower cards side by side: a size that keeps an email address on one line. */
  .contact-cards .contact-card__value {
    font-size: 1.1rem;
  }
}

/* Each card is one large link (its call to action stretched over it);
   extra numbers and addresses sit above that link. */
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  border-radius: var(--radius-xl);
}
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, var(--gold-300), var(--gold-500));
  color: var(--navy-950);
  box-shadow:
    0 12px 26px -14px rgb(240 180 0 / 0.85),
    inset 0 1px 0 rgb(255 255 255 / 0.5);
}
.contact-card__icon .icon {
  width: 1.3rem;
  height: 1.3rem;
}
.contact-card__label {
  margin-top: 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-card__value {
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 540;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.contact-card__more {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.45rem;
}
.contact-card__more a {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink-soft);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-card__more a:hover {
  color: var(--navy-700);
  text-decoration: underline;
  text-decoration-color: var(--gold-500);
}
.contact-card__note {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.contact-card__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.4rem;
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--navy-700);
  text-decoration: none;
}
.contact-card__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
}
.contact-card__cta:focus-visible {
  outline: none;
}
/* The ring goes round the whole card, on the light page: the navy ring. */
.contact-card__cta:focus-visible::after {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}
.contact-card__arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s var(--ease-out);
}
.contact-card:hover .contact-card__arrow {
  transform: translateX(3px);
}
.contact-card--address:hover .contact-card__arrow,
.contact-card--whatsapp:hover .contact-card__arrow {
  transform: translate(2px, -2px);
}

/* Enquiry ------------------------------------------------------------------- */
.contact-enquiry__grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 64rem) {
  .contact-enquiry__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    align-items: start;
    gap: clamp(3rem, 1rem + 5vw, 5.5rem);
  }
}

.contact-enquiry__aside {
  margin-top: 2.5rem;
}
.contact-label {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-quick {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
.contact-quick__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.9rem 1.4rem;
  border: 1px solid rgb(232 224 207 / 0.9);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.3s,
    background-color 0.3s;
}
.contact-quick__link:hover {
  transform: translateX(4px);
  border-color: rgb(240 180 0 / 0.5);
  background: var(--white);
}
.contact-quick__arrow {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--gold-600);
  transition: transform 0.3s var(--ease-out);
}
.contact-quick__link:hover .contact-quick__arrow {
  transform: translateX(3px);
}
.contact-follow {
  margin-top: 2.25rem;
}
.contact-follow .socials {
  margin-top: 0.9rem;
}

/* The form, on a raised paper card */
.contact-form-card {
  padding: clamp(1.4rem, 0.8rem + 2.6vw, 2.75rem);
  border: 1px solid rgb(232 224 207 / 0.9);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow-lift);
}
.contact-form-card__fallback {
  color: var(--ink-soft);
}
.contact-form-card__fallback a {
  font-weight: 700;
  color: var(--navy-700);
  white-space: nowrap;
}
.contact-form {
  display: grid;
  gap: 1.5rem;
}
.contact-form__topics {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.contact-form__topics legend {
  padding: 0;
}
.contact-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
/* Topic pills: the radio button is invisible but covers its pill, so it
   stays clickable and keyboard-operable (arrow keys move between topics). */
.contact-topic {
  position: relative;
  display: inline-flex;
}
.contact-topic__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.contact-topic__pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--sand);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}
.contact-topic:hover .contact-topic__pill {
  border-color: rgb(10 50 144 / 0.35);
  color: var(--ink);
}
.contact-topic__input:checked + .contact-topic__pill {
  border-color: var(--navy-700);
  background: var(--navy-700);
  color: var(--white);
  box-shadow: 0 10px 22px -12px rgb(10 50 144 / 0.75);
}
/* Outside the pill, on the white form card: the navy ring. */
.contact-topic__input:focus-visible + .contact-topic__pill {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.contact-form__optional {
  font-weight: 500;
  color: var(--ink-soft);
}
.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.contact-form__actions .btn {
  width: 100%;
}
@media (min-width: 30rem) {
  .contact-form__actions .btn {
    width: auto;
  }
}
/* Buttons, live message, note: margins (not grid gaps), so the empty
   message region takes no space until it has something to say. */
.contact-form__footer > * + * {
  margin-top: 1.1rem;
}
.contact-form__footer > .contact-form__status:empty {
  margin-top: 0;
}
.contact-form__status:not(:empty) {
  padding: 0.85rem 1.05rem;
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  background: var(--navy-50);
  color: var(--navy-900);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}
.contact-form__note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.contact-form__note .icon {
  margin-top: 0.15rem;
  color: var(--gold-600);
}
.contact-form__noscript {
  margin-top: 1.1rem;
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius);
  background: var(--gold-100);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
}
.contact-form__noscript a {
  color: var(--navy-700);
  font-weight: 700;
}

/* Map ------------------------------------------------------------------------ */
.contact-map__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem 2.5rem;
}
.contact-map__line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.contact-map__line .icon {
  flex: none;
  color: var(--gold-600);
}
/* The visiting note wraps: its icon stays beside the first line. */
.contact-map__line--note {
  align-items: flex-start;
}
.contact-map__line--note .icon {
  margin-top: 0.2em;
}
.contact-map__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.contact-map__stage {
  position: relative;
  isolation: isolate;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
/* A warm gold-to-navy wash, set slightly askew behind the map. */
.contact-map__backdrop {
  position: absolute;
  inset: -0.7rem;
  z-index: -1;
  border-radius: calc(var(--radius-xl) + 0.6rem);
  background: linear-gradient(135deg, var(--gold-200), rgb(240 180 0 / 0.35) 45%, var(--navy-100));
  transform: rotate(0.6deg);
}
.contact-map__frame {
  position: relative;
  overflow: hidden;
  height: 24rem;
  border: 4px solid var(--white);
  border-radius: var(--radius-xl);
  background: var(--sand);
  box-shadow: var(--shadow-lift);
}
.contact-map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.85) sepia(0.15);
}
@media (min-width: 48rem) {
  .contact-map__frame {
    height: 34rem;
  }
}

/* A focused map (keyboard) gets the ring on its frame, which clips the iframe. */
.contact-map__frame:focus-within {
  outline: 3px solid var(--ring, var(--focus-ring));
  outline-offset: 3px;
}
