/* ==========================================================================
   Contact page — page-specific styles only.
   Reuses tokens/classes from style.css (do not redefine brand tokens here).
   ========================================================================== */

/* ==========================================================================
   1. Hero — soft blush → dusty-rose gradient band (light, not dark)
   ========================================================================== */
.contact-hero {
  position: relative;
  overflow: hidden;
  /* Pull the hero up behind the transparent header so its background is
     continuous — no seam between the header strip and the hero. */
  margin-top: -100px;
  padding: 188px 0 96px;
  background: linear-gradient(135deg, var(--blush) 0%, var(--dusty-rose) 140%);
  text-align: center;
}
.contact-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .4;
  z-index: 0;
  pointer-events: none;
}
.contact-hero__blob--1 {
  width: 380px; height: 380px;
  background: var(--dusty-rose);
  top: -140px; right: -60px;
}
.contact-hero__blob--2 {
  width: 320px; height: 320px;
  background: #fff;
  bottom: -160px; left: -80px;
  opacity: .55;
}
.contact-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.contact-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin-bottom: 18px;
}
.contact-hero h1 em {
  font-style: italic;
  color: var(--deep-rose);
}
.contact-hero__sub {
  font-size: 1.14rem;
  color: var(--body);
  max-width: 620px;
  margin: 0 auto;
}

/* ==========================================================================
   2. Two-column contact section
   ========================================================================== */
.contact-main { background: var(--warm-cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

/* Left column ------------------------------------------------------------- */
.contact-copy { padding-top: 8px; }
.contact-copy h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 20px;
}
.contact-copy h2 em {
  font-style: italic;
  color: var(--dusty-rose);
}
.contact-copy > p {
  color: var(--body);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.contact-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
}
.contact-chip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid rgba(92, 61, 78, 0.1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  color: var(--deep-plum);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.contact-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--dusty-rose);
  color: var(--deep-plum);
}
.contact-chip__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--dusty-rose), var(--deep-plum));
  color: #fff;
  font-size: 1.2rem;
}
.contact-chip__body {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}
.contact-chip__body strong {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--deep-plum);
}
.contact-chip__body span {
  color: var(--muted);
  font-size: .92rem;
}

/* Right column: form card ------------------------------------------------- */
.contact-form-card {
  background: #fff;
  border: 1px solid rgba(92, 61, 78, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}
.contact-form-card__title {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.contact-form-card__note {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 24px;
}

/* Banners (success / error) */
.form-banner {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 24px;
  font-size: .98rem;
  line-height: 1.5;
}
.form-banner--success {
  background: var(--blush);
  border: 1px solid var(--dusty-rose);
  color: var(--deep-plum);
}
.form-banner--error {
  background: #fdecef;
  border: 1px solid var(--deep-rose);
  color: var(--deep-rose);
}

/* Form layout */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-field label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: .92rem;
  color: var(--deep-plum);
}
.form-field .req { color: var(--dusty-rose); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--body);
  background: var(--warm-cream);
  border: 1px solid rgba(92, 61, 78, 0.16);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--dusty-rose);
  box-shadow: 0 0 0 3px rgba(201, 125, 138, 0.18);
  background: #fff;
}
.form-field select { cursor: pointer; }

/* Invalid field emphasis */
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--deep-rose);
  background: #fdf2f4;
}
.field-error {
  color: var(--deep-rose);
  font-size: .86rem;
  font-weight: 500;
}

.contact-form__submit {
  align-self: flex-start;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .92rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-copy { max-width: 620px; }
  .contact-chips { max-width: none; }
}
@media (max-width: 560px) {
  .contact-hero { padding: 152px 0 72px; }
  .contact-form-card { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form__submit { align-self: stretch; justify-content: center; }
}

/* ==========================================================================
   WhatsApp OTP verification (progressive enhancement — see assets/js/contact.js)
   The phone field itself is an ordinary field; everything below belongs to the
   dialog that opens after "Send Us a Message" once a code has gone out.
   ========================================================================== */
body.lm-modal-open { overflow: hidden; }

.lm-otp-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lm-otp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 44, 44, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: lm-otp-fade .18s ease-out;
}

.lm-otp-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 36px 32px 28px;
  background: var(--warm-cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: lm-otp-rise .22s ease-out;
}

@keyframes lm-otp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lm-otp-rise {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lm-otp-modal__backdrop,
  .lm-otp-modal__dialog { animation: none; }
}

.lm-otp-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.lm-otp-modal__close:hover { background: var(--blush); color: var(--heading); }

.lm-otp-modal__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--accent);
}
.lm-otp-modal__icon svg { width: 28px; height: 28px; display: block; }

.lm-otp-modal__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.lm-otp-modal__lede {
  color: var(--body);
  font-size: .96rem;
  line-height: 1.6;
  margin: 0 0 20px;
}
.lm-otp-modal__lede strong { color: var(--heading); white-space: nowrap; }

.lm-otp-modal .lm-otp-code {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  display: block;
  padding: 14px 10px;
  text-align: center;
  letter-spacing: .5em;
  text-indent: .5em; /* keeps the digits optically centred despite the tracking */
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--heading);
  background: #fff;
  border: 1px solid var(--dusty-rose);
  border-radius: var(--radius-sm);
}
.lm-otp-modal .lm-otp-code:focus {
  outline: none;
  border-color: var(--deep-rose);
  box-shadow: 0 0 0 3px rgba(201, 125, 138, .18);
}

.lm-otp-modal .lm-otp-confirm {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* "Send it the other way" — only rendered when both channels are offered. */
.lm-otp-switch {
  display: block;
  width: 100%;
  margin: 14px auto 0;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--font-heading);
  font-size: .88rem;
  font-weight: 500;
  color: var(--deep-plum);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lm-otp-switch:hover:not(:disabled) { color: var(--deep-rose); }
.lm-otp-switch:disabled { color: var(--muted); cursor: default; text-decoration: none; }

.lm-otp-status {
  margin: 12px 0;
  font-size: .88rem;
  font-weight: 500;
  min-height: 1.2em;
  color: var(--muted);
}
.lm-otp-status.is-ok { color: #1a7f37; }
.lm-otp-status.is-error { color: var(--deep-rose); }

.lm-otp-modal__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}
.lm-otp-resend,
.lm-otp-edit {
  background: none;
  border: 0;
  padding: 0;
  font-size: .86rem;
  font-weight: 500;
  color: var(--deep-rose);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lm-otp-edit { color: var(--muted); }
.lm-otp-resend:disabled {
  color: var(--muted);
  cursor: default;
  text-decoration: none;
}

@media (max-width: 480px) {
  .lm-otp-modal__dialog { padding: 32px 22px 24px; }
  .lm-otp-modal__foot { flex-direction: column; gap: 12px; }
}

/* Honeypot field — hidden from people, left in the DOM for naive bots to fill.
   Deliberately not display:none: some bots skip hidden inputs, so it is simply
   moved out of the viewport instead. See inc/contact-form.php. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
