/* ============================================================
   oh golly britta — contact.css
   ============================================================ */

/* ── Page ── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--terra);
  color: var(--cream);
  min-height: 100vh;
}

.contact-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 80px;
}

/* ── Header ── */
.contact-header {
  text-align: center;
  max-width: 580px;
  margin-bottom: 40px;
}
.contact-header .eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(245,237,228,.5);
  margin-bottom: 12px;
}
.contact-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 900; line-height: .95;
  color: var(--cream); letter-spacing: -.025em;
  margin-bottom: 16px;
}
.contact-header h1 em { font-style: italic; color: var(--teal-light); }
.contact-header p {
  font-size: 15px; color: rgba(245,237,228,.65); line-height: 1.7;
}

/* ── Card ── */
.contact-card {
  background: var(--ink);
  border-radius: var(--radius);
  width: 100%; max-width: 660px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(44,26,14,.35);
  border: 1px solid rgba(245,237,228,.06);
}

/* ── Progress Bar ── */
.progress-bar {
  display: flex; align-items: center;
  padding: 28px 36px 0;
}
.step-node {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; cursor: default;
}
.step-node .node-circle {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid rgba(245,237,228,.15);
  background: rgba(245,237,228,.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: rgba(245,237,228,.3);
  transition: all .22s ease; position: relative; z-index: 1;
}
.step-node .node-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  color: rgba(245,237,228,.25); margin-top: 7px;
  text-transform: uppercase; transition: color .22s ease; white-space: nowrap;
}
.step-node.active .node-circle {
  border-color: var(--teal); background: var(--teal); color: var(--cream);
  box-shadow: 0 0 0 4px rgba(61,154,139,.25);
}
.step-node.active .node-label { color: var(--teal-light); font-weight: 700; }
.step-node.done .node-circle  { border-color: var(--teal); background: var(--teal); color: var(--cream); }
.step-node.done .node-label   { color: var(--teal-light); }

.step-connector {
  flex: 1; height: 2px;
  background: rgba(245,237,228,.1);
  margin-bottom: 22px; position: relative; overflow: hidden;
}
.step-connector .fill {
  position: absolute; inset: 0;
  background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.step-connector.filled .fill { transform: scaleX(1); }

/* ── Form Body ── */
.form-body { padding: 36px 40px 40px; }
.form-step { display: none; animation: stepIn .3s var(--ease-out) forwards; }
.form-step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.step-heading { margin-bottom: 28px; }
.step-heading h2 {
  font-family: 'Fraunces', serif;
  font-size: 28px; font-weight: 800; font-style: italic;
  color: var(--cream); line-height: 1.1; margin-bottom: 6px;
}
.step-heading p { font-size: 14px; color: rgba(245,237,228,.5); line-height: 1.65; }

/* ── Fields ── */
.field-row { display: grid; gap: 16px; margin-bottom: 16px; }
.field-row.cols-2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(245,237,228,.4);
}
.field label .req { color: var(--terra-light); margin-left: 2px; }
.field input, .field select, .field textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 400;
  color: var(--cream);
  background: rgba(245,237,228,.06);
  border: 1.5px solid rgba(245,237,228,.12);
  border-radius: 10px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  width: 100%;
  appearance: none; -webkit-appearance: none;
}
.field input::placeholder, .field textarea::placeholder {
  color: rgba(245,237,228,.2);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--terra);
  background: rgba(245,237,228,.09);
  box-shadow: 0 0 0 3px rgba(193,101,74,.2);
}
.field select option { background: #2C1A0E; color: var(--cream); }
.field input.invalid, .field select.invalid, .field textarea.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(224,92,74,.15);
}
.field-error { font-size: 12px; color: var(--error); font-weight: 600; min-height: 16px; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: ''; position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid rgba(245,237,228,.3);
  pointer-events: none;
}

/* ── Tiles ── */
.tile-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.tile { position: relative; cursor: pointer; }
.tile input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.tile-label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 14px 8px;
  border: 1.5px solid rgba(245,237,228,.1);
  border-radius: 10px;
  background: rgba(245,237,228,.04);
  font-size: 12px; font-weight: 600;
  color: rgba(245,237,228,.4);
  text-align: center; cursor: pointer;
  transition: all .2s ease; user-select: none; min-height: 72px;
}
.tile-label .tile-icon { font-size: 20px; line-height: 1; }
.tile input:checked + .tile-label {
  border-color: var(--terra);
  background: rgba(193,101,74,.15);
  color: var(--terra-light);
  box-shadow: 0 0 0 1px var(--terra);
}
.tile-label:hover { border-color: rgba(245,237,228,.3); color: rgba(245,237,228,.7); }

/* ── Budget ── */
.budget-display {
  font-family: 'Fraunces', serif; font-size: 32px; font-weight: 800;
  font-style: italic; color: var(--teal-light);
  text-align: center; margin-bottom: 8px;
}
input[type="range"] {
  -webkit-appearance: none; width: 100%; height: 4px;
  background: rgba(245,237,228,.12); border-radius: 2px;
  outline: none; cursor: pointer; margin: 8px 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px;
  border-radius: 50%; background: var(--terra);
  border: 2px solid var(--ink);
  box-shadow: 0 2px 8px rgba(193,101,74,.4);
  cursor: pointer; transition: transform .15s var(--ease-spring);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.25); }
.budget-labels { display: flex; justify-content: space-between; font-size: 11px; color: rgba(245,237,228,.28); margin-top: 4px; }

/* ── Captcha ── */
.captcha-box {
  background: rgba(61,154,139,.06);
  border: 1.5px solid rgba(61,154,139,.2);
  border-radius: 14px; padding: 24px; margin-bottom: 24px; text-align: center;
}
.captcha-box .captcha-label {
  font-size: 10px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--teal-light); opacity: .65; margin-bottom: 14px;
}
.captcha-challenge {
  font-family: 'Fraunces', serif; font-size: 34px; font-weight: 800;
  color: var(--cream);
  background: rgba(245,237,228,.06);
  border: 1.5px dashed rgba(245,237,228,.15);
  border-radius: 10px; padding: 14px 28px;
  display: inline-block; letter-spacing: .05em;
  margin-bottom: 16px; user-select: none;
}
.captcha-challenge .op { color: var(--terra-light); font-style: italic; }
.captcha-input-row { display: flex; gap: 10px; align-items: center; justify-content: center; }
.captcha-input-row input { width: 90px; text-align: center; font-size: 20px; font-family: 'Fraunces', serif; }
.captcha-refresh {
  background: rgba(245,237,228,.06); border: 1.5px solid rgba(245,237,228,.12);
  border-radius: 10px; padding: 10px 12px;
  cursor: pointer; color: rgba(245,237,228,.4);
  font-size: 16px; transition: all .2s ease; line-height: 1;
}
.captcha-refresh:hover { border-color: var(--terra); color: var(--terra-light); background: rgba(193,101,74,.12); }

/* ── Consent ── */
.consent-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.consent-row input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--terra); cursor: pointer; }
.consent-row label { font-size: 13px; color: rgba(245,237,228,.45); line-height: 1.65; cursor: pointer; }
.consent-row label a { color: var(--terra-light); text-decoration: underline; text-underline-offset: 3px; }

/* ── Form Nav Buttons ── */
.form-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid rgba(245,237,228,.08);
}
.btn-back {
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  color: rgba(245,237,228,.35); background: none; border: none;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 10px 0; transition: color .2s ease;
  letter-spacing: .04em; text-transform: uppercase;
}
.btn-back:hover { color: rgba(245,237,228,.7); }
.btn-back::before { content: '←'; font-size: 16px; }

.btn-next, .btn-submit {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cream); background: var(--terra);
  border: none; border-radius: 100px;
  padding: 13px 28px; cursor: pointer;
  transition: background .2s, transform .2s var(--ease-spring), box-shadow .2s;
  display: flex; align-items: center; gap: 8px;
}
.btn-next::after { content: '→'; font-size: 15px; }
.btn-next:hover, .btn-submit:hover {
  background: var(--terra-dark);
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(193,101,74,.35);
}
.btn-submit { padding: 14px 32px; font-size: 14px; background: var(--teal); }
.btn-submit:hover {
  background: var(--teal-dark);
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(61,154,139,.4);
}

/* ── Success Panel ── */
.success-panel { display: none; padding: 60px 40px; text-align: center; }
.success-panel.visible { display: block; animation: stepIn .4s var(--ease-out); }
.success-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(91,184,168,.12); border: 2px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 24px;
  animation: popIn .5s var(--ease-spring) .2s both;
}
@keyframes popIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-panel h2 {
  font-family: 'Fraunces', serif; font-size: 34px; font-weight: 800;
  font-style: italic; color: var(--cream); margin-bottom: 12px;
}
.success-panel p { font-size: 15px; color: rgba(245,237,228,.6); line-height: 1.7; max-width: 380px; margin: 0 auto; }
.success-panel strong { color: var(--teal-light); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .contact-wrap { padding: 40px 12px 60px; }
  .form-body { padding: 28px 20px 32px; }
  .progress-bar { padding: 22px 20px 0; }
  .field-row.cols-2 { grid-template-columns: 1fr; }
  .tile-group { grid-template-columns: repeat(2, 1fr); }
  .step-node .node-label { font-size: 9px; }
  .contact-header h1 { font-size: 38px; }
}
