/* ═══════════════════════════════════════════════════
   Parallax Virtual Arts LEADS — FORM STYLES
   Warm, trust-building aesthetic for lead capture
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');

:root {
  --bg: #FAF8F5;
  --bg-card: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #5C5C5C;
  --text-muted: #9A9A9A;
  --border: #E8E4DF;
  --border-focus: #1A1A1A;
  --accent: #C8553D;
  --accent-soft: #FFF0ED;
  --success: #2D6A4F;
  --success-bg: #D8F3DC;
  --input-bg: #FAFAFA;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'Fraunces', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── TYPE SELECTOR PAGE ──────────────────────────── */
.type-selector {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px;
}

.type-selector__header {
  text-align: center;
  margin-bottom: 48px;
}

.type-selector__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.type-selector__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
}

.type-selector__subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s ease;
  cursor: pointer;
}

.type-card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.type-card__icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.type-card__label {
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

/* ─── FORM PAGE ───────────────────────────────────── */
.form-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.form-header__back:hover { color: var(--text-primary); }

.form-header__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-header__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Progress */
.progress-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 40px;
  padding: 0 4px;
}

.progress-bar__step {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.4s ease;
}

.progress-bar__step.active {
  background: var(--accent);
}

.progress-bar__step.done {
  background: var(--success);
}

/* Sections */
.form-section {
  display: none;
  animation: fadeInUp 0.35s ease;
}

.form-section.active { display: block; }

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

.section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 28px;
  padding-left: 38px;
}

/* Fields */
.field-group {
  margin-bottom: 22px;
}

.field-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.field-group label .required {
  color: var(--accent);
  margin-left: 2px;
}

.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="tel"],
.field-group input[type="url"],
.field-group input[type="number"],
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(26,26,26,0.06);
  background: #fff;
}

.field-group textarea {
  min-height: 90px;
  resize: vertical;
}

.field-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235C5C5C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Radio & Checkbox groups */
.options-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.option-chip {
  position: relative;
}

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

.option-chip span {
  display: inline-block;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
  background: var(--bg-card);
  user-select: none;
}

.option-chip input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

.option-chip span:hover {
  border-color: var(--text-muted);
}

/* Conditional fields */
.field-group.conditional { display: none; }
.field-group.conditional.visible { display: block; }

/* Navigation */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--text-primary);
  color: #fff;
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-submit {
  background: var(--accent);
  color: #fff;
  padding: 14px 36px;
  font-size: 1rem;
}

.btn-submit:hover {
  background: #B34834;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,85,61,0.25);
}

/* ─── SUCCESS STATE ───────────────────────────────── */
.success-card {
  text-align: center;
  padding: 60px 32px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  max-width: 520px;
  margin: 80px auto;
}

.success-card__icon {
  width: 72px;
  height: 72px;
  background: var(--success-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.success-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.success-card__text {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ─── ERROR ───────────────────────────────────────── */
.error-banner {
  background: #FFF0ED;
  border: 1px solid #E8A99A;
  color: var(--accent);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

/* ─── 404 ─────────────────────────────────────────── */
.page-404 {
  text-align: center;
  padding: 120px 24px;
}

.page-404 h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--text-muted);
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 600px) {
  .type-selector { padding: 40px 16px; }
  .type-selector__title { font-size: 1.7rem; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  .form-page { padding: 24px 16px 60px; }
  .form-header__title { font-size: 1.4rem; }
  .form-nav { flex-direction: column-reverse; gap: 12px; }
  .form-nav .btn { width: 100%; justify-content: center; }
}
