/* =========================================================================
   CONTACT — page-specific styles
   ========================================================================= */

.contact-hero {
  padding-bottom: 50px;
}

/* ---------- LAYOUT ---------- */
.contact-body {
  padding: clamp(60px, 8vh, 100px) 0 clamp(80px, 10vh, 120px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- LEFT RAIL ---------- */
.contact-rail {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: sticky;
  top: 110px;
}

.rail-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.rail-block:last-child {
  border-bottom: 0;
}

.rail-block .label {
  margin-bottom: 6px;
}

.rail-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.label.small {
  font-size: 10px;
}

.rail-link {
  font-size: 19px;
  color: var(--ink);
  position: relative;
  display: inline-block;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  width: max-content;
  max-width: 100%;
  word-break: break-all;
  line-height: 1.3;
  transition: color 0.3s;
}

.rail-link:hover {
  color: var(--gold-deep);
}

.rail-text {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}

.rail-hours {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-hours li {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dotted var(--line-2);
  font-size: 14px;
  color: var(--ink-2);
}

.rail-hours li .serif {
  font-size: 16px;
  color: var(--ink);
}

.rail-quote {
  background: rgba(255, 255, 255, 0.4);
  padding: 28px 22px;
  border-bottom: 0;
}

.rail-quote p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 16px;
}

.rail-quote .label {
  font-size: 11px;
  color: var(--gold-deep);
}

@media (max-width: 980px) {
  .contact-rail {
    position: static;
  }
}

/* ---------- FORM PROGRESS ---------- */
.contact-form-wrap {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 56px);
  position: relative;
}

.form-progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.prog-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.4;
  transition: opacity 0.4s;
}

.prog-step.is-active,
.prog-step.is-done {
  opacity: 1;
}

.prog-num {
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.4s, color 0.4s;
}

.prog-step.is-active .prog-num {
  background: var(--ink);
  color: var(--gold-2);
}

.prog-step.is-done .prog-num {
  background: var(--gold);
  color: var(--paper);
  border-color: var(--gold);
}

.prog-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.prog-step.is-active .prog-label {
  color: var(--ink);
}

.prog-line {
  height: 1px;
  background: var(--line);
  position: relative;
}

.prog-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.5s ease;
}

.prog-line.is-done::after {
  width: 100%;
}

@media (max-width: 600px) {
  .form-progress {
    gap: 8px;
  }
  .prog-num {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .prog-label {
    display: none;
  }
}

/* ---------- FORM STEPS ---------- */
.form {
  display: block;
}

.step {
  border: 0;
  padding: 0;
  margin: 0;
  display: none;
  animation: stepIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.step.is-active {
  display: block;
}

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

.step-head {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-tag {
  font-size: 12px;
  color: var(--gold-deep);
}

.step-head h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.005em;
}

/* ---------- OPTION CARDS (Step 1) ---------- */
.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.option-card {
  cursor: none;
  position: relative;
  display: block;
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opt-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 22px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  height: 100%;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  position: relative;
}

.opt-inner::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.3s, border-color 0.3s;
}

.option-card input:checked + .opt-inner::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 3px var(--paper);
}

.option-card:hover .opt-inner {
  border-color: var(--ink);
}

.option-card input:checked + .opt-inner {
  background: var(--ink);
  border-color: var(--ink);
}

.option-card input:checked + .opt-inner h4 {
  color: var(--paper);
}

.option-card input:checked + .opt-inner p,
.option-card input:checked + .opt-inner .numeral {
  color: rgba(241, 233, 215, 0.7);
}

.opt-num {
  font-size: 12px;
}

.opt-inner h4 {
  font-size: clamp(22px, 1.6vw, 26px);
  line-height: 1.1;
  margin-top: 4px;
  transition: color 0.3s;
}

.opt-inner p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  transition: color 0.3s;
}

@media (max-width: 760px) {
  .option-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .option-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- PILLS (Step 2) ---------- */
.cluster {
  margin-bottom: 32px;
}

.cluster-label {
  display: block;
  margin-bottom: 16px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  cursor: none;
  position: relative;
}

.pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill span {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  color: var(--ink);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  font-family: var(--sans);
}

.pill:hover span {
  border-color: var(--ink);
}

.pill input:checked + span {
  background: var(--ink);
  color: var(--gold-2);
  border-color: var(--ink);
}

/* ---------- FIELDS (Step 3 & 4) ---------- */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 0 12px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
  cursor: none;
  width: 100%;
  border-radius: 0;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-3);
  font-family: var(--italic);
  font-style: italic;
  opacity: 0.6;
  font-size: 18px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
  font-size: 18px;
  border: 1px solid var(--line);
  padding: 16px;
}

.field textarea:focus {
  border-color: var(--gold);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 16px) center, calc(100% - 10px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

@media (max-width: 600px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- RECAP (Step 4) ---------- */
.recap {
  margin-top: 32px;
  margin-bottom: 24px;
  padding: 24px;
  background: rgba(232, 222, 196, 0.5);
  border: 1px solid var(--line);
}

.recap .label {
  display: block;
  margin-bottom: 14px;
}

.recap-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.recap-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--line-2);
  align-items: baseline;
}

.recap-list dt {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.recap-list dd {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
}

@media (max-width: 600px) {
  .recap-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- CHECKBOX ROW ---------- */
.checkbox-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 16px;
  cursor: none;
}

.checkbox-row input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  flex: 0 0 18px;
  position: relative;
  top: 2px;
  cursor: none;
  transition: background 0.3s, border-color 0.3s;
}

.checkbox-row input:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.checkbox-row input:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-bottom: 2px solid var(--paper);
  border-right: 2px solid var(--paper);
  transform: rotate(45deg) translate(-1px, -2px);
}

/* ---------- STEP NAV ---------- */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.step-nav .btn {
  font-size: 12px;
  padding: 14px 24px;
}

.arr-back {
  position: relative;
}

.arr-back::after {
  border-top: none !important;
  border-right: none !important;
  border-bottom: 1px solid currentColor;
  border-left: 1px solid currentColor;
  right: auto !important;
  left: 0;
  transform: translateY(-50%) rotate(45deg) !important;
}

.btn-send {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}
.btn-send:hover {
  background: var(--ink);
  border-color: var(--ink);
}

/* ---------- SUCCESS ---------- */
.step-success .success-wrap {
  text-align: center;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.success-mark {
  color: var(--gold-deep);
  display: inline-flex;
  animation: successPop 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes successPop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-title {
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1;
}

.success-wrap .lead {
  max-width: 56ch;
  margin: 0 auto;
}

.success-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}

/* ---------- BTN ghost-back arrow ---------- */
.btn.btn-ghost .arr-back {
  background: currentColor;
  width: 18px;
  height: 1px;
}
