/* RideEDH - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap');

/* CSS Variables for consistent theming - Apple-inspired minimal design */
:root {
  /* Primary blue for CTAs only */
  --primary-color: #0071e3;
  --primary-dark: #0077ed;
  --primary-light: #0077ed;

  /* Grayscale palette */
  --text-black: #1d1d1f;
  --text-dark: #1d1d1f;
  --text-gray: #6e6e73;
  --text-light: #86868b;
  --bg-white: #ffffff;
  --bg-light: #f5f5f7;
  --bg-section: #fbfbfd;
  --border-color: #d2d2d7;
  --border-light: #e8e8ed;

  /* Functional colors */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;

  /* Shadows - subtle like Apple */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.04);
  --shadow-md: 0 4px 12px 0 rgb(0 0 0 / 0.08);
  --shadow-lg: 0 10px 25px 0 rgb(0 0 0 / 0.1);

  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --section-padding-mobile: 60px;
  --section-padding-desktop: 100px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-black);
  line-height: 1.47059;
  letter-spacing: -0.022em;
  background-color: var(--bg-white);
  font-weight: 400;
  font-size: 17px;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography - Apple-inspired */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 0.4em;
  letter-spacing: -0.015em;
  color: var(--text-black);
}

h1 {
  font-size: 48px;
  line-height: 1.08349;
  letter-spacing: -0.003em;
}
h2 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.003em;
}
h3 {
  font-size: 28px;
  line-height: 1.14286;
  letter-spacing: 0.007em;
}
h4 {
  font-size: 21px;
  line-height: 1.381;
  letter-spacing: 0.011em;
}

@media (min-width: 1024px) {
  h1 { font-size: 64px; line-height: 1.0625; letter-spacing: -0.009em; }
  h2 { font-size: 56px; line-height: 1.07143; letter-spacing: -0.005em; }
  h3 { font-size: 32px; line-height: 1.125; letter-spacing: 0.004em; }
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Buttons - Apple-inspired minimal style */
.btn-primary, .btn-cta, .btn-cta-white, .btn-secondary {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 980px;
  font-weight: 400;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 17px;
  line-height: 1.17648;
  letter-spacing: -0.022em;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

.btn-cta {
  background-color: var(--primary-color);
  color: white;
  padding: 15px 32px;
  font-size: 19px;
  border: 2px solid var(--primary-color);
}

.btn-cta:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

.btn-cta-white {
  background-color: white;
  color: var(--text-black);
  padding: 15px 32px;
  font-size: 19px;
  border: 2px solid white;
}

.btn-cta-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-black);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-black);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-light);
  border-color: var(--text-gray);
  color: var(--text-black);
}

/* Disabled button states */
.btn-primary:disabled,
.btn-cta:disabled,
.btn-cta-white:disabled,
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary:disabled {
  background-color: var(--text-light);
  border-color: var(--text-light);
  color: white;
}

.btn-secondary:disabled {
  background-color: transparent;
  border-color: var(--border-light);
  color: var(--text-light);
}

/* Header / Navigation */
.header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--text-black);
  letter-spacing: -0.02em;
  margin-left: 5px;
}

.logo-img {
  height: 60px;
  width: auto;
  display: block;
}

.logo h1 {
  color: var(--text-black);
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.veteran-badge {
  background-color: var(--text-black);
  color: white;
  padding: 4px 12px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-gray);
  font-weight: 400;
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--text-black);
}

/* Keep button styles for CTA buttons in nav */
.nav-links a.btn-cta,
.nav-links a.btn-primary {
  color: white;
  font-size: 15px;
  font-weight: 400;
  padding: 10px 20px;
}

.nav-links a.btn-cta:hover,
.nav-links a.btn-primary:hover {
  color: white;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-top: 16px;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-black);
  transition: var(--transition);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    right: 0;
    height: auto;
    max-height: calc(100vh - 70px);
    width: 280px;
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 50px 30px 30px;
    gap: 24px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 18px;
    width: 100%;
    padding: 8px 0;
  }

  .nav-links a.btn-cta,
  .nav-links a.btn-primary {
    margin-top: 12px;
    width: auto;
    display: block;
    text-align: center;
    font-size: 17px;
    padding: 12px 24px;
    margin-left: auto;
    margin-right: auto;
  }

  .logo-img {
    height: 32px;
  }

  .logo h1 {
    font-size: 1.3rem;
  }

  .veteran-badge {
    font-size: 9px;
    padding: 3px 8px;
  }
}

/* Desktop - Reset mobile styles */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    height: auto;
    width: auto;
    background-color: transparent;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 32px;
    box-shadow: none;
    transition: none;
    transform: none;
  }

  .nav-links a {
    font-size: 14px;
    width: auto;
    padding: 0;
  }

  .nav-links a.btn-cta,
  .nav-links a.btn-primary {
    margin-top: 0;
    width: auto;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .veteran-badge {
    font-size: 11px;
    padding: 4px 12px;
  }
}

/* Hero Section - Clean grayscale */
.hero {
  background-image: url('../assets/images/oak-tree-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 60px 0 80px;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero {
    padding: 80px 0 100px;
  }
}

.hero-content {
  max-width: 1300px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 40px;
  border-radius: 6px;
}

.hero-title {
  font-size: 48px;
  line-height: 1.08349;
  font-weight: 600;
  letter-spacing: -0.003em;
  margin-bottom: 0.4em;
  color: white;
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 64px;
    line-height: 1.0625;
    letter-spacing: -0.009em;
  }
}

.hero-subtitle {
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  letter-spacing: 0.011em;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 1024px) {
  .hero-subtitle {
    font-size: 28px;
    line-height: 1.14286;
    letter-spacing: 0.007em;
    margin-bottom: 2.5rem;
  }
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  color: white;
}

.feature-badge {
  background-color: var(--bg-light);
  padding: 10px 18px;
  border-radius: 980px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: var(--text-gray);
  font-size: 15px;
  border: 1px solid var(--border-light);
}

.feature-badge .icon {
  font-weight: normal;
  font-size: 1rem;
  color: var(--text-black);
}

/* Section Styles - Apple-inspired spacing */
section {
  padding: var(--section-padding-mobile) 0;
}

@media (min-width: 1024px) {
  section {
    padding: var(--section-padding-desktop) 0;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 0.4em;
  color: var(--text-black);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  letter-spacing: 0.011em;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .section-subtitle {
    font-size: 24px;
    margin-bottom: 4rem;
  }
}

/* Pricing Section */
.pricing-section {
  background-color: var(--bg-section);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border: 2px solid var(--text-black);
  box-shadow: var(--shadow-md);
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background-color: var(--text-black);
  color: white;
  padding: 6px 16px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.pricing-card h3 {
  color: var(--text-black);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.015em;
}

.price {
  font-size: 48px;
  font-weight: 600;
  color: var(--text-black);
  margin-bottom: 0.5rem;
  letter-spacing: -0.003em;
}

.price span {
  font-size: 21px;
  font-weight: 400;
  color: var(--text-gray);
}

.price-detail {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-size: 17px;
}

.pricing-features {
  list-style: none;
  text-align: left;
}

.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: "✓ ";
  color: var(--success-color);
  font-weight: bold;
  margin-right: 8px;
}

/* Service Areas */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.area-card {
  background-color: var(--bg-section);
  padding: 32px 24px;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid var(--border-light);
}

.area-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 16px;
}

.area-pin {
  position: relative;
  width: 24px;
  height: 24px;
  margin: 0 auto 20px;
  font-size: 0;
}

.area-pin::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: #000;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  left: 0;
  top: 0;
}

.area-pin::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(-2px);
}

.area-card h3 {
  color: var(--text-black);
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.015em;
}

.area-card p {
  color: var(--text-gray);
  margin: 0;
  font-size: 17px;
}

/* About Section */
.about-section {
  background-color: white;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 2rem;
  padding: 24px;
  background-color: var(--bg-white);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.why-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}

.why-item:first-child {
  margin-top: 48px;
}

.why-icon {
  font-size: 40px;
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-section);
  border-radius: 12px;
}

.why-content {
  flex: 1;
}

.why-item h3 {
  color: var(--text-black);
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.015em;
}

.why-item p {
  color: var(--text-gray);
  font-size: 17px;
  line-height: 1.47059;
}

/* CTA Section - Clean grayscale */
.cta-section {
  background-color: var(--bg-section);
  color: var(--text-black);
  text-align: center;
  padding: 80px 0;
}

@media (min-width: 1024px) {
  .cta-section {
    padding: 100px 0;
  }
}

.cta-section h2 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.003em;
  margin-bottom: 0.5em;
  color: var(--text-black);
}

@media (min-width: 1024px) {
  .cta-section h2 {
    font-size: 56px;
    letter-spacing: -0.005em;
  }
}

.cta-section p {
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  letter-spacing: 0.011em;
  margin-bottom: 2rem;
  color: var(--text-gray);
}

@media (min-width: 1024px) {
  .cta-section p {
    font-size: 24px;
    margin-bottom: 2.5rem;
  }
}

/* Contact Section */
.contact-section {
  background-color: var(--bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background-color: var(--bg-section);
  padding: 40px 32px;
  border-radius: var(--border-radius);
  box-shadow: none;
  border: 1px solid var(--border-light);
  text-align: center;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.contact-card:hover {
  border-color: var(--text-black);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-icon {
  font-size: 36px;
  font-weight: bold;
  display: block;
  margin-bottom: 20px;
  color: var(--text-black);
}

.contact-card h3 {
  color: var(--text-black);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.015em;
}

.contact-card a {
  color: var(--text-gray);
  font-weight: 400;
}

.contact-card a:hover {
  color: var(--text-black);
}

/* Footer */
.footer {
  background-color: var(--bg-section);
  color: var(--text-gray);
  padding: 48px 0 24px;
  border-top: 1px solid var(--border-light);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h3, .footer-section h4 {
  color: var(--text-black);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.footer-section p {
  color: var(--text-gray);
  line-height: 1.47059;
  font-size: 14px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: var(--text-gray);
  font-size: 14px;
}

.footer-section a:hover {
  color: var(--text-black);
}

.veteran-text {
  color: var(--text-black);
  font-weight: 400;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-gray);
  margin: 0;
  font-size: 12px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input.error {
  border-color: var(--error-color);
}

.error-message {
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: 4px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/oak-tree-hero.png');
  }

  .hero-content {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .pricing-grid,
  .areas-grid,
  .contact-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .hero-features {
    flex-direction: column;
    gap: 12px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }

  .section-title {
    font-size: 1.75rem;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .btn-cta, .btn-cta-white {
    width: 100%;
    max-width: 300px;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none; }

/* ============================================ */
/* BOOKING & PAYMENT PAGE STYLES */
/* ============================================ */

.booking-section {
  background-color: var(--bg-light);
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

.booking-container {
  max-width: 900px;
  margin: 0 auto;
}

.booking-header {
  text-align: center;
  margin-bottom: 40px;
}

.booking-header h2 {
  color: var(--text-dark);
  margin-bottom: 8px;
}

.booking-header p {
  color: var(--text-light);
  font-size: 1.125rem;
}

.booking-content {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding: 0 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-light);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  transition: var(--transition);
}

.step.active .step-number {
  background-color: var(--primary-color);
  color: white;
}

.step.completed {
  cursor: pointer;
}

.step.completed .step-number {
  background-color: var(--success-color);
  color: white;
}

.step-label {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 600;
  white-space: nowrap;
}

.step.active .step-label {
  color: var(--primary-color);
}

.step-line {
  flex: 1;
  height: 2px;
  background-color: var(--border-color);
  margin: 0 12px;
}

/* Form Steps */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-step h3 {
  color: var(--text-dark);
  margin-bottom: 24px;
  font-size: 1.5rem;
}

/* Form Elements */
.help-text {
  display: block;
  color: var(--text-light);
  font-size: 0.875rem;
  margin-top: 4px;
}

/* Fare Estimate */
.fare-estimate {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 24px;
  margin: 24px 0;
}

.fare-estimate h4 {
  color: var(--text-dark);
  margin-bottom: 16px;
}

.fare-breakdown {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.fare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.fare-row:last-child {
  border-bottom: none;
}

.fare-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid var(--primary-color);
}

.fare-note {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-light);
  text-align: center;
}

/* Payment Summary */
.payment-summary {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 24px;
}

.payment-summary h4 {
  color: var(--text-dark);
  margin-bottom: 16px;
}

.summary-details {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid var(--primary-color);
}

.summary-row .label {
  color: var(--text-gray);
  font-weight: 500;
}

/* Payment Total */
.payment-total {
  margin-top: 20px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
}

/* Payment Methods */
.payment-methods,
.payment-method-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.payment-method-option {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.payment-method-option:hover {
  border-color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.02);
}

.payment-method-option.selected {
  border-color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.05);
}

.payment-method-option input[type="radio"] {
  width: auto;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.payment-method-option .option-label {
  font-weight: 600;
  color: var(--text-dark);
}

.payment-method-option .option-desc {
  width: 100%;
  font-size: 0.825rem;
  color: var(--text-light);
  padding-left: 24px;
}

.payment-method-content {
  flex: 1;
}

.payment-method-content strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.payment-method-content p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

/* Tip Options */
.tip-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.tip-btn {
  padding: 12px;
  border: 2px solid var(--border-color);
  background-color: white;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tip-btn:hover {
  border-color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.05);
}

.tip-btn.active {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: white;
}

/* Pay Later Section */
.pay-later-section {
  padding: 24px;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  text-align: center;
}

.pay-later-info p {
  margin: 0 0 8px;
  color: var(--text-dark);
}

.pay-later-info .pay-later-methods {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Square Card Container */
.card-container, #card-container {
  min-height: 90px;
}

/* Wallet Buttons */
.wallet-buttons {
  display: none;
  gap: 12px;
  margin-bottom: 16px;
}

.wallet-buttons.available {
  display: flex;
}

.wallet-btn {
  flex: 1;
  height: 48px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  display: none;
}

.wallet-btn.available {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Apple Pay Button */
.wallet-btn.apple-pay, #apple-pay-button, .apple-pay-container {
  background-color: #000;
  color: #fff;
}

.wallet-btn.apple-pay:hover, #apple-pay-button:hover, .apple-pay-container:hover {
  background-color: #1a1a1a;
}

.wallet-btn.apple-pay svg, #apple-pay-button svg {
  width: 20px;
  height: 20px;
}

.apple-pay-container {
  display: none;
}

.apple-pay-container.available {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  height: 48px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.apple-pay-container .apple-logo {
  height: 20px;
  width: auto;
}

/* Google Pay Button */
.wallet-btn.google-pay, #google-pay-button, .google-pay-container {
  background-color: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
}

.wallet-btn.google-pay:hover, #google-pay-button:hover, .google-pay-container:hover {
  background-color: #f8f9fa;
}

.wallet-btn.google-pay svg, #google-pay-button svg {
  width: 20px;
  height: 20px;
}

.google-pay-container {
  display: none;
}

.google-pay-container.available {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  height: 48px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.google-pay-container .google-logo {
  height: 20px;
  width: auto;
}

/* Payment separator */
.payment-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: var(--text-light);
  font-size: 0.875rem;
}

.payment-separator::before,
.payment-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.payment-separator span {
  padding: 0 16px;
}

/* Payment status messages */
.payment-status, #payment-status {
  margin-top: 8px;
  font-size: 0.875rem;
}

/* Checkbox Label */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  cursor: pointer;
}

.checkbox-label span {
  flex: 1;
}

/* Form Row - Side by side fields */
.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

.form-row-3 {
  display: flex;
  gap: 20px;
}

.form-row-3 .form-group {
  flex: 1;
  min-width: 0;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.form-actions button {
  flex: 1;
}

/* Safety Notice */
.safety-notice {
  background-color: rgba(0, 0, 0, 0.05);
  border-left: 4px solid #333;
  padding: 24px;
  margin-top: 32px;
  border-radius: var(--border-radius);
}

.safety-notice h4 {
  color: #333;
  margin-bottom: 12px;
}

.safety-notice ul {
  list-style: none;
  margin: 0;
}

.safety-notice li {
  padding: 6px 0;
  color: var(--text-dark);
}

.safety-notice li::before {
  content: "✓ ";
  color: #333;
  font-weight: bold;
  margin-right: 8px;
}

/* Google Places Autocomplete Styling */
gmp-place-autocomplete {
  width: 100%;
}

gmp-place-autocomplete input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: border-color 0.2s ease;
  font-family: inherit;
}

gmp-place-autocomplete input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Confirmation Page Styles */
.confirmation-message {
  text-align: center;
  padding: 40px 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  color: var(--success-color);
  stroke-width: 2;
}

.confirmation-message h3 {
  color: var(--text-dark);
  margin-bottom: 12px;
  font-size: 1.75rem;
}

.confirmation-message p {
  color: var(--text-light);
  font-size: 1.125rem;
}

.ride-summary {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 32px;
}

.ride-summary h4 {
  color: var(--text-dark);
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.ride-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.ride-summary .summary-row:last-child {
  border-bottom: none;
}

.ride-summary .summary-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid var(--primary-color);
}

.ride-summary .summary-label {
  color: var(--text-light);
  font-weight: 500;
}

.confirmation-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.confirmation-actions a {
  text-align: center;
  text-decoration: none;
  min-width: 200px;
}

.confirmation-note {
  background-color: rgba(37, 99, 235, 0.05);
  border-left: 4px solid var(--primary-color);
  padding: 24px;
  border-radius: var(--border-radius);
}

.confirmation-note p {
  margin: 0 0 12px;
  color: var(--text-dark);
  font-weight: 600;
}

.confirmation-note ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.confirmation-note li {
  padding: 8px 0;
  color: var(--text-dark);
  position: relative;
  padding-left: 24px;
}

.confirmation-note li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Mobile Responsiveness for Booking/Payment Pages */
@media (max-width: 768px) {
  .booking-content {
    padding: 24px 20px;
  }

  .step-indicator {
    padding: 0;
  }

  .step-label {
    font-size: 0.75rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .step-line {
    margin: 0 8px;
  }

  .form-row,
  .form-row-3 {
    flex-direction: column;
    gap: 0;
  }

  .tip-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }

  .wallet-buttons {
    flex-direction: column;
  }

  .confirmation-message {
    padding: 24px 16px;
  }

  .confirmation-icon {
    width: 60px;
    height: 60px;
  }

  .confirmation-message h3 {
    font-size: 1.5rem;
  }

  .confirmation-actions {
    flex-direction: column;
  }

  .confirmation-actions a {
    width: 100%;
  }
}
