/* ─────────────────────────────────────────────
   formular.css  —  come2canada.life
   Stil: Warm, editorial, Schweizer Präzision trifft
   kanadische Offenheit. Playfair + Source Serif.
   ───────────────────────────────────────────── */

:root {
  --forest:    #1a3a2a;
  --forest-mid:#2d5a3d;
  --maple:     #c8392b;
  --gold:      #c8a96e;
  --cream:     #f5f0e8;
  --warm-white:#fdfaf5;
  --ink:       #1e1e1e;
  --ink-mid:   #444;
  --ink-light: #888;
  --border:    #d9d2c5;
  --shadow:    rgba(26,58,42,0.12);

  --radius:    6px;
  --transition:0.2s ease;
  --max-w:     680px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  background: var(--warm-white);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── HEADER ── */
.site-header {
  background: var(--forest);
  padding: 20px 0;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-maple { font-size: 28px; }
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--cream);
  letter-spacing: 0.5px;
}
.logo-dot { color: var(--gold); }
.header-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: rgba(245,240,232,0.7);
  font-size: 14px;
  letter-spacing: 0.3px;
}

/* ── PROGRESS BAR ── */
.progress-bar-wrap {
  background: var(--forest);
  padding: 0 0 16px;
  position: relative;
}
.progress-bar {
  height: 3px;
  background: var(--gold);
  transition: width 0.4s ease;
  max-width: 100%;
}
.progress-label {
  font-family: 'Source Serif 4', serif;
  font-size: 12px;
  color: rgba(245,240,232,0.6);
  position: absolute;
  right: 24px;
  bottom: 4px;
  letter-spacing: 0.5px;
}

/* ── MAIN ── */
.form-main {
  padding: 40px 24px 80px;
}
.form-container {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── FORM BLOCKS ── */
.form-block {
  display: none;
  animation: fadeIn 0.3s ease;
}
.form-block.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BLOCK HEADER ── */
.block-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.block-number {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  display: block;
  margin-bottom: -12px;
}
.block-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--forest);
  line-height: 1.2;
}
.block-intro {
  margin-top: 10px;
  color: var(--ink-mid);
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
}

/* ── FIELDS ── */
.field-group { display: flex; flex-direction: column; gap: 24px; }
.field-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .field-row.two-col { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.field label em {
  font-weight: 300;
  color: var(--ink-light);
}
.req { color: var(--maple); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-family: 'Source Serif 4', serif;
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--forest-mid);
  box-shadow: 0 0 0 3px rgba(26,58,42,0.1);
}
textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a3a2a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ── CHECKBOXEN & RADIO ── */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) { .checkbox-grid { grid-template-columns: 1fr; } }

.check-item, .radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  transition: border-color var(--transition), background var(--transition);
  background: #fff;
  user-select: none;
}
.check-item:hover, .radio-item:hover {
  border-color: var(--forest-mid);
  background: var(--cream);
}
.check-item input, .radio-item input { accent-color: var(--forest); }

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

/* ── SERVICE CARDS ── */
.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 640px) {
  .service-cards { grid-template-columns: 1fr; }
}

.service-card {
  display: block;
  cursor: pointer;
  position: relative;
}
.service-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
}
.service-card-inner {
  padding: 20px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  background: #fff;
  position: relative;
}
.service-card input:checked ~ .service-card-inner {
  border-color: var(--forest);
  box-shadow: 0 4px 20px var(--shadow);
  transform: translateY(-2px);
}
.service-card.featured .service-card-inner {
  border-color: var(--gold);
  background: var(--cream);
}
.service-card.featured input:checked ~ .service-card-inner {
  border-color: var(--forest);
}
.service-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.service-icon { font-size: 28px; margin-bottom: 8px; }
.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 6px;
}
.service-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--maple);
  margin-bottom: 12px;
  font-family: 'Playfair Display', serif;
}
.service-features {
  list-style: none;
  text-align: left;
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.8;
}

/* ── DISCLAIMER ── */
.disclaimer-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--ink-mid);
  margin-bottom: 28px;
}

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

.btn-back, .btn-next, .btn-submit {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  padding: 13px 28px;
  transition: background var(--transition), transform var(--transition);
}
.btn-back {
  background: transparent;
  color: var(--ink-mid);
  border: 1.5px solid var(--border);
}
.btn-back:hover { background: var(--cream); transform: translateX(-2px); }

.btn-next {
  background: var(--forest);
  color: var(--cream);
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-left: auto;
}
.btn-next:hover { background: var(--forest-mid); transform: translateX(2px); }

.btn-submit {
  background: var(--maple);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  padding: 14px 36px;
  letter-spacing: 0.3px;
  margin-left: auto;
}
.btn-submit:hover { background: #a02e21; transform: scale(1.02); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── SUCCESS SCREEN ── */
.success-screen { text-align: center; padding: 40px 0; }
.success-inner { max-width: 480px; margin: 0 auto; }
.success-maple { font-size: 64px; animation: spinIn 0.6s ease; }
@keyframes spinIn {
  from { transform: scale(0) rotate(-180deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}
.success-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--forest);
  margin: 16px 0 12px;
}
.payment-section {
  margin-top: 32px;
  padding: 28px;
  background: var(--cream);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.payment-section h3 {
  font-family: 'Playfair Display', serif;
  color: var(--forest);
  margin-bottom: 10px;
}
#paypal-button-container { margin: 20px 0; }
.payment-alt {
  font-size: 13px;
  color: var(--ink-light);
  margin-top: 12px;
}
.payment-alt a { color: var(--forest); }

/* ── FOOTER ── */
.site-footer {
  background: var(--forest);
  color: rgba(245,240,232,0.6);
  text-align: center;
  padding: 20px;
  font-size: 13px;
  line-height: 1.6;
}
.site-footer a { color: var(--gold); text-decoration: none; }
