@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --brand: #0F2A3D;
  --brand-deep: #081821;
  --gold: #C6A15B;
  --gold-light: #E9D9B8;
  --text: #1a1f24;
  --muted: #6b7280;
  --border: #e6e2d8;
  --bg: #faf8f4;
  --card: #ffffff;
  --success: #1e9e5c;
  --whatsapp: #25D366;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name { font-family: 'Playfair Display', Georgia, serif; }

/* ---------- Header ---------- */
.topbar {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 60%, #163c54 100%);
  color: #fff;
  padding: 46px 20px 40px;
  position: relative;
  overflow: hidden;
}
.topbar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 0%, rgba(198,161,91,0.18), transparent 55%);
  pointer-events: none;
}
.topbar-inner { max-width: 780px; margin: 0 auto; position: relative; }
.brand-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 10px;
}
.brand-name { font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: 0.3px; }
.brand-sub { font-size: 14.5px; opacity: 0.85; margin-top: 8px; max-width: 480px; line-height: 1.5; }
.brand-rule {
  width: 56px; height: 2px; background: var(--gold);
  margin-top: 18px; border: none;
}

.wrap { max-width: 780px; margin: 0 auto; padding: 32px 20px 70px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(15,42,61,0.05);
  transition: box-shadow 0.2s ease;
}
.card h2 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 19px;
  color: var(--brand);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card h2 .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.hint { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 4px; }

/* ---------- Form fields ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }

label { display: flex; flex-direction: column; font-size: 12.5px; font-weight: 600; color: #444; gap: 7px; letter-spacing: 0.2px; }
input[type=text], input[type=email], input[type=tel], input[type=number] {
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-weight: 400;
  font-family: inherit;
  background: #fdfcfa;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198,161,91,0.18);
}

/* ---------- Option groups ---------- */
.group-block { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.group-block:last-child { border-bottom: none; margin-bottom: 4px; padding-bottom: 0; }
.group-title {
  font-weight: 700; font-size: 13.5px; margin-bottom: 10px; color: var(--brand);
  text-transform: uppercase; letter-spacing: 0.6px;
}

.option-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 10px;
  gap: 14px;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.option-row:hover { background: #faf6ee; }
.option-left { display: flex; align-items: flex-start; gap: 12px; flex: 1; }
.option-left input[type=radio], .option-left input[type=checkbox] {
  width: 19px; height: 19px; accent-color: var(--gold); flex-shrink: 0; margin-top: 2px; cursor: pointer;
}
.option-text { display: flex; flex-direction: column; gap: 3px; }
.option-label { font-size: 14.5px; font-weight: 600; color: var(--text); }
.option-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; max-width: 480px; }
.option-price { font-size: 13.5px; color: var(--brand); font-weight: 700; white-space: nowrap; padding-top: 2px; }
.qty-input {
  width: 55px; padding: 6px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; margin-top: 6px;
}

/* ---------- Summary ---------- */
.summary-card {
  background: linear-gradient(160deg, var(--brand-deep), var(--brand));
  border: none;
  color: #fff;
}
.summary-card h2 { color: #fff; }
.summary-card h2 .step-num { background: var(--gold); color: var(--brand-deep); }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14.5px; color: rgba(255,255,255,0.85); }
.summary-row.total {
  font-size: 22px; font-weight: 700; color: var(--gold-light);
  border-top: 1px solid rgba(255,255,255,0.2); margin-top: 10px; padding-top: 16px;
  font-family: 'Playfair Display', serif;
}
.summary-card .hint { color: rgba(255,255,255,0.6); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--brand-deep);
  border: none;
  padding: 16px 22px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  width: 100%;
  margin-top: 16px;
  letter-spacing: 0.2px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  box-shadow: 0 4px 14px rgba(198,161,91,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(198,161,91,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary {
  display: block; width: 100%; margin-top: 12px; background: transparent; color: var(--brand);
  border: 2px solid var(--brand); padding: 13px; border-radius: 10px; font-weight: 700; cursor: pointer;
  transition: background 0.15s ease;
}
.btn-secondary:hover { background: var(--brand-light, #eaf0f6); }

.btn-whatsapp {
  display: inline-block; background: var(--whatsapp); color: #fff; padding: 15px 22px;
  border-radius: 10px; font-weight: 700; text-decoration: none; text-align: center; margin-top: 10px; width: 100%;
  box-shadow: 0 4px 14px rgba(37,211,102,0.3);
}
.success-actions { display: flex; flex-direction: column; gap: 10px; }

.success-card { text-align: left; border-top: 4px solid var(--gold); }
.success-card h2 { justify-content: flex-start; }

/* ---------- States ---------- */
.loading, .error-box { text-align: center; padding: 70px 20px; color: var(--muted); font-size: 15px; }
.error-box { color: #b3261e; }

.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 26px 20px 40px; letter-spacing: 0.2px; }
