/* CSS Variables */
:root {
  --primary: #FF6B1F;
  --primary-dark: #E55A10;
  --primary-light: #FF8C4A;
  --secondary: #1a1a2e;
  --accent: #16213e;
  --text-dark: #222222;
  --text-light: #707781;
  --text-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border: #e0e0e0;
  --success: #28a745;
  --error: #dc3545;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Hero Background */
.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.85) 100%),
    url('https://images.pexels.com/photos/3807386/pexels-photo-3807386.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover no-repeat;
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

/* Header */
header {
  background: var(--secondary);
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-white);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  transition: var(--transition);
}

.header-phone:hover {
  background: var(--primary);
}

.language-selector {
  display: flex;
  gap: 4px;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text-white);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
}

.lang-btn:hover, .lang-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* Wizard Container */
.wizard-container {
  flex: 1;
  padding: 100px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* Progress Bar */
.progress-bar {
  position: relative;
  margin-bottom: 40px;
  padding: 0 40px;
}

.progress-fill {
  position: absolute;
  top: 50%;
  left: 40px;
  right: 40px;
  height: 4px;
  background: var(--border);
  transform: translateY(-50%);
  border-radius: 2px;
  z-index: 1;
}

.progress-fill::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.progress-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-light);
  transition: var(--transition);
}

.progress-step.active {
  border-color: var(--primary);
  color: var(--primary);
}

.progress-step.completed {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

/* Wizard Steps */
.wizard-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.wizard-step.active {
  display: block;
}

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

.step-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.step-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
  text-align: center;
}

.step-subtitle {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

/* Back Button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 20px;
  transition: var(--transition);
}

.back-btn:hover {
  color: var(--primary);
}

/* Option Cards */
.option-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.option-cards.small {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.option-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.option-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.option-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 31, 0.15);
}

/* Option Card Images */
.option-image {
  position: relative;
  height: 140px;
  overflow: hidden;
  pointer-events: none;
}

.option-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  pointer-events: none;
}

.option-card:hover .option-image img {
  transform: scale(1.08);
}

.option-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  pointer-events: none;
}

.option-overlay.broken {
  background: linear-gradient(to top, rgba(229, 57, 53, 0.8) 0%, transparent 100%);
}

.option-overlay.maintenance {
  background: linear-gradient(to top, rgba(25, 118, 210, 0.8) 0%, transparent 100%);
}

.option-overlay.tyres {
  background: linear-gradient(to top, rgba(123, 31, 162, 0.8) 0%, transparent 100%);
}

.option-overlay.inspection {
  background: linear-gradient(to top, rgba(245, 124, 0, 0.8) 0%, transparent 100%);
}

.option-content {
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.option-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.option-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* Small option cards (Step 2) - Icon style fallback */
.option-cards.small .option-card {
  padding: 25px 20px;
  text-align: center;
}

.option-cards.small .option-card .option-image {
  display: none;
}

.option-cards.small .option-card .option-content {
  padding: 0;
}

/* Ensure cards without images still work (Step 2, 3) */
.option-cards.small .option-card h3,
.option-cards.small .option-card p {
  display: block;
}

.option-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  transition: var(--transition);
}

.option-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--text-light);
  transition: var(--transition);
}

.option-card:hover .option-icon,
.option-card.selected .option-icon {
  background: var(--primary);
}

.option-card:hover .option-icon svg,
.option-card.selected .option-icon svg {
  fill: white;
}

/* Symptom/Service List */
.symptom-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.symptom-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  background: var(--bg-light);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.symptom-item:hover {
  background: #fff5f0;
  border-color: var(--primary-light);
}

.symptom-item.selected {
  background: #fff5f0;
  border-color: var(--primary);
}

.symptom-check {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.symptom-check svg {
  width: 16px;
  height: 16px;
  fill: transparent;
  transition: var(--transition);
}

.symptom-item.selected .symptom-check {
  background: var(--primary);
  border-color: var(--primary);
}

.symptom-item.selected .symptom-check svg {
  fill: white;
}

.symptom-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.symptom-name {
  font-weight: 600;
  color: var(--text-dark);
}

.symptom-duration {
  font-size: 0.85rem;
  color: var(--text-light);
}

.symptom-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.symptom-price.quote {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Selected Summary */
.selected-summary {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  display: none;
}

.selected-summary.has-items {
  display: block;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.summary-header h4 {
  color: var(--text-white);
  font-size: 0.9rem;
  font-weight: 600;
}

.summary-total {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  padding: 6px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  width: 100%;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 31, 0.3);
}

.btn-primary:disabled {
  background: var(--border);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-next {
  margin-top: 10px;
}

/* Booking Form (Step 4) */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.order-card {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  border-radius: var(--radius);
  padding: 25px;
  color: var(--text-white);
}

.order-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
  opacity: 0.8;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.order-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
}

.total-amount {
  color: var(--primary);
}

.form-section {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 25px;
}

.form-section h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group:last-child {
  margin-bottom: 0;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
  background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 31, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Time Pills */
.time-pills {
  display: flex;
  gap: 10px;
}

.time-pill {
  flex: 1;
  padding: 12px 8px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg-white);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-dark);
}

.time-pill:hover {
  border-color: var(--primary);
}

.time-pill.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

/* Extra Options */
.extras h4 {
  margin-bottom: 15px;
}

.extra-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.extra-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px 15px;
  background: var(--bg-white);
  border-radius: 10px;
  transition: var(--transition);
}

.extra-option:hover {
  background: #fff5f0;
}

.extra-option input {
  display: none;
}

.extra-check {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.extra-option input:checked + .extra-check {
  background: var(--primary);
  border-color: var(--primary);
}

.extra-option input:checked + .extra-check::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.extra-label {
  font-weight: 500;
}

.btn-checkout {
  margin-top: 10px;
  padding: 18px 32px;
  font-size: 1.1rem;
}

/* Trust Section */
.trust-section {
  background: var(--bg-white);
  padding: 60px 20px;
  margin-top: 40px;
}

.trust-section .container {
  max-width: 1000px;
  margin: 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.trust-item {
  text-align: center;
}

.trust-image {
  width: 100%;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.trust-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.trust-item:hover .trust-image img {
  transform: scale(1.05);
}

.trust-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.trust-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Contact Bar */
.contact-bar {
  background: var(--secondary);
  padding: 20px 0;
  margin-top: auto;
}

.contact-info-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-bar .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  text-decoration: none;
}

.contact-bar .contact-item:hover {
  color: var(--text-white);
}

/* Footer */
footer {
  background: var(--accent);
  color: rgba(255,255,255,0.6);
  padding: 15px 0;
  text-align: center;
  font-size: 0.85rem;
}

footer .container {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.photo-credit {
  font-size: 0.75rem;
  opacity: 0.7;
}

.photo-credit a {
  color: var(--primary-light);
  text-decoration: none;
}

.photo-credit a:hover {
  text-decoration: underline;
}

/* Loading State */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: var(--text-white);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
}

.success-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 50px;
  max-width: 500px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  fill: white;
}

.success-card h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.success-card p {
  color: var(--text-light);
  margin-bottom: 30px;
}

.booking-details {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 30px;
  text-align: left;
}

.booking-detail-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.booking-detail-item:last-child {
  border-bottom: none;
}

.booking-detail-item label {
  color: var(--text-light);
}

.booking-detail-item span {
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .header-phone span {
    display: none;
  }

  .wizard-container {
    padding: 80px 15px 30px;
  }

  .step-content {
    padding: 25px 20px;
  }

  .step-title {
    font-size: 1.5rem;
  }

  .option-cards {
    grid-template-columns: 1fr;
  }

  .option-image {
    height: 120px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .time-pills {
    flex-direction: column;
  }

  .contact-info-row {
    flex-direction: column;
    gap: 15px;
  }

  .progress-bar {
    padding: 0 20px;
  }

  .progress-step {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .trust-section {
    padding: 40px 20px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .trust-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .step-title {
    font-size: 1.3rem;
  }

  .step-subtitle {
    font-size: 1rem;
  }

  .option-icon {
    width: 60px;
    height: 60px;
  }

  .option-icon svg {
    width: 28px;
    height: 28px;
  }

  .symptom-item {
    padding: 15px;
  }
}
