/* ============================================================
   CONTACT MODAL — Google Form embed
   Apply Max · A Prosk AI Product
   ============================================================ */

/* ─── OVERLAY ────────────────────────────────────────────── */
.contact-overlay {
  position: fixed; inset: 0; z-index: 9100;
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.contact-overlay.visible {
  opacity: 1; pointer-events: all;
}

/* ─── CARD ───────────────────────────────────────────────── */
.contact-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(24px);
  opacity: 0;
  transition: transform .4s cubic-bezier(0.34, 1.46, 0.64, 1), opacity .3s ease;
}
.contact-overlay.visible .contact-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ─── HEADER ─────────────────────────────────────────────── */
.contact-header {
  position: relative;
  background: linear-gradient(135deg, #0f1729 0%, #1e3a8a 100%);
  padding: 1.4rem 3.5rem 1.4rem 1.8rem; /* right padding makes room for close btn */
  flex-shrink: 0;
  overflow: hidden;
}
.contact-header::before {
  content: '';
  position: absolute; top: -50px; right: -30px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.3), transparent 70%);
  pointer-events: none;
}
.contact-header-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px; padding: .22rem .75rem;
  font-size: .68rem; font-weight: 700; color: rgba(255,255,255,0.6);
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: .65rem; position: relative; z-index: 1;
}
.contact-header h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em;
  color: #fff; margin-bottom: .25rem;
  position: relative; z-index: 1;
}
.contact-header p {
  font-size: .82rem; color: rgba(255,255,255,0.5); line-height: 1.5;
  position: relative; z-index: 1;
}

/* ─── CLOSE BUTTON ───────────────────────────────────────── */
.contact-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.6); font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s; line-height: 1;
  font-family: system-ui, sans-serif;
}
.contact-close:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* ─── IFRAME WRAPPER ─────────────────────────────────────── */
.contact-iframe-wrap {
  flex: 1;
  overflow: hidden;
  background: #fff;
  /* min-height keeps the form usable even on short viewports */
  min-height: 300px;
}

.contact-iframe-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: none;
  /* Google Form has its own scrollbar — let it handle overflow */
}

/* ─── ACKNOWLEDGEMENT SCREEN ─────────────────────────────── */
.contact-ack {
  display: none;           /* shown by JS after form submit */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem 2.5rem;
  flex: 1;
  background: var(--white);
}

/* Pop-in animation for the whole ack block */
.contact-ack.visible {
  display: flex;
  animation: ackIn .45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes ackIn {
  from { opacity: 0; transform: scale(0.88) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.ack-icon {
  font-size: 3.2rem;
  margin-bottom: 1.1rem;
  animation: popIn .5s cubic-bezier(0.34, 1.56, 0.64, 1) .1s both;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.4) rotate(-10deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

.ack-heading {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.65rem; font-weight: 800;
  letter-spacing: -0.03em; color: var(--ink);
  margin-bottom: .6rem;
}

.ack-body {
  font-size: .92rem; color: var(--ink-soft);
  line-height: 1.65; max-width: 340px;
  margin-bottom: 1.6rem;
}
.ack-body strong { color: var(--ink); font-weight: 700; }

/* Email pill */
.ack-email {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blue-light); border: 1px solid var(--blue-mid);
  border-radius: 100px; padding: .5rem 1.2rem;
  font-size: .88rem; font-weight: 700; color: var(--blue);
  text-decoration: none; margin-bottom: 1.8rem;
  transition: background .15s;
}
.ack-email:hover { background: #dbeafe; }
.ack-email-icon { font-style: normal; font-size: .95rem; }

/* Close button */
.ack-close-btn {
  background: var(--ink); color: #fff;
  border: none; border-radius: 10px;
  padding: .75rem 2rem;
  font-family: 'Instrument Sans', sans-serif;
  font-size: .92rem; font-weight: 700;
  cursor: pointer; transition: background .15s, transform .15s;
}
.ack-close-btn:hover { background: var(--ink-mid); transform: translateY(-1px); }

/* ─── FORM PROGRESS TRACK ────────────────────────────────── */
.contact-progress-track {
  height: 3px;
  background: rgba(255,255,255,0.10);
  flex-shrink: 0;
  position: relative;
}
.contact-progress-fill {
  position: absolute; left: 0; top: 0;
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--emerald));
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 2px 2px 0;
}

/* ─── FORM STEP INDICATOR ────────────────────────────────── */
.form-step-row {
  display: flex; align-items: center; gap: .45rem;
  margin-top: .9rem;
  position: relative; z-index: 1;
}
.fs-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
  transition: all .35s;
}
.fs-dot.fsd-active {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.25);
}
.fs-dot.fsd-done {
  background: var(--emerald);
  border-color: var(--emerald);
}
.fs-connector {
  width: 28px; height: 1.5px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
  transition: background .35s;
}
.fs-connector.fsc-done {
  background: rgba(16,185,129,0.5);
}
.fs-label {
  font-size: .7rem; font-weight: 700;
  color: rgba(255,255,255,0.4);
  margin-left: .4rem;
  letter-spacing: .04em;
  transition: color .35s;
}

/* ─── FOOTER STRIP ───────────────────────────────────────── */
.contact-form-footer {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1rem;
  background: var(--paper);
  border-top: 1px solid var(--border);
  font-size: .76rem; color: var(--ink-mute);
  flex-shrink: 0;
}
.contact-form-footer a {
  color: var(--blue); text-decoration: none; font-weight: 600;
  transition: opacity .15s;
}
.contact-form-footer a:hover { opacity: .75; }

/* ─── RESPONSIVE — bottom sheet on mobile ────────────────── */
@media (max-width: 600px) {
  .contact-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .contact-card {
    border-radius: 22px 22px 0 0;
    max-width: 100%;
    max-height: 93vh;
    /* Slide up from bottom */
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(0.34, 1.2, 0.64, 1), opacity .3s ease;
  }
  .contact-overlay.visible .contact-card {
    transform: translateY(0);
    opacity: 1;
  }
  .contact-header { padding: 1.1rem 3rem 1rem 1.3rem; }
  .contact-header h3 { font-size: 1.15rem; }
  .contact-header p  { font-size: .78rem; }
  .form-step-row { margin-top: .65rem; }
  .contact-iframe-wrap iframe { min-height: 440px; }
}
