/* ===== Design Tokens ===== */
:root {
  --bg-primary: #0a0e1a;
  --bg-gradient: linear-gradient(135deg, #0a0e1a 0%, #0d1b2a 40%, #1b2838 100%);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --glass-blur: blur(20px);

  --accent: #00b4d8;
  --accent-glow: rgba(0, 180, 216, 0.3);
  --accent-dark: #0077b6;
  --accent-gradient: linear-gradient(135deg, #0077b6, #00b4d8, #48cae4);
  --success: #2ec4b6;
  --danger: #e63946;

  --text-primary: #e0e6ed;
  --text-secondary: rgba(224, 230, 237, 0.6);
  --text-heading: #ffffff;
  --text-muted: rgba(224, 230, 237, 0.4);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ===== Header ===== */
.site-header {
  background: linear-gradient(135deg, #001d3d 0%, #003566 50%, #00497a 100%);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 180, 216, 0.15);
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0.5;
}

.site-header h1 {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.site-header h1 .brand-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Step Indicator ===== */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 32px auto 0;
  max-width: 320px;
}

.step-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition-smooth);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.step-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(0, 180, 216, 0.15);
}

.step-dot.completed {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.step-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.step-line-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  transition: width var(--transition-smooth);
  border-radius: 1px;
}

.step-line-fill.filled {
  width: 100%;
}

.step-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.step-label.active { color: var(--accent); }
.step-label.completed { color: var(--success); }

.step-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Main Container ===== */
.main-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  position: relative;
  z-index: 1;
}

/* ===== Glass Card ===== */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* ===== Steps ===== */
.step-panel {
  display: none;
  animation: fadeSlideIn 0.5s ease forwards;
}

.step-panel.active { display: block; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Section Heading ===== */
.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ===== Form Labels ===== */
.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== Range Slider ===== */
.slider-group {
  margin-bottom: 28px;
}

.slider-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  min-height: 1.4em;
}

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 18px var(--accent-glow);
}

input[type=range]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 10px var(--accent-glow);
  cursor: pointer;
}

/* ===== Quote Display ===== */
.quote-box {
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.12), rgba(0, 180, 216, 0.08));
  border: 1px solid rgba(0, 180, 216, 0.15);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 28px 0;
  text-align: center;
}

.quote-box h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.premium-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.premium-item {
  text-align: center;
}

.premium-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.premium-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.premium-amount .currency {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
}

/* ===== MDR & Checkbox ===== */
.radio-group {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.radio-option {
  flex: 1;
  position: relative;
}

.radio-option input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-option label {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.radio-option input[type=radio]:checked + label {
  border-color: var(--accent);
  background: rgba(0, 180, 216, 0.1);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 180, 216, 0.1);
}

.radio-option label:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.hint-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 6px;
}

/* ===== Conditions & Checkboxes ===== */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.checkbox-option:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.checkbox-option input[type=checkbox] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-option span {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.checkbox-option input[type=checkbox]:checked + span {
  color: var(--text-heading);
}

/* ===== Industry Disclaimer ===== */
.industry-disclaimer {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: rgba(255, 183, 3, 0.05);
  border: 1px solid rgba(255, 183, 3, 0.15);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: rgba(255, 183, 3, 0.9);
  line-height: 1.5;
  text-align: left;
}

.industry-disclaimer.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

.industry-disclaimer strong {
  display: block;
  margin-bottom: 8px;
  color: #ffb703;
}

.industry-disclaimer ul {
  padding-left: 18px;
  margin-top: 8px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Form Inputs (Step 2) ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-input,
.form-select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.12);
}

.form-input.invalid,
.form-select.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

.form-select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(224,230,237,0.4)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-select option {
  background: #1b2838;
  color: var(--text-primary);
}

/* ===== Quote Summary in Step 2 ===== */
.quote-summary {
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.08), rgba(0, 180, 216, 0.05));
  border: 1px solid rgba(0, 180, 216, 0.1);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.summary-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.summary-item-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.summary-item-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}

/* ===== Buttons ===== */
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  flex: 1;
  padding: 15px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 180, 216, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 180, 216, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* ===== Success Panel ===== */
.success-panel {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(46, 196, 182, 0.1);
  border: 2px solid var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

.success-panel h2 {
  font-size: 1.5rem;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.success-panel p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .glass-card { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .premium-row { gap: 20px; }
  .premium-amount { font-size: 1.3rem; }
  .quote-summary { flex-direction: column; gap: 10px; }
  .btn-row { flex-direction: column; }
  .step-indicator { max-width: 260px; }
}

/* ===== Discount Badge ===== */
.discount-badge {
  display: none;
  background: rgba(46, 196, 182, 0.12);
  border: 1px solid rgba(46, 196, 182, 0.25);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 8px;
  text-align: center;
}

.discount-badge.visible { display: inline-block; }

/* ===== Footer Note ===== */
.footer-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
