/* ==========================================================================
   FUNNELVALLEY — Contact Page
   ========================================================================== */

/* ── Compact Hero ─────────────────────────────────────────────────────── */
.page-hero--compact {
  padding: calc(var(--section-padding) + 60px) 0 var(--space-3xl);
}

.page-hero--compact .section-title {
  margin-bottom: var(--space-md);
}

.page-hero--compact .section-subtitle {
  max-width: 540px;
}

/* ── Contact Section ──────────────────────────────────────────────────── */
.contact-section {
  padding-top: 0;
  padding-bottom: var(--section-padding);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

/* ── Form Wrapper ─────────────────────────────────────────────────────── */
.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
}

/* ── Form Fields ──────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-xl);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: var(--tracking-wide);
}

.form-required {
  color: var(--gold-primary);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border);
  padding: var(--space-md) 0;
  outline: none;
  transition: border-color var(--transition-base);
  line-height: var(--leading-normal);
}

.form-input::placeholder {
  color: var(--text-tertiary);
  font-weight: 300;
}

.form-input:focus {
  border-bottom-color: var(--gold-primary);
}

.form-input--error {
  border-bottom-color: #c0392b;
}

/* Textarea */
.form-textarea {
  resize: vertical;
  min-height: 100px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  transition: border-color var(--transition-base);
}

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

/* Select Dropdown */
.form-select-wrapper {
  position: relative;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: var(--space-2xl);
}

.form-select-icon {
  position: absolute;
  right: 0;
  bottom: var(--space-md);
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.form-select:focus ~ .form-select-icon {
  color: var(--gold-primary);
}

/* ── Submit Button ────────────────────────────────────────────────────── */
.contact-submit {
  width: 100%;
  margin-top: var(--space-lg);
}

/* ── Form Note ────────────────────────────────────────────────────────── */
.form-note {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-align: center;
  margin-top: var(--space-lg);
  line-height: var(--leading-relaxed);
}

/* ── Form Error ───────────────────────────────────────────────────────── */
.form-error {
  display: block;
  font-size: var(--text-xs);
  color: #c0392b;
  margin-top: var(--space-xs);
  font-weight: 400;
  letter-spacing: var(--tracking-normal);
  animation: errorFadeIn 300ms var(--ease-out) forwards;
}

@keyframes errorFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Form Success ─────────────────────────────────────────────────────── */
.form-success {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  animation: successFadeIn 500ms var(--ease-out) forwards;
}

.form-success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-subtle);
  border-radius: 50%;
}

.form-success__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold-primary);
}

.form-success h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.form-success p {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 380px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

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

/* ── Info Panel ───────────────────────────────────────────────────────── */
.contact-info-panel {
  position: sticky;
  top: 120px;
}

.info-panel-inner {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
}

.info-section {
  margin-bottom: 0;
}

.info-heading {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: var(--tracking-tight);
}

/* ── Expect Steps ─────────────────────────────────────────────────────── */
.expect-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.expect-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.expect-step__number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-subtle);
  color: var(--gold-primary);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: 50%;
  border: 1px solid rgba(205, 159, 80, 0.15);
}

.expect-step__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  padding-top: 2px;
}

/* ── Info Divider ─────────────────────────────────────────────────────── */
.info-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: var(--space-xl) 0;
}

/* ── Direct Contact Links ─────────────────────────────────────────────── */
.direct-contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.direct-contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.direct-contact-link:hover {
  color: var(--gold-primary);
}

.direct-contact-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold-primary);
}

/* ── Info Quote ───────────────────────────────────────────────────────── */
.info-quote {
  margin: 0;
  padding: 0;
  border: none;
}

.info-quote p {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: none;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .contact-info-panel {
    position: static;
    order: -1;
  }

  .contact-form-wrapper {
    padding: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .page-hero--compact {
    padding: calc(var(--section-padding) + 40px) 0 var(--space-2xl);
  }

  .contact-form-wrapper {
    padding: var(--space-xl) var(--space-lg);
  }

  .info-panel-inner {
    padding: var(--space-xl) var(--space-lg);
  }
}

@media (max-width: 480px) {
  .contact-form-wrapper {
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-md);
  }

  .info-panel-inner {
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-md);
  }

  .form-success {
    padding: var(--space-2xl) var(--space-md);
  }
}
