/* ============================================================
   CONTACT — dark Prussian editorial (matches Origin / Platform)
   ============================================================ */
.page-contact .nav {
  background: rgba(10, 26, 51, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(184, 150, 58, 0.15);
}

.contact {
  background: var(--prussian);
  color: var(--parchment);
  padding: 110px 48px 80px;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 10%, rgba(28, 58, 95, 0.7) 0%, transparent 55%);
  pointer-events: none;
}
.contact-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
  position: relative;
}

.contact .section-head {
  border-color: rgba(184, 150, 58, 0.18);
  margin-bottom: 48px;
}
.contact .section-head::after { background: var(--antique-gold); }
.contact .section-numeral { color: var(--burnished-gold); }
.contact .section-label { color: rgba(250, 247, 242, 0.55); }

.contact-intro h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--parchment);
  margin-bottom: 28px;
}
.contact-intro h1 em {
  font-style: italic;
  color: var(--burnished-gold);
}
.contact-intro .lead {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(250, 247, 242, 0.72);
  max-width: 420px;
  margin-bottom: 48px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 32px;
  border-top: 1px solid rgba(184, 150, 58, 0.18);
  position: relative;
}
.contact-details::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 72px; height: 1px;
  background: var(--antique-gold);
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-detail-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--burnished-gold);
}
.contact-detail .label {
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burnished-gold);
  margin-bottom: 6px;
}
.contact-detail .value {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(250, 247, 242, 0.78);
}
.contact-detail a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
.contact-detail a:hover { color: var(--burnished-gold); }

/* —— Modes (tabs) —— */
.contact-panel {
  position: relative;
  padding: 40px 0 0;
  min-width: 0;
}
.contact-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--antique-gold), rgba(184, 150, 58, 0.12) 45%, transparent);
}

.contact-modes-label {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burnished-gold);
  margin-bottom: 18px;
}
.contact-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 40px;
  border: 1px solid rgba(184, 150, 58, 0.35);
}
.contact-mode {
  font-family: var(--button);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.72);
  background: rgba(10, 26, 51, 0.35);
  border: none;
  border-right: 1px solid rgba(184, 150, 58, 0.35);
  padding: 20px 16px;
  cursor: pointer;
  text-align: center;
  transition: color 0.3s, background 0.3s, box-shadow 0.3s;
}
.contact-mode:last-child { border-right: none; }
.contact-mode:hover {
  color: var(--parchment);
  background: rgba(28, 58, 95, 0.55);
}
.contact-mode.is-active {
  color: var(--prussian-deep);
  background: var(--burnished-gold);
  box-shadow: inset 0 0 0 1px var(--burnished-gold);
}
.contact-mode.is-active:hover {
  color: var(--prussian-deep);
  background: var(--antique-gold);
}

.contact-pane { display: none; }
.contact-pane.is-active { display: block; animation: contactRise 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
.contact-pane-lead {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(250, 247, 242, 0.65);
  margin-bottom: 28px;
  max-width: 480px;
}

/* —— Calendly (Fix 1: fixed heights per breakpoint) —— */
.contact-calendly {
  width: 100%;
  min-width: 0;
  border-top: 1px solid rgba(184, 150, 58, 0.18);
  position: relative;
  background: var(--prussian);
  overflow: hidden;
}
.contact-calendly::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 72px; height: 1px;
  background: var(--antique-gold);
  z-index: 1;
}
.calendly-inline-widget {
  width: 100%;
  min-width: 320px;
  height: 630px;
  background: var(--prussian);
  overflow: hidden;
}
.calendly-inline-widget iframe {
  border: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

/* —— Form —— */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.field label {
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burnished-gold);
}
.field input,
.field textarea {
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--parchment);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(184, 150, 58, 0.22);
  padding: 10px 0 14px;
  outline: none;
  width: 100%;
  border-radius: 0;
  transition: border-color 0.3s;
  resize: vertical;
}
.field textarea {
  min-height: 140px;
  line-height: 1.7;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(250, 247, 242, 0.32);
}
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--burnished-gold);
}

.contact-form .btn-primary {
  align-self: flex-start;
  margin-top: 8px;
  cursor: pointer;
  font-family: var(--button);
  background: var(--antique-gold);
  color: var(--prussian-deep);
}
.contact-form .btn-primary:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  box-shadow: none;
}
.contact-form .btn-primary:hover {
  background: var(--burnished-gold);
  box-shadow: 0 12px 32px rgba(184, 150, 58, 0.28);
}
.contact-form .btn-primary:disabled:hover {
  background: var(--antique-gold);
  box-shadow: none;
}

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

@media (max-width: 1024px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .contact { padding-bottom: 64px; }
  .calendly-inline-widget { height: 600px; }
}
@media (max-width: 640px) {
  .contact { padding: 130px 22px 0; }
  .contact-inner { gap: 36px; }
  .contact-panel { padding-top: 28px; }
  .contact-pane-lead { margin-bottom: 12px; }
  .contact-modes { margin-bottom: 20px; }
  .contact-modes-label { margin-bottom: 12px; }
  .field-row { grid-template-columns: 1fr; gap: 32px; }
  .contact-form .btn-primary { width: 100%; justify-content: center; }
  .contact-mode { letter-spacing: 0.1em; font-size: 11px; padding: 18px 10px; }
  .calendly-inline-widget {
    min-width: 0;
    height: 580px;
  }
}
@media (max-width: 400px) {
  .calendly-inline-widget { height: 600px; }
}

/* —— Thank-you popup —— */
body.thankyou-open { overflow: hidden; }
body.thankyou-open .cursor-dot {
  z-index: 10060;
  opacity: 1;
  visibility: visible;
}
body.thankyou-open .cursor-ring {
  z-index: 10059;
  opacity: 1;
  visibility: visible;
}

.thankyou-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 22px;
  background: rgba(10, 26, 51, 0.82);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  animation: thankyouFade 0.35s ease both;
}
.thankyou-overlay[hidden] { display: none !important; }
.thankyou-overlay.is-open { display: flex; }

.thankyou-modal {
  position: relative;
  width: min(560px, 100%);
  text-align: center;
  background: var(--prussian);
  border: 1px solid rgba(184, 150, 58, 0.35);
  padding: 56px 40px 48px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  animation: thankyouRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.thankyou-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--antique-gold), transparent);
}

.thankyou-eyebrow {
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--burnished-gold);
  margin-bottom: 24px;
}

.thankyou-modal h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--parchment);
  margin-bottom: 20px;
}
.thankyou-modal h2 em {
  font-style: italic;
  color: var(--burnished-gold);
}

.thankyou-lead {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(250, 247, 242, 0.72);
  max-width: 400px;
  margin: 0 auto 40px;
}

.thankyou-modal .btn-primary {
  background: var(--antique-gold);
  color: var(--prussian-deep);
}
.thankyou-modal .btn-primary:hover {
  background: var(--burnished-gold);
  box-shadow: 0 12px 32px rgba(184, 150, 58, 0.28);
}

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

@media (max-width: 640px) {
  .thankyou-modal { padding: 44px 24px 40px; }
  .thankyou-modal .btn-primary {
    width: 100%;
    justify-content: center;
  }
}
