/* =========================================
   Contact Page — Mobile-first, Responsive
   (Drop-in replacement using your class names)
========================================= */

/* Theme tokens */
:root {
  --accent: #f59e0b;
  --accent-ink: #111;
  --ink: #0f172a;          /* base text */
  --muted: #6b7280;
  --card: #fff;
  --border: rgba(0,0,0,.08);
  --shadow-sm: 0 8px 22px rgba(0,0,0,.12);
  --shadow-md: 0 12px 32px rgba(0,0,0,.14);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.16);
}
/* STATUS WRAPPER */
.status {
  position: relative;
  margin-top: 14px;
  min-height: 0; /* grows when card appears */
}

/* THE CARD */
.status-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, .25);
  background: linear-gradient(180deg, rgba(16,185,129,.1), rgba(16,185,129,.06));
  box-shadow:
    0 10px 30px rgba(16,185,129,.15),
    inset 0 1px 0 rgba(255,255,255,.4);
  color: #065f46;
  animation: slideIn .45s ease-out both;
}

/* SUCCESS ICON CIRCLE */
.status-card .icon {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 25% 25%, #34d399, #10b981);
  display: grid; place-items: center;
  color: white; font-size: 22px; line-height: 1;
  box-shadow: 0 6px 18px rgba(16,185,129,.35);
}

/* TEXT */
.status-card .title {
  font-weight: 800;
  margin: 0 0 2px;
}
.status-card .desc {
  margin: 0;
  color: #065f46;
}

/* CLOSE BUTTON */
.status-card .close {
  border: 0;
  background: transparent;
  color: #065f46;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  opacity: .8;
}
.status-card .close:hover { opacity: 1; }

/* ERROR VARIANT (optional) */
.status-card.error {
  border-color: rgba(239, 68, 68, .25);
  background: linear-gradient(180deg, rgba(239,68,68,.09), rgba(239,68,68,.05));
  color: #7f1d1d;
  box-shadow: 0 10px 30px rgba(239,68,68,.15), inset 0 1px 0 rgba(255,255,255,.4);
}
.status-card.error .icon {
  background: radial-gradient(circle at 25% 25%, #fb7185, #ef4444);
  box-shadow: 0 6px 18px rgba(239,68,68,.35);
}

/* ANIMATION */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* optional: auto-hide fade-out */
@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-4px); }
}
.status-card.fade-out { animation: fadeOut .35s ease-in forwards; }


/* Better defaults */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif; }

/* Optional container helper (wrap your .contact-grid in this if you want a max-width) */
.container { width: min(1100px, 100%); margin: 0 auto; }

/* ===== Contact Hero ===== */
.contact-hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 4rem 1rem;
  background:
    url('../assets/4C0A0139.jpg')
    center 27% / cover no-repeat; /* 👈 shifted downward */
}


.contact-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(0,0,0,.25), rgba(0,0,0,.55)),
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55));
}
.contact-hero__inner { position: relative; z-index: 2; max-width: 60ch; padding-inline: 1rem; }

.contact-hero h1 {
  font-size: clamp(1.875rem, 1.25rem + 2.2vw, 3rem);
  margin: 0 0 .5rem;
}
.contact-hero p {
  font-size: clamp(.95rem, .85rem + .7vw, 1.25rem);
  opacity: .98;
  margin: 0;
}

/* ===== Contact Grid ===== */
.contact-wrap { padding: 3rem 1rem 4rem; }
.contact-grid {
  display: grid;
  gap: 1.5rem;
  /* Mobile-first: single column; we’ll scale up at wider screens */
  grid-template-columns: 1fr;
}

/* ===== Glass Card (Form) ===== */
.contact-card {
  position: relative;
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow-sm);
}
.contact-card h2 { margin: 0 0 .5rem; }
.contact-card .muted { color: var(--muted); margin-bottom: 1rem; }

.contact-form .hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
}

/* Fields */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
  margin-bottom: .9rem;
}
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: .95rem 1rem; /* better tap targets */
  font-size: 1rem;
  background: #fff;
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease, transform .05s ease;
  min-height: 44px; /* iOS guideline */
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(245,158,11,.15);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .95rem 1.25rem;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 44px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(245,158,11,.35); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* Secondary Button */
.btn-secondary { background: #111; color: #fff; }
.btn-secondary:hover { box-shadow: 0 8px 22px rgba(0,0,0,.35); }

/* Status */
.status { display: inline-block; margin-left: .75rem; color: #065f46; }

/* ===== Info Card ===== */
.info-card {
  border-radius: 20px;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  align-self: start;
}
.info-card h3 { margin-top: 0; }
.info-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  display: grid;
  gap: 1rem;
}
.info-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: .9rem;
  align-items: start;
}
.info-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(245,158,11,.12);
  font-size: 1.15rem;
}
.mini-cta p { margin: 0 0 .75rem; color: #374151; }

/* ====== Breakpoints ====== */

/* ≥ 480px (small phones → larger phones) */
@media (min-width: 480px) {
  .contact-card,
  .info-card { padding: 1.5rem; border-radius: 22px; }
  .contact-hero { padding: 5rem 1.25rem; }
}

/* ≥ 640px (small tablets) */
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; } /* two-up fields */
}

/* ≥ 768px (tablets) */
@media (min-width: 768px) {
  .contact-wrap { padding: 4rem 1rem 5rem; }
  .contact-grid { gap: 2rem; }
  .contact-card,
  .info-card { padding: 1.75rem; }
}

/* ≥ 992px (small laptops) */
@media (min-width: 992px) {
  .contact-grid { grid-template-columns: 1.2fr .9fr; }
  .contact-card,
  .info-card { padding: 2rem; border-radius: 24px; box-shadow: var(--shadow-md); }
  .contact-hero h1 { font-size: clamp(2.2rem, 2rem + 1.5vw, 3.25rem); }
}

/* ≥ 1200px (desktops) */
@media (min-width: 1200px) {
  .contact-grid { grid-template-columns: 1.3fr 1fr; gap: 2.5rem; }
  .contact-hero { min-height: 65vh; }
  .container { width: min(1200px, 100%); }
}

/* ===== Accessibility & Preferences ===== */

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e5e7eb;
    --card: #0b0f1a;
    --border: rgba(255,255,255,.08);
    --accent-ink: #0b0f1a;
  }
  body { background: #0b0f1a; }
  .contact-card { background: rgba(17,24,39,.55); border-color: rgba(255,255,255,.1); }
  .info-card { background: #111827; color: var(--ink); }
  .field input, .field textarea { background: #0f172a; color: var(--ink); border-color: rgba(255,255,255,.08); }
  .info-icon { background: rgba(245,158,11,.2); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* iOS safe areas */
@supports (padding: max(0px)) {
  .contact-hero {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* Handy: make stacked buttons full-width on tight screens */
@media (max-width: 420px) {
  .btn { width: 100%; }
}
