/**
 * Contact Us page.
 *
 * The hero is the shared page hero (components.css). The detail cards and the
 * map-and-form section are styled here; the form's base rules come from
 * apartment-single.css and are overridden under .wb-enquiry--wide.
 */

:root {
  /* Fluid sizes, 390px → 1440px, read off the M/Contact and D/Contact frames. */
  --wb-contact-fs-card-t: clamp(0.8875rem, 0.8457rem + 0.171vw, 1rem);        /* 14.2 → 16 */
  --wb-contact-icon:      clamp(1.5625rem, 1.2375rem + 1.333vw, 2.4375rem);  /* 25 → 39 */
  --wb-contact-fs-legend: clamp(1.2375rem, 0.9311rem + 1.257vw, 2.0625rem);  /* 19.8 → 33 */
  --wb-contact-fs-title:  clamp(1.675rem, 1.09rem + 2.4vw, 3.25rem);        /* 26.8 → 52 */
}

/* ==========================================================================
 * Hero — 263px tall on the phone, a little taller than the About one.
 * ======================================================================= */

.page-template-page-templatescontact-php .wb-page-hero {
  min-height: 16.4375rem; /* 263px */
}

@media (min-width: 64rem) {
  .page-template-page-templatescontact-php .wb-page-hero {
    min-height: 39.9375rem; /* 639px */
  }
}

/* ==========================================================================
 * Detail cards — office hours, address, phone
 * ======================================================================= */

.wb-contact-details {
  padding-top: 2.5625rem; /* 41px below the hero */
  padding-bottom: 0;
}

@media (min-width: 64rem) {
  .wb-contact-details {
    padding-top: 9.5rem; /* 152px */
    padding-bottom: 8.3125rem; /* 133px */
  }
}

.wb-contact-details .wb-section-header {
  margin-bottom: 1.75rem; /* 28px */
}

.wb-contact-details .wb-eyebrow {
  margin-bottom: 1.0625rem; /* 17px */
  font-size: var(--wb-fs-eyebrow-sm);
  letter-spacing: 0.01em;
}

.wb-contact-details .wb-section-header__title {
  font-size: var(--wb-fs-advant);
  line-height: 1.35; /* 46 / 34 */
}

.wb-contact-details .wb-section-header__lead {
  max-width: 25rem; /* 400px */
  color: var(--wb-gray-500);
  font-size: var(--wb-fs-offer-lead);
  line-height: 1.65;
}

@media (min-width: 64rem) {
  .wb-contact-details .wb-section-header {
    margin-bottom: var(--wb-space-8); /* 48px */
  }

  .wb-contact-details .wb-eyebrow {
    margin-bottom: 0.3125rem; /* 5px */
  }

  .wb-contact-details .wb-section-header__lead {
    color: var(--wb-text-muted);
  }
}

/*
 * Full-width stacked cards on the phone; from tablet up, 260px cards in a
 * centred row with 32px between them.
 */
.wb-contact-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.875rem; /* 14px */
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .wb-contact-cards {
    grid-template-columns: repeat(auto-fit, 16.25rem); /* 260px */
    justify-content: center;
    gap: var(--wb-space-6);
  }
}

.wb-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 10rem; /* 160px */
  padding: 1.75rem var(--wb-space-5) 1.5625rem; /* 28px 24px 25px */
  background-color: var(--wb-surface);
  text-align: center;
}

@media (min-width: 48rem) {
  .wb-contact-card {
    min-height: 14rem; /* 224px */
    padding-top: 2.40625rem; /* 38.5px */
    border: 1px solid #E5EAEF;
    border-radius: var(--wb-radius-sm);
  }
}

.wb-contact-card__icon {
  display: flex;
  color: var(--wb-secondary);
}

.wb-contact-card__icon .wb-icon {
  width: var(--wb-contact-icon);
  height: var(--wb-contact-icon);
}

.wb-contact-card__title {
  margin: 1.625rem 0 0; /* 26px */
  color: var(--wb-primary-dark);
  font-size: var(--wb-contact-fs-card-t);
  font-weight: var(--wb-fw-semibold);
  line-height: 1.35;
}

.wb-contact-card__text {
  margin-top: 0.875rem; /* 14px */
  color: var(--wb-gray-500);
  font-size: var(--wb-fs-caption); /* 13px */
  line-height: 1.4;
  letter-spacing: 0.005em;
}

/* Each line on its own row — the phone card lists both numbers. */
.wb-contact-card__text p {
  margin: 0;
}

.wb-contact-card__text p + p {
  margin-top: 0.5625rem; /* 9px */
}

@media (min-width: 48rem) {
  .wb-contact-card__title {
    margin-top: 1.1875rem; /* 19px */
  }

  .wb-contact-card__text {
    max-width: 13.25rem; /* 212px — the address breaks onto two lines */
    margin-top: 0.5625rem; /* 9px */
    color: var(--wb-text-muted);
    line-height: 1.6; /* 21 / 13 */
  }

  .wb-contact-card__text p + p {
    margin-top: 0;
  }
}

/* ==========================================================================
 * Map beside the form
 * ======================================================================= */

.wb-contact-main {
  padding-top: 2.75rem; /* 44px below the cards */
  padding-bottom: 2.25rem; /* 36px */
}

@media (min-width: 64rem) {
  .wb-contact-main {
    padding-top: 5.1875rem; /* 83px */
    padding-bottom: 8.5rem; /* 136px */
  }
}

/*
 * Both columns stretch to the taller of the two so their bottom edges line up.
 * The intro column absorbs the difference in the map, which grows below the
 * heading rather than leaving a gap. The columns split 517 : 597 as drawn.
 */
.wb-contact-main__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6875rem; /* 27px */
  align-items: start;
}

@media (min-width: 64rem) {
  .wb-contact-main__inner {
    grid-template-columns: minmax(0, 517fr) minmax(0, 597fr);
    gap: 5rem; /* 80px */
    align-items: stretch;
  }
}

.wb-contact-main__intro {
  display: flex;
  flex-direction: column;
  gap: var(--wb-space-5);
  min-width: 0;
}

@media (min-width: 64rem) {
  .wb-contact-main__intro {
    height: 100%;
  }

  /*
   * The form column fills the row too, so whichever side is naturally taller
   * sets the height and the other grows to meet it — the two bottom edges
   * line up either way.
   */
  .wb-contact-main__inner > .wb-enquiry {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .wb-contact-main__inner > .wb-enquiry > .wb-enquiry__card {
    flex: 1 1 auto;
  }
}

.wb-contact-main__header {
  margin-bottom: 0;
}

.wb-contact-main__header .wb-eyebrow {
  margin-bottom: 0.125rem; /* 2px */
  font-size: var(--wb-fs-eyebrow);
  letter-spacing: 0.01em;
}

.wb-contact-main__header .wb-section-header__title {
  max-width: 31.25rem; /* 500px — breaks after "With" as drawn */
  font-size: var(--wb-contact-fs-title);
  line-height: 1.2; /* 62 / 52 */
}

.wb-contact-main__header .wb-section-header__lead {
  max-width: 30rem; /* 480px */
  margin-top: 1.625rem; /* 26px */
  color: var(--wb-gray-500);
  font-size: var(--wb-fs-body);
  line-height: 1.6;
}

@media (min-width: 64rem) {
  .wb-contact-main__header .wb-section-header__lead {
    margin-top: 1.375rem; /* 22px */
    color: #999999;
  }
}

/* Square on the phone, a 4px radius at desktop, as drawn. */
.wb-map {
  display: flex;
  overflow: hidden;
}

.wb-map__frame,
.wb-map__img {
  display: block;
  width: 100%;
  height: 14.4375rem; /* 231px on mobile */
  border: 0;
  object-fit: cover;
}

@media (min-width: 64rem) {
  /* Takes the leftover height so the column bottom meets the form's. */
  .wb-map {
    flex: 1 1 auto;
    min-height: 29rem; /* 464px, the designed minimum */
    border-radius: var(--wb-radius-sm);
  }

  .wb-map__frame,
  .wb-map__img {
    height: 100%;
    min-height: 29rem;
  }
}

/* ==========================================================================
 * Wide form variant
 * The Contact page enlarges the legend, pairs name and email, gives the fields
 * a border at desktop, and drops the full-width submit for a fixed one.
 * ======================================================================= */

/* 20px inset on mobile, which puts the full-width submit at its drawn 306px. */
.wb-enquiry--wide .wb-enquiry__card {
  padding: 1.875rem 1.25rem 1.6875rem; /* 30px 20px 27px */
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 28, 0.08);
}

@media (min-width: 64rem) {
  .wb-enquiry--wide .wb-enquiry__card {
    padding: 2.9375rem var(--wb-space-7) 3.25rem; /* 47px 40px 52px */
    box-shadow: 0 10px 40px rgba(0, 0, 28, 0.08);
  }
}

.wb-enquiry--wide .wb-enquiry__legend {
  margin-bottom: 1.9375rem; /* 31px */
  color: var(--wb-navy);
  font-size: var(--wb-contact-fs-legend);
  line-height: 1.36; /* 27 / 19.8 and 45 / 33 */
}

@media (min-width: 64rem) {
  .wb-enquiry--wide .wb-enquiry__legend {
    margin-bottom: 1.875rem; /* 30px */
    color: var(--wb-ink);
  }
}

.wb-enquiry--wide .wb-enquiry__fields {
  gap: 1.125rem; /* 18px */
}

@media (min-width: 64rem) {
  .wb-enquiry--wide .wb-enquiry__fields {
    gap: 0.875rem; /* 14px */
  }
}

/* Name and email share a row once there is space. */
.wb-enquiry__row {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

@media (min-width: 48rem) {
  .wb-enquiry--wide .wb-enquiry__row {
    flex-direction: row;
    gap: 1.0625rem; /* 17px */
  }

  .wb-enquiry--wide .wb-enquiry__row .wb-input {
    flex: 1 1 0;
    min-width: 0;
  }
}

.wb-enquiry--wide .wb-input {
  gap: 0.875rem; /* 14px from label to field */
}

@media (min-width: 64rem) {
  .wb-enquiry--wide .wb-input {
    gap: 0.5rem; /* 8px */
  }
}

.wb-enquiry--wide .wb-input__label {
  color: var(--wb-ink);
  font-size: var(--wb-fs-body);
  font-weight: var(--wb-fw-semibold);
  line-height: 1.38; /* 19 / 13.6 and 23 / 17 */
}

.wb-enquiry--wide .wb-input__required {
  color: #E53935;
}

/*
 * Mobile: borderless fields on a cool grey, 46px tall.
 * Desktop: a hairline border on the card grey, 56px tall.
 */
.wb-enquiry--wide .wb-input .wb-input__control {
  min-height: 2.875rem; /* 46px */
  padding: 0 var(--wb-space-4);
  background-color: #F2F5F7;
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  color: var(--wb-text);
  font-size: var(--wb-fs-body);
}

.wb-enquiry--wide .wb-input .wb-input__control::placeholder {
  color: var(--wb-placeholder);
}

/* Restates the base focus ring, which the box-shadow reset above would win. */
.wb-enquiry--wide .wb-input .wb-input__control:focus {
  box-shadow: inset 0 0 0 2px var(--wb-primary);
  outline: none;
}

.wb-enquiry--wide .wb-input--area .wb-input__control {
  height: 9.875rem; /* 158px — set outright, as the rows attribute would run taller */
  min-height: 9.875rem;
  padding: var(--wb-space-4);
}

@media (min-width: 64rem) {
  .wb-enquiry--wide .wb-input .wb-input__control {
    min-height: 3.5rem; /* 56px */
    padding: 0 var(--wb-space-6); /* 32px */
    background-color: var(--wb-card-bg);
    border-color: #E6E6E6;
    border-radius: 0.125rem; /* 2px */
  }

  .wb-enquiry--wide .wb-input--area .wb-input__control {
    height: 14.6875rem; /* 235px */
    min-height: 14.6875rem;
    padding: var(--wb-space-4) var(--wb-space-6);
  }
}

/*
 * Mobile: full width of the card's inner area at 50px tall (306x50 as drawn).
 * Desktop: a fixed 166x60 button.
 */
.wb-enquiry--wide .wb-enquiry__submit {
  min-height: 3.125rem; /* 50px */
  margin-top: 1.5625rem; /* 25px below the message */
  border-radius: 0.125rem; /* 2px */
  font-size: var(--wb-fs-body);
  font-weight: var(--wb-fw-bold);
}

@media (min-width: 64rem) {
  .wb-enquiry--wide .wb-enquiry__submit {
    width: 10.375rem; /* 166px */
    min-height: 3.75rem; /* 60px */
    margin-top: var(--wb-space-6); /* 32px */
  }
}

.wb-enquiry--wide .wb-enquiry__icon {
  width: 1rem; /* 16px */
  height: 1rem;
}

@media (min-width: 64rem) {
  .wb-enquiry--wide .wb-enquiry__icon {
    width: 1.75rem; /* 28px */
    height: 1.75rem;
  }
}
