/* Contact page styles — scoped .contact-* prefix. Reuses the coral /
   navy / cream token family from theme.css + faq.css + reviews.css. */

/* ── Page tokens ──────────────────────────────────────────── */
.contact-page {
  --contact-coral:  #FF6B6B;
  --contact-navy:   #1A1A2E;
  --contact-cream:  #FFF9F0;
  --contact-text:   #2D1B0E;
  --contact-dim:    #8B6F47;
  --contact-border: rgba(255, 107, 107, 0.18);
  --contact-font-display: 'Playfair Display', serif;
  --contact-font-body:    'DM Sans', sans-serif;

  font-family: var(--contact-font-body);
  background: var(--contact-cream);
  color: var(--contact-text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ── Nav ─────────────────────────────────────────────────────── */
.contact-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(233, 69, 96, 0.15);
}

.contact-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--contact-font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.contact-nav-links {
  display: flex;
  gap: 22px;
}

.contact-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-nav-links a:hover,
.contact-nav-links a[aria-current="page"] {
  color: #fff;
}

/* ── Hero ────────────────────────────────────────────────────── */
.contact-hero {
  background: var(--contact-navy);
  padding: 56px 24px 48px;
  text-align: center;
}

.contact-hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-eyebrow {
  font-family: var(--contact-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--contact-coral);
  margin: 0 0 14px;
}

.contact-hero-h1 {
  font-family: var(--contact-font-display);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.contact-hero-sub {
  font-family: var(--contact-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 16px auto 0;
  max-width: 480px;
}

/* ── Main + card ───────────────────────────────────────────── */
.contact-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--contact-border);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 12px 32px rgba(26, 26, 46, 0.06);
}

/* ── Form fields ───────────────────────────────────────────── */
.contact-form {
  display: block;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.contact-field label {
  font-family: var(--contact-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--contact-dim);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  font-family: var(--contact-font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--contact-text);
  background: #fff;
  border: 1.5px solid var(--contact-border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  outline: none;
}

.contact-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--contact-dim) 50%),
                    linear-gradient(135deg, var(--contact-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--contact-coral);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.18);
  background: #fff;
}

.contact-field.contact-touched input:invalid,
.contact-field.contact-touched select:invalid,
.contact-field.contact-touched textarea:invalid {
  border-color: var(--contact-coral);
}

.contact-required {
  color: var(--contact-coral);
  font-weight: 700;
}

.contact-field-error {
  display: none;
  color: var(--contact-coral);
  font-size: 13px;
  font-weight: 500;
  min-height: 16px;
  letter-spacing: 0;
  text-transform: none;
}

.contact-field-error--show {
  display: block;
}

/* ── Submit ────────────────────────────────────────────────── */
.contact-btn {
  display: inline-block;
  background: var(--contact-coral);
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  font-family: var(--contact-font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(255, 107, 107, 0.28);
  margin-top: 6px;
}

.contact-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #ff5757;
  box-shadow: 0 8px 22px rgba(255, 107, 107, 0.36);
}

.contact-btn:disabled {
  background: #f4a9a9;
  cursor: not-allowed;
  box-shadow: none;
}

.contact-form-error {
  color: var(--contact-coral);
  font-size: 14px;
  font-weight: 500;
  margin: 6px 0 12px;
  padding: 10px 14px;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid var(--contact-border);
  border-radius: 10px;
}

/* ── Honeypot — visually + a11y hidden ─────────────────────── */
.contact-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ── Success state ─────────────────────────────────────────── */
.contact-success {
  text-align: center;
  padding: 12px 4px 4px;
}

.contact-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.contact-success-title {
  font-family: var(--contact-font-display);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  color: var(--contact-text);
  margin: 0 0 10px;
}

.contact-success-body {
  font-family: var(--contact-font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--contact-text);
  margin: 0 auto 14px;
  max-width: 460px;
}

.contact-success-fallback {
  font-family: var(--contact-font-body);
  font-size: 14px;
  color: var(--contact-dim);
  margin: 18px auto 0;
  max-width: 460px;
}

.contact-success-fallback a {
  color: var(--contact-coral);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 107, 0.4);
  transition: border-color 0.15s, color 0.15s;
}

.contact-success-fallback a:hover {
  color: #ff5757;
  border-color: #ff5757;
}

/* ── Footer ─────────────────────────────────────────────────── */
.contact-footer {
  background: var(--contact-navy);
  padding: 28px 24px;
  text-align: center;
}

.contact-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}

.contact-footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-footer-links a:hover,
.contact-footer-links a[aria-current="page"] {
  color: #fff;
}

.contact-footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 720px) {
  .contact-nav { padding: 0 20px; }
  .contact-nav-links { gap: 14px; }
  .contact-nav-links a { font-size: 13px; }
  .contact-hero { padding: 40px 20px 36px; }
  .contact-main { padding: 28px 20px 60px; }
  .contact-card { padding: 26px 20px; }
}
