/* ==========================================================
   CONTACT PAGE — STRICT HOME/INDEX CONSISTENCY
   - same rhythm: section padding, head gap, grid gap
   - same card system: radius/shadow/border
   - same button feel + hover behavior
========================================================== */

/* ---- shared rhythm tokens (matches your home spacing) ---- */
:root{
  --c-secY: 42px;   /* .section padding y */
  --c-headGap: 22px;
  --c-gridGap: 18px;
  --c-cardPadX: 18px;
  --c-cardPadY: 18px;
}

/* ---- match home section system on this page (since home.css is not loaded) ---- */
.contactPage .section{
  padding: var(--c-secY) 0;
}

/* same tint logic as home */
.contactPage .section--tint{
  background:
    radial-gradient(circle at 18% 22%, rgba(255,92,0,.10), transparent 55%),
    radial-gradient(circle at 82% 28%, rgba(0,19,105,.10), transparent 60%),
    linear-gradient(180deg, rgba(0,19,105,.04), rgba(255,92,0,.03));
}

/* Buttons: match home “orange secondary” + same hover */
.contactPage .btn{
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background .15s ease;
}
.contactPage .btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0,0,0,.14);
  filter: brightness(1.05);
}
.contactPage .btn:active{
  transform: translateY(0);
  box-shadow: 0 10px 18px rgba(0,0,0,.10);
}

/* make btn--secondary look like home (primary orange) */
.contactPage .btn.btn--secondary{
  background: var(--primary);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  padding:10px 18px;
  font-size:14px;
  font-weight:600;
  border-radius:999px;
  line-height:1;
  box-shadow:0 10px 18px rgba(0,0,0,.10);
}

/* helpers */
.w-100{ width:100%; }

/* ==========================================================
   HERO (aligned with site theme)
========================================================== */
.contactHero{
  padding: 26px 0 18px;
  background:
    radial-gradient(circle at 15% 30%, rgba(255,92,0,.10), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(0,19,105,.10), transparent 55%),
    linear-gradient(180deg, rgba(0,19,105,.06), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(2,6,23,.08);
}
.contactHero__title{ margin:0 0 6px; }
.contactHero__sub{ margin:0; max-width:70ch; }

/* ==========================================================
   BLOCK HEADS (like section heads on home, but left aligned)
========================================================== */
.contactBlock{
  display:grid;
  gap: var(--c-gridGap);
  margin: 0;
}

/* consistent spacing between Puri block and Bhubaneswar block and form */
.contactBlock + .contactBlock{
  margin-top: var(--c-secY);
}

/* slightly tighter between block head and grid */
.contactBlock__head{
  margin: 0;
}
.contactBlock__title{
  margin: 0 0 6px;
}
.contactBlock__sub{
  margin: 0;
}

/* ==========================================================
   GRID (2 columns, equal gap)
   - Row2 reverse only on desktop
   - Mobile: Address then Map ALWAYS
========================================================== */
.contactGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--c-gridGap);
  align-items: stretch;
}

/* reverse only on desktop */
.contactGrid--reverse{
  direction: rtl;            /* flips columns */
}
.contactGrid--reverse > *{
  direction: ltr;            /* keep content normal */
}

/* ==========================================================
   PANEL (shared shell; same premium feel as your system)
========================================================== */
.panel{
  background:#fff;
  border-radius: var(--radius);
  border:1px solid rgba(2,6,23,.08);
  overflow:hidden;
  box-shadow: var(--shadow);
}

/* cap like your navy identity bars */
.panel__cap{
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(0,19,105,.95), rgba(0,19,105,.88));
  color:#fff;
}
.panel__capTitle{
  margin:0;
  font-family:"Cinzel", serif;
  font-weight:700;
  letter-spacing:.6px;
  text-transform:uppercase;
  font-size:16px;
}

/* body padding aligned with your card system feel */
.panel__body{
  padding: 16px 16px;
  display:grid;
  gap: 8px;
}

.panel__actions{
  padding: 0 16px 16px;
}

/* subtle divider inside address */
.contactSep{
  height:1px;
  background: rgba(2,6,23,.08);
  margin: 6px 0 6px;
}

/* address typography consistent */
.contactLine{
  margin:0;
  line-height:1.7;
  color: var(--text);
  font-size:14px;
}

.contactLabel{
  color: var(--muted);
  font-weight:600;
  margin-right:6px;
}
.contactLink{
  color: var(--secondary);
  font-weight:700;
  text-decoration:none;
}
.contactLink:hover{ color: var(--primary); }

/* ==========================================================
   ✅ EQUAL HEIGHT FIX (Card + Map must match)
   - actions pinned at bottom
   - map fills remaining height
========================================================== */
.panel{
  display:flex;
  flex-direction:column;
  height:100%;
}
.panel__body{
  flex: 1;
}
.panel__actions{
  margin-top: auto;
}
.panel--map{
  display:flex;
  flex-direction:column;
}
.panel--map .mapFrame{
  flex:1;
  min-height: 260px;
}

/* ==========================================================
   MAP (equal visual height to address cards)
========================================================== */
.mapFrame{
  position:relative;
  width:100%;
  background: rgba(0,19,105,.06);
}
.mapFrame iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

/* ==========================================================
   FORM (same panel system + consistent inputs)
========================================================== */
.contactForm{
  padding: 16px;
  display:grid;
  gap: 14px;
}

.formGrid{
  display:grid;
  gap: 14px;
}
.formGrid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.formGrid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

.field{
  display:grid;
  gap: 6px;
}

.field__label{
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: .2px;
}

.field__input{
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(2,6,23,.14);
  outline:none;
  font-family: inherit;
  font-size: 14px;
  background:#fff;
}

.field__input:focus{
  border-color: rgba(255,92,0,.55);
  box-shadow: 0 0 0 4px rgba(255,92,0,.14);
}

.field__textarea{
  resize: vertical;
  min-height: 140px;
}

.contactForm__btn{
  padding: 12px 18px;
  border-radius: 999px;
}

/* ==========================================================
   RESPONSIVE
   - Mobile order: Address then Map ALWAYS
========================================================== */
@media (max-width: 980px){
  .contactGrid{
    grid-template-columns: 1fr;
  }

  /* disable reverse trick on mobile so it stacks normally */
  .contactGrid--reverse{
    direction: ltr;
  }

  .panel--map .mapFrame{
    min-height: 240px;
  }
}

@media (max-width: 820px){
  .formGrid--3{ grid-template-columns: 1fr; }
  .formGrid--2{ grid-template-columns: 1fr; }
}
