/* ========================================
   Seb's Driving School — Shared Styles
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a2e;
  line-height: 1.6;
  background: #f8f9fa;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* --- Navbar --- */
.navbar {
  background: #1a1a2e;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo {
  font-size: 1.35em;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-img {
  height: 100px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.logo-icon { font-size: 1.2em; }
.nav-links {
  display: flex;
  gap: 8px;
}
.nav-links a {
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95em;
  color: rgba(255,255,255,0.8);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: #ff0000;
  color: #fff;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6em;
  cursor: pointer;
  color: #fff;
}

/* --- Hero --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #a00909 0%, #7a0707 100%);
  padding: 120px 0 100px;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,0.1);
}
.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
}
.hero-content h1 {
  font-size: 3.5em;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.highlight { color: #ffd43b; }
.hero-subtitle {
  font-size: 1.2em;
  max-width: 600px;
  margin: 0 auto 36px;
  opacity: 0.92;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, #a00909 0%, #7a0707 100%);
  color: #fff;
  text-align: center;
  padding: 70px 0 50px;
}
.page-header h1 {
  font-size: 2.6em;
  font-weight: 800;
  margin-bottom: 10px;
}
.page-header p {
  font-size: 1.15em;
  opacity: 0.9;
}

/* --- Manual Driving Lessons Banner --- */
.manual-banner {
  background: #fff;
  padding: 80px 0;
}
.manual-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: flex-start;
}
.manual-badge {
  display: inline-block;
  background: #f0f2ff;
  color: #a00909;
  font-weight: 700;
  font-size: 0.85em;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.manual-text h2 {
  font-size: 2em;
  font-weight: 800;
  margin-bottom: 16px;
  color: #1a1a2e;
}
.manual-text p {
  color: #555;
  font-size: 1.02em;
  line-height: 1.75;
  margin-bottom: 14px;
}
.manual-text .btn {
  margin-top: 10px;
}
.manual-highlights {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.manual-highlight-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f8f9fa;
  padding: 22px;
  border-radius: 12px;
  border-left: 4px solid #a00909;
  transition: transform 0.2s, box-shadow 0.2s;
}
.manual-highlight-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.manual-highlight-icon {
  font-size: 1.4em;
  flex-shrink: 0;
  color: #a00909;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  background: #f0f2ff;
  border-radius: 50%;
}
.manual-highlight-item strong {
  display: block;
  margin-bottom: 4px;
  color: #1a1a2e;
  font-size: 1.02em;
}
.manual-highlight-item p {
  color: #636e72;
  font-size: 0.9em;
  margin: 0;
  line-height: 1.5;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  font-family: inherit;
}
.btn-primary {
  background: #ff0000;
  color: #fff;
}
.btn-primary:hover { background: #ffd43b; color: #1a1a2e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,0,0,0.3); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.btn-secondary {
  background: #f0f0f0;
  color: #333;
}
.btn-secondary:hover { background: #e0e0e0; }
.btn-lg { padding: 16px 36px; font-size: 1.1em; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Sections --- */
.section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  font-size: 2.2em;
  font-weight: 800;
  margin-bottom: 12px;
  color: #1a1a2e;
}
.section-subtitle {
  text-align: center;
  color: #636e72;
  font-size: 1.1em;
  margin-bottom: 50px;
}

/* --- Features --- */
.features { background: #fff; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.feature-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.feature-icon {
  font-size: 2.2em;
  margin-bottom: 16px;
  color: #a00909;
}
.feature-icon i {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: #f0f2ff;
  border-radius: 50%;
  display: inline-block;
  font-size: 0.9em;
}
.feature-card h3 { font-size: 1.2em; margin-bottom: 10px; }
.feature-card p { color: #636e72; font-size: 0.95em; }

/* --- How It Works --- */
.how-it-works { background: #f0f2ff; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.step-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.step-number {
  width: 56px;
  height: 56px;
  background: #a00909;
  color: #fff;
  font-size: 1.5em;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: #636e72; font-size: 0.95em; }

/* --- Testimonials --- */
.testimonials { background: #fff; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-height: 800px;
  overflow-y: auto;
  padding-right: 8px;
}
.testimonials-grid::-webkit-scrollbar { width: 6px; }
.testimonials-grid::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.testimonial-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 28px;
  border-left: 4px solid #a00909;
}
.stars { color: #ffd43b; font-size: 1.2em; margin-bottom: 12px; }
.testimonial-card p { font-style: italic; color: #555; margin-bottom: 14px; line-height: 1.7; }
.testimonial-author { font-weight: 700; color: #1a1a2e; }

/* --- CTA --- */
.cta {
  background: linear-gradient(135deg, #a00909 0%, #7a0707 100%);
  color: #fff;
}
.cta h2 { font-size: 2.2em; margin-bottom: 10px; }
.cta p { font-size: 1.1em; opacity: 0.92; }

/* --- Booking App --- */
.booking-section { background: #f0f2ff; }
.booking-app-wrapper {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  max-width: 800px;
  margin: 0 auto;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}
.step-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85em;
  font-weight: 600;
  color: #b0b0b0;
  transition: color 0.3s;
}
.step-dot span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  font-weight: 700;
  font-size: 0.85em;
  transition: background 0.3s, color 0.3s;
}
.step-dot.active { color: #a00909; }
.step-dot.active span { background: #a00909; color: #fff; }
.step-dot.completed span { background: #4caf50; color: #fff; }
.step-line {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  margin: 0 8px;
  max-width: 60px;
}

.booking-step { display: none; }
.booking-step.active { display: block; }

/* --- Instructor Cards --- */
.instructor-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.instructor-card {
  padding: 24px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}
.instructor-card:hover {
  border-color: #a00909;
  background: #fafaff;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.instructor-card h3 { margin: 0 0 8px; color: #1a1a2e; }
.instructor-card p { margin: 4px 0; color: #636e72; font-size: 0.9em; }

/* --- Slots --- */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.slot-button {
  padding: 14px 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.92em;
  font-weight: 600;
  font-family: inherit;
}
.slot-button:hover:not(:disabled) {
  background: #a00909;
  color: white;
  border-color: #a00909;
  transform: translateY(-2px);
}
.slot-button.available {
  background: #eaffea;
  border-color: #4caf50;
  color: #2e7d32;
}
.slot-button.available:hover {
  background: #4caf50;
  color: #fff;
  border-color: #388e3c;
}
.slot-button:disabled {
  background: #f5f5f5;
  color: #bbb;
  cursor: not-allowed;
  border-color: #eee;
  opacity: 0.6;
}

/* --- Calendar --- */
.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}
.calendar-month-label { font-weight: 700; font-size: 1.15em; min-width: 180px; text-align: center; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-header-day {
  font-weight: 700;
  text-align: center;
  padding: 10px;
  background: #f0f0f0;
  border-radius: 6px;
  font-size: 0.85em;
  color: #555;
}
.calendar-day {
  padding: 12px 8px;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  border: 1px solid #eee;
}
.calendar-day:hover:not(.past):not(.empty) {
  background: #a00909;
  color: #fff;
}
.calendar-day.past {
  color: #ccc;
  cursor: default;
  background: #fafafa;
}
.calendar-day.empty {
  cursor: default;
  border-color: transparent;
}

/* --- Forms --- */
.form-group { margin: 18px 0; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
  font-size: 0.95em;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #a00909;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}
.button-group {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

/* --- Summary --- */
.summary {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}
.summary h3 { margin-bottom: 12px; }
.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.95em;
}

/* --- Error & Loading --- */
.error-message {
  background: #fff0f0;
  color: #c33;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #c33;
  font-weight: 500;
}
.loading {
  text-align: center;
  padding: 24px;
  color: #a00909;
  font-weight: 500;
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: flex-start;
}
.contact-info h2,
.contact-form-wrapper h2 {
  font-size: 1.6em;
  margin-bottom: 28px;
}
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.contact-icon {
  font-size: 1.3em;
  color: #a00909;
  width: 46px;
  height: 46px;
  line-height: 46px;
  text-align: center;
  background: #f0f2ff;
  border-radius: 50%;
  flex-shrink: 0;
}
.contact-item h4 { margin-bottom: 4px; font-weight: 700; }
.contact-item p { color: #555; font-size: 0.95em; }
.contact-item a { color: #a00909; font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }

.social-links { margin-top: 32px; }
.social-links h4 { margin-bottom: 12px; }
.social-icons { display: flex; gap: 12px; }
.social-icon {
  font-size: 1.6em;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f0f2ff;
  transition: background 0.2s, transform 0.2s;
}
.social-icon:hover { background: #e0e4ff; transform: translateY(-2px); }

.contact-form-wrapper {
  background: #fff;
  padding: 36px;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success h3 { margin: 14px 0 8px; font-size: 1.4em; color: #2e7d32; }
.form-success p { color: #555; }

/* --- FAQ --- */
.faq-section { background: #fff; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.faq-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 28px;
}
.faq-card h4 { margin-bottom: 10px; color: #1a1a2e; }
.faq-card p { color: #636e72; font-size: 0.95em; }

/* --- Footer --- */
.footer {
  background: #1a1a2e;
  color: #ccc;
  padding-top: 60px;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand h3 { color: #fff; margin-bottom: 10px; }
.footer-links h4,
.footer-contact h4 {
  color: #fff;
  margin-bottom: 14px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: #a00909; }
.footer-contact p { margin-bottom: 6px; font-size: 0.9em; }\n.footer-contact p i { margin-right: 8px; width: 16px; text-align: center; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85em;
  color: #888;
}

/* ======== Responsive ======== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #1a1a2e;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    padding: 16px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }

  .hero-content h1 { font-size: 2.2em; }
  .hero { padding: 80px 0 60px; }

  .features-grid,
  .steps-grid,
  .testimonials-grid { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; gap: 30px; }

  .footer-content { grid-template-columns: 1fr; gap: 30px; }

  .booking-app-wrapper { padding: 24px 18px; }
  .step-indicator { flex-wrap: wrap; gap: 4px; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }

  .manual-content { grid-template-columns: 1fr; gap: 30px; }

  .button-group { flex-direction: column; }
  .hero-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8em; }
  .page-header h1 { font-size: 1.8em; }
  .section-title { font-size: 1.6em; }
}

/* ======== Policy Pages (Privacy & Terms) ======== */
.policy-section { background: #fff; }
.policy-content {
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.8;
}
.policy-content h2 {
  font-size: 1.35em;
  font-weight: 700;
  color: #1a1a2e;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f2ff;
}
.policy-content h3 {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 10px;
}
.policy-content p {
  color: #444;
  margin-bottom: 12px;
}
.policy-content ul {
  margin: 8px 0 16px 24px;
  list-style: disc;
}
.policy-content li {
  color: #444;
  margin-bottom: 6px;
}
.policy-content a {
  color: #a00909;
  font-weight: 500;
}
.policy-content a:hover { text-decoration: underline; }
.policy-updated {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 24px;
  font-weight: 500;
}
.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  font-size: 0.95em;
}
.policy-table th,
.policy-table td {
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  text-align: left;
}
.policy-table th {
  background: #f0f2ff;
  font-weight: 700;
  color: #1a1a2e;
}
.policy-table td { color: #444; }
.policy-highlight {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 4px solid #ffa000;
  border-radius: 10px;
  padding: 24px 28px;
  margin: 20px 0 28px;
}
.policy-highlight h3 { color: #e65100; margin-bottom: 14px; }

/* ======== Cookie Banner ======== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a2e;
  color: #ddd;
  padding: 18px 24px;
  z-index: 9999;
  display: none;
  font-size: 0.92em;
  line-height: 1.6;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-banner.show { display: block; }
.cookie-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-inner p { margin: 0; flex: 1; min-width: 250px; }
.cookie-inner a { color: #a3b1ff; text-decoration: underline; }
.cookie-btn {
  background: #a00909;
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95em;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s;
}
.cookie-btn:hover { background: #5568d3; }

/* ======== Cancellation Notice (Booking Page) ======== */
.cancellation-notice {
  background: #f0f2ff;
  border: 1px solid #d0d5f7;
  border-left: 4px solid #a00909;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0 0;
  font-size: 0.9em;
  color: #444;
  line-height: 1.7;
}
.cancellation-notice strong { color: #1a1a2e; }
.cancellation-notice a { color: #a00909; font-weight: 500; }
.cancellation-notice a:hover { text-decoration: underline; }

/* ======== T&C checkbox ======== */
.form-group-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
}
.form-group-checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #a00909;
}
.form-group-checkbox label {
  font-size: 0.9em;
  color: #444;
  line-height: 1.5;
  font-weight: 400;
}
.form-group-checkbox a {
  color: #a00909;
  font-weight: 500;
}
.form-group-checkbox a:hover { text-decoration: underline; }
