/* Costa Oil – 10 Minute Oil Change — Main Stylesheet */

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --card-bg: #1a1a1a;
  --yellow: #E09C06;
  --yellow-dark: #c48a05;
  --white: #ffffff;
  --gray: #aaaaaa;
  --light-gray: #2a2a2a;
  --red: #e74c3c;
  --green: #27ae60;
  --border: #2e2e2e;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --hero-bg: linear-gradient(135deg, #111 0%, #1e1a00 100%);
  --social-bg: rgba(39, 174, 96, 0.05);
  --offer-bg: linear-gradient(135deg, #2a1a00, #1a1200);
  --cta-bg: linear-gradient(135deg, #1a1500, #1a1a1a);
  --select-option-bg: #111111;
  --badge-icon-bg: rgba(224, 156, 6, 0.15);
  --unsure-msg-bg: rgba(255,215,0,0.07);
  --unsure-msg-border: rgba(255,215,0,0.2);
  --unsure-msg-color: #ccc;
  --coupon-bg: rgba(255,215,0,0.05);
}

[data-theme="light"] {
  --black: #ffffff;
  --dark: #f5f5f0;
  --card-bg: #ffffff;
  --white: #1a1a1a;
  --gray: #555555;
  --light-gray: #f0ece4;
  --border: #d9d3c7;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --hero-bg: linear-gradient(135deg, #f5f5f0 0%, #faf6ec 100%);
  --social-bg: rgba(39, 174, 96, 0.06);
  --offer-bg: linear-gradient(135deg, #faf3e0, #fdf8ef);
  --cta-bg: linear-gradient(135deg, #faf6ec, #ffffff);
  --select-option-bg: #ffffff;
  --badge-icon-bg: rgba(224, 156, 6, 0.12);
  --unsure-msg-bg: rgba(224, 156, 6, 0.06);
  --unsure-msg-border: rgba(224, 156, 6, 0.15);
  --unsure-msg-color: #555555;
  --coupon-bg: rgba(224, 156, 6, 0.06);
}

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

/* Progress bar */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 12px 20px 0;
  max-width: 520px;
  margin: 0 auto;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}
.progress-step:last-child { flex: 0; }
.progress-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light-gray);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray);
  transition: all 0.4s ease;
  flex-shrink: 0;
  position: relative;
}
.progress-dot.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
  box-shadow: 0 0 12px rgba(224, 156, 6, 0.4);
}
.progress-dot.done {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.progress-line {
  flex: 1;
  height: 3px;
  background: var(--border);
  transition: background 0.4s ease;
  margin: 0 -1px;
}
.progress-line.done { background: var(--green); }
.progress-label {
  display: none;
}
@media (min-width: 500px) {
  .progress-label {
    display: block;
    font-size: 0.65rem;
    color: var(--gray);
    text-align: center;
    margin-top: 4px;
    position: absolute;
    bottom: -18px;
    white-space: nowrap;
    left: 50%;
    transform: translateX(-50%);
  }
  .progress-dot.active .progress-label { color: var(--yellow); }
  .progress-dot.done .progress-label { color: var(--green); }
  .progress-bar { margin-bottom: 8px; }
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--dark);
  border-bottom: 3px solid var(--yellow);
  padding: 8px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.header-home-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-back-home {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.btn-back-home:hover {
  background: var(--yellow);
  color: var(--black);
}
.footer-link {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.footer-link:hover {
  text-decoration: underline;
}
.logo { height: 32px; }
.brand-name {
  font-size: 1rem;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -0.5px;
}
.brand-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Hero */
.hero {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 0 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/static/step-repeat-bg.png') repeat center center;
  background-size: 400px;
  opacity: 0.06;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-oil-drop {
  width: 28px;
  height: auto;
  margin: 0 auto 4px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(224, 156, 6, 0.3));
}
[data-theme="light"] .hero::before {
  opacity: 0.04;
}
.hero h1 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 900;
  color: var(--yellow);
  line-height: 1.15;
  margin-bottom: 4px;
}
.hero-sub {
  font-size: 0.85rem;
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto 4px;
}

/* Trust badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 600;
}
.trust-badge-icon {
  width: 26px;
  height: 26px;
  background: var(--badge-icon-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.badge-drop {
  width: 16px;
  height: auto;
}

/* Social proof */
.social-proof {
  text-align: center;
  padding: 5px 20px;
  font-size: 0.75rem;
  color: var(--gray);
  background: var(--social-bg);
  border-bottom: 1px solid var(--border);
}
.social-proof strong { color: var(--green); }

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.widget-wrapper { padding-top: 10px; padding-bottom: 48px; }

/* Step header */
.step-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-num {
  background: var(--yellow);
  color: var(--black);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.step-desc { color: var(--gray); margin-bottom: 24px; font-size: 0.95rem; }

/* Forms */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-size: 1rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  width: 100%;
}
input:focus, select:focus {
  border-color: var(--yellow);
}
select option { background: var(--select-option-bg); }

/* Filter options */
.filter-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.filter-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--light-gray);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 18px 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  user-select: none;
}
.filter-option input[type="radio"] { display: none; }
.filter-option.selected,
.filter-option:has(input:checked) {
  border-color: var(--yellow);
  background: var(--unsure-msg-bg);
}
.filter-icon { font-size: 1.8rem; margin-bottom: 6px; }
.filter-label { font-weight: 700; font-size: 0.95rem; }
.filter-desc { font-size: 0.78rem; color: var(--gray); margin-top: 3px; }

/* Canister tiers */
.canister-tier-section { margin-top: 4px; }
.canister-funny { font-size: 0.9rem; color: var(--yellow); margin-bottom: 10px; }
.tier-options { display: flex; gap: 10px; flex-wrap: wrap; }
.tier-option {
  background: var(--light-gray);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  user-select: none;
}
.tier-option:has(input:checked) { border-color: var(--yellow); }
.tier-option input[type="radio"] { display: none; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--yellow);
  color: var(--black);
}
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--yellow);
  border: 2px solid var(--yellow);
}
.btn-secondary:hover { background: rgba(255,215,0,0.1); }
.btn-ghost { background: transparent; color: var(--gray); font-size: 0.9rem; padding: 10px 16px; }
.btn-ghost:hover { color: var(--white); }
.btn-large { width: 100%; margin-top: 20px; font-size: 1.1rem; padding: 18px 28px; }

/* Quote result */
.quote-display { text-align: center; padding: 28px 0; }
.quote-price {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}
.quote-range {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--yellow);
}
.quote-vehicle { font-size: 1rem; color: var(--gray); margin-top: 8px; }
.quote-breakdown {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0;
  text-align: left;
}
.breakdown-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--yellow);
  margin-bottom: 12px;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text);
}
.breakdown-row.breakdown-extra {
  color: var(--yellow);
  font-weight: 600;
}
.breakdown-why {
  font-size: 0.78rem;
  color: var(--gray);
  padding: 2px 0 8px 12px;
  border-left: 2px solid var(--border);
  margin-bottom: 4px;
  line-height: 1.4;
}
.breakdown-divider {
  height: 1px;
  background: var(--border);
  margin-top: 8px;
}
.quote-note { font-size: 0.85rem; color: var(--gray); margin-top: 14px; font-style: italic; }
.quote-unsure-msg {
  background: var(--unsure-msg-bg);
  border: 1px solid var(--unsure-msg-border);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  font-size: 0.9rem;
  color: var(--unsure-msg-color);
}

/* FAQ / Accordion */
.faq-section { margin: 32px 0; }
.faq-title { font-size: 1rem; font-weight: 700; color: var(--gray); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  padding: 14px 0;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-btn::after { content: '+'; color: var(--yellow); font-size: 1.2rem; }
.accordion-btn.open::after { content: '−'; }
.accordion-body { display: none; padding: 0 0 14px; color: var(--gray); font-size: 0.9rem; line-height: 1.7; }
.accordion-body.open { display: block; }

/* Pricing info */
.pricing-info h3 { font-size: 1rem; color: var(--yellow); margin-bottom: 14px; }
.pricing-info ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pricing-info li { font-size: 0.9rem; color: var(--gray); padding-left: 20px; position: relative; }
.pricing-info li::before { content: '✓'; position: absolute; left: 0; color: var(--yellow); font-weight: 700; }

/* Confirmation */
.confirm-header { text-align: center; margin-bottom: 28px; }
.confirm-check {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.confirm-drop {
  width: 56px;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(224, 156, 6, 0.4));
}
.confirm-header h2 { font-size: 1.8rem; color: var(--yellow); margin-bottom: 8px; }
.confirm-header p { color: var(--gray); max-width: 480px; margin: 0 auto; }

.quote-summary-box {
  background: var(--light-gray);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.8;
}
.quote-summary-box strong { color: var(--yellow); }

/* Same-day offer */
.sameday-offer-box {
  text-align: center;
  padding: 28px 24px;
  background: var(--offer-bg);
  border: 2px solid var(--yellow);
  border-radius: 12px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.sameday-offer-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/static/step-repeat-bg.png') repeat center center;
  background-size: 300px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
.sameday-offer-box > * {
  position: relative;
  z-index: 1;
}
.sameday-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.sameday-headline {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}
.sameday-price {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 4px;
}
.sameday-amount {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--yellow);
}
.sameday-code-label {
  font-size: 0.85rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 12px;
}
.sameday-expires {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 600;
  margin-top: 8px;
}

/* Email sent note */
.email-sent-note {
  text-align: center;
  padding: 16px;
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid var(--green);
  border-radius: 8px;
  margin-bottom: 28px;
  font-size: 0.95rem;
  color: var(--green);
}

/* Coupon */
.coupon-box {
  text-align: center;
  padding: 24px;
  background: var(--coupon-bg);
  border: 2px dashed var(--yellow);
  border-radius: 12px;
  margin-bottom: 28px;
}
.coupon-label { font-size: 0.85rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }
.coupon-code {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: 4px;
  margin: 8px 0;
}
.coupon-hint { font-size: 0.85rem; color: var(--gray); }

/* CTA */
.cta-section {
  text-align: center;
  background: var(--cta-bg);
  border: 1px solid var(--unsure-msg-border);
  border-radius: 12px;
  padding: 36px 24px;
  margin-bottom: 28px;
}
.cta-headline { font-size: 1.7rem; font-weight: 900; color: var(--yellow); margin-bottom: 10px; }
.cta-sub { color: var(--gray); margin-bottom: 20px; font-size: 0.95rem; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-buttons .btn { margin-top: 0; width: auto; }

/* Location finder */
.location-finder { margin-top: 16px; }
.location-finder h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 16px; }
.location-search { display: flex; gap: 10px; margin-bottom: 20px; }
.location-search input { flex: 1; }
.location-search .btn { margin-top: 0; width: auto; padding: 12px 20px; }
.location-card {
  background: var(--light-gray);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.location-name { font-weight: 700; color: var(--yellow); font-size: 1rem; }
.location-details { font-size: 0.85rem; color: var(--gray); margin-top: 4px; }
.location-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.location-btns .btn { padding: 8px 14px; font-size: 0.85rem; margin-top: 0; width: auto; }

/* Consent */
.consent-section { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.checkbox-label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.85rem; color: var(--gray); line-height: 1.5; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--yellow); }

/* Error */
.error-msg { color: var(--red); font-size: 0.9rem; margin-top: 10px; padding: 10px 14px; background: rgba(231,76,60,0.1); border-radius: 6px; }

/* Location disclaimer */
.location-disclaimer {
  background: var(--yellow);
  color: var(--black);
  text-align: center;
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-top: 24px;
  font-size: 0.85rem;
  line-height: 1.5;
  letter-spacing: 0.3px;
  border: 2px solid #c8880a;
}
.location-disclaimer p {
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray);
}
.footer-logo {
  width: 80px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
  opacity: 0.7;
}

/* Step transitions */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.step.animate-in {
  animation: fadeSlideIn 0.4s ease-out forwards;
}

/* Form validation */
.form-group.valid input,
.form-group.valid select {
  border-color: var(--green);
}
.form-group.valid label::after {
  content: ' ✓';
  color: var(--green);
  font-weight: 700;
}

/* Price comparison */
.price-comparison {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 20px 0 8px;
  flex-wrap: wrap;
}
.price-compare-item {
  text-align: center;
  padding: 16px 24px;
  border-radius: 10px;
  min-width: 160px;
}
.price-compare-item.competitor {
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.2);
}
.price-compare-item.costa {
  background: rgba(224, 156, 6, 0.1);
  border: 2px solid var(--yellow);
}
.price-compare-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 6px;
  font-weight: 600;
}
.price-compare-value {
  font-size: 1.6rem;
  font-weight: 900;
}
.price-compare-item.competitor .price-compare-value {
  color: var(--red);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.price-compare-item.costa .price-compare-value {
  color: var(--yellow);
}
.price-compare-item .price-compare-savings {
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 700;
  margin-top: 4px;
}

/* Countdown timer */
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}
.countdown-unit {
  text-align: center;
  min-width: 52px;
}
.countdown-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--yellow);
  background: var(--light-gray);
  border-radius: 8px;
  padding: 6px 10px;
  display: block;
}
.countdown-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--gray);
  letter-spacing: 1px;
  margin-top: 4px;
}
.countdown-separator {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 2.4;
}

/* Pulse animation for urgency */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.sameday-badge { animation: pulse 2s ease-in-out infinite; }

/* Theme toggle */
.theme-toggle {
  margin-left: auto;
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 52px;
  height: 28px;
  position: relative;
  transition: background 0.3s;
  flex-shrink: 0;
}
.theme-toggle-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--yellow);
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  line-height: 1;
}
[data-theme="light"] .theme-toggle-knob {
  transform: translateX(24px);
}

/* Responsive */
@media (max-width: 600px) {
  .card { padding: 20px 16px; }
  .quote-price { font-size: 2.6rem; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; }
  .hero { padding: 10px 0 8px; }
  .trust-badges { gap: 12px; }
  .trust-badge { font-size: 0.78rem; }
  .price-comparison { gap: 12px; }
  .price-compare-item { min-width: 130px; padding: 12px 16px; }
}
