/* ============================================================
   CONTACT PAGE — DEDICATED STYLESHEET
   White / Navy Blue / Gold — uses design tokens from style.css
   (--navy, --gold, --white, --sky, --grey-*, --font-serif/sans)
============================================================ */

/* ------------------------------------------------------------
   Local keyframes
------------------------------------------------------------ */
@keyframes cpFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cpFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes cpMapReveal {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes cpSlideUpPanel {
  from { opacity: 0; transform: translateY(64px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cpShimmerLine {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

@keyframes cpPulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,149,42,0.35); }
  50%      { box-shadow: 0 0 0 8px rgba(184,149,42,0); }
}

@media (prefers-reduced-motion: reduce) {
  .cp-map-badge-dot,
  .cp-step { animation: none !important; }
  .cp-form-card, .cp-info-panel {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ------------------------------------------------------------
   PAGE WRAPPER
------------------------------------------------------------ */
.cp-page { background: var(--white); }

/* ============================================================
   HERO BANNER — background is the map, and only the map
============================================================ */
.cp-hero {
  position: relative;
  height: 64vh;
  min-height: 380px;
  max-height: 400px;
  overflow: hidden;
  margin-top: 80px; /* clears the fixed site header */
}

.cp-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cp-hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cp-hero-map .contact-map,
.cp-hero-map .map-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 28px;
  background: var(--off-white);
  color: var(--text-light);
}

.map-placeholder p { max-width: 460px; }

.map-placeholder-icon { font-size: 1.6rem; margin-bottom: 6px; }

.map-placeholder-btn {
  margin-top: 10px;
  padding: 10px 24px;
  border: 1.5px solid var(--navy);
  background: transparent;
  color: var(--navy);
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.map-placeholder-btn:hover { background: var(--navy); color: var(--white); }

/* ============================================================
   FLEX SECTION — form (left) + sliding info/footer panel (right)
============================================================ */
.cp-flex-section {
  padding: 110px 0 140px;
  background: var(--white);
}

.cp-flex-container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 64px;
  flex-wrap: wrap;
}

/* ---------------- LEFT: CONTACT FORM ---------------- */
.cp-form-card {
  flex: 1 1 54%;
  min-width: 320px;
  background: transparent;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}

.cp-form-card.cp-in-view {
  opacity: 1;
  transform: translateY(0);
}

.cp-form-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.cp-form-sub { color: var(--text-light); margin-bottom: 32px; font-size: 0.95rem; }

/* --- Progress indicator --- */
.cp-progress {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.cp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  width: 92px;
}

.cp-step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--grey-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--grey-400);
  transition: border-color var(--ease-slow), background var(--ease-slow),
              color var(--ease-slow), transform var(--ease);
}

.cp-step-label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-400);
  font-weight: 600;
  transition: color var(--ease-slow);
  white-space: nowrap;
}

.cp-step-line {
  flex: 1 1 auto;
  height: 2px;
  background: var(--grey-200);
  position: relative;
  margin: 0 -6px;
  top: -21px;
  border-radius: 2px;
  overflow: hidden;
}

.cp-step-line::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
}

.cp-step-line.cp-filled::after { width: 100%; }

.cp-step.cp-done .cp-step-circle {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--white);
  transform: scale(1.08);
}

.cp-step.cp-done .cp-step-label { color: var(--navy); }

/* --- Honeypot (hidden from real visitors, catches basic bots) --- */
.cp-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Form fields --- */
.cp-field {
  position: relative;
  margin-bottom: 26px;
}

.cp-field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 8px;
  transition: color var(--ease);
}

.cp-field input,
.cp-field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--off-white);
  border: 1.5px solid var(--grey-200);
  border-radius: 10px;
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

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

.cp-field input:focus,
.cp-field textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(184,149,42,0.14);
}

.cp-field.cp-valid label { color: var(--gold); }
.cp-field.cp-valid input,
.cp-field.cp-valid textarea { border-color: var(--sky-mid); }

.cp-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 15px 38px;
  border: none;
  border-radius: 40px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.cp-submit:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(184,149,42,0.3);
}

.cp-submit:active { transform: translateY(0); }

.cp-submit-arrow { transition: transform var(--ease); }
.cp-submit:hover .cp-submit-arrow { transform: translateX(4px); }

/* --- Success state --- */
.cp-form-success {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0 4px;
  animation: cpFadeUp 0.5s ease both;
}

.cp-form-success.cp-show { display: flex; }
.cp-form.cp-hide { display: none; }

.cp-success-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(184,149,42,0.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

/* ---------------- RIGHT: SLIDING FOOTER / SVG INFO PANEL ---------------- */
.cp-info-panel {
  flex: 1 1 38%;
  min-width: 280px;
  position: relative;
  background: transparent;
  padding: 56px 48px;
  color: var(--navy);
  overflow: hidden;
  opacity: 0;
  transform: translateY(64px);
  transition: opacity 0.9s cubic-bezier(.4,0,.2,1), transform 0.9s cubic-bezier(.4,0,.2,1);
}

.cp-info-panel.cp-in-view {
  opacity: 1;
  transform: translateY(0);
}

.cp-info-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.cp-info-content { position: relative; z-index: 1; padding-top: 50px; }

.cp-info-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.cp-info-content h2 { color: var(--navy); margin-bottom: 10px; }
.cp-info-sub { color: var(--text-light); font-size: 0.92rem; margin-bottom: 36px; }

.cp-info-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-bottom: 40px;
}

.cp-info-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  position: relative;
}

/* Dashed connector running from the bottom of one icon to the top of the next */
.cp-info-item:not(:last-child) .cp-info-icon::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 56px;
  border-left: 2px dashed var(--grey-200);
}

.cp-info-icon {
  flex-shrink: 0;
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), transform var(--ease);
}

.cp-info-item:hover .cp-info-icon {
  background: var(--gold);
  transform: scale(1.05);
}

.cp-info-icon svg,
.cp-info-icon img {
  width: 20px; height: 20px;
  object-fit: contain;
  /* recolor svg/png icons to white to sit on the solid navy circle */
  filter: brightness(0) invert(1);
}

.cp-info-text { padding-top: 6px; }

.cp-info-text-label {
  font-family: var(--font-serif);
  font-variant: small-caps;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

.cp-info-text a,
.cp-info-text p {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-light);
  text-decoration: none;
  margin: 0;
  line-height: 1.5;
  transition: color var(--ease);
}

.cp-info-text a:hover { color: var(--gold); }

.cp-info-social {
  display: flex;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--grey-200);
}

.cp-info-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}

.cp-info-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-3px);
}

.cp-info-social svg { width: 15px; height: 15px; }

/* ============================================================
   SIMPLIFIED FOOTER (legal only — contact info now lives above)
============================================================ */
.cp-footer-bottom {
  background: var(--grey-100);
  padding: 20px 0;
  border-top: 1px solid var(--grey-200);
}

.cp-footer-bottom-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cp-footer-left { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.cp-footer-left a {
  text-decoration: none;
  color: var(--grey-400);
  font-size: 0.73rem;
  padding: 2px 5px;
  transition: color var(--ease);
}

.cp-footer-left a:hover { color: var(--navy); }
.cp-footer-left span { color: var(--grey-200); font-size: 0.73rem; }
.cp-footer-right p { font-size: 0.73rem; color: var(--grey-400); margin: 0; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .cp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cp-map-frame { height: 300px; }
  .cp-flex-container { flex-direction: column; }
  .cp-form-card, .cp-info-panel { flex: 1 1 auto; }
}

@media (max-width: 640px) {
  .cp-hero { padding: 120px 0 50px; min-height: auto; }
  .cp-form-card, .cp-info-panel { padding: 34px 24px; }
  .cp-progress { overflow-x: auto; }
  .cp-step { width: 78px; }
}