:root{
  --text:#0f172a;
  --muted:#667085;
  --border:#E5E7EB;
  --bg:#ffffff;
  --brand:#19b394;         /* teal badge/brand color */
  --accent:#f49e8b;        /* peach button */
  --accent-hover:#e98a74;
  --card-shadow: 0 20px 50px rgba(16,24,40,0.12);
  --radius:16px;
  --light-gray-bg: #F9FAFB; /* New color for section separation */
}

*{box-sizing:border-box}
html,body{margin:0}
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
}

.container{width:min(1140px,92%); margin-inline:auto}

/* Header */
.site-header{
  background:#fff;
  border-bottom:1px solid #F2F4F7;
  position:sticky; top:0; z-index:20;
}
.nav{display:flex; align-items:center; justify-content:space-between; padding:14px 0}
.brand{display:flex; align-items:center; text-decoration:none; gap:.6rem; color:var(--text); font-weight:700}
.nav-links{display:flex; gap:1.5rem}
.nav-links a{color:var(--text); text-decoration:none; font-size:14px; font-weight:500}

/* Hero Section */
.hero{
  background:#fff;
  padding:60px 0 80px;
}
.hero-content{
  display:grid; grid-template-columns: 1fr 400px;
  gap:40px;
  align-items:flex-start;
}
.hero-text{
  padding-top:40px;
}
.eyebrow{
  color:var(--brand);
  font-size:14px;
  font-weight:700;
  letter-spacing:1px;
  margin:0 0 10px;
}
.headline{
  font-size:40px;
  font-weight:800;
  margin:0 0 20px;
  line-height:1.2;
}
.headline span{
  color:var(--accent);
}
.hero-text p{
  color:var(--muted);
  font-size:18px;
  max-width:450px;
}

/* Form Card */
.form-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--card-shadow);
  padding:24px;
}

/* Progress Bar */
.progress-bar{
  height:8px;
  background:#F2F4F7;
  border-radius:4px;
  margin-bottom:24px;
}
.progress{
  height:100%;
  background:var(--accent);
  border-radius:4px;
  transition:width .3s ease;
}

/* Form Styling */
.form-step{
  flex-direction:column; /* Ensures items stack in steps */
  gap:16px;
}
.form-step h3{
  margin:0 0 4px;
  font-size:22px;
  font-weight:700;
}

/* Step Switching */
.form-step{display:none} /* Hide all steps by default */

/* Input Fields */
.field{
  position:relative;
  width:100%;
}
.label{
  font-size:12px;
  font-weight:600;
  color:var(--muted);
  margin-bottom:4px;
}
input[type="text"], input[type="date"], input[type="tel"]{
  width:100%;
  padding:12px;
  border:1px solid var(--border);
  border-radius:12px;
  font-size:16px;
  color:var(--text);
  -webkit-appearance:none;
}
input:focus{
  outline:2px solid var(--brand);
  border-color:#fff;
}

/* Field Rows */
.field-row{
  display:flex;
  gap:16px;
  width:100%;
}
.field-row > .field, .field-row > .radio-group, .field-row > .stepper-group{
  flex:1;
}

/* Radio Group */
.radio-group{
  display:flex;
  gap:16px;
  align-items:flex-end;
  height:100%; /* Align with input fields */
}
.radio-group input[type="radio"]{
  display:none;
}
.radio-group label{
  flex:1;
  display:grid;
  place-items:center;
  background:#F2F4F7;
  border:1px solid #F2F4F7;
  border-radius:12px;
  height:48px;
  font-weight:500;
  color:var(--muted);
  cursor:pointer;
}
.radio-group input[type="radio"]:checked + label{
  background:#fff;
  border-color:var(--accent);
  color:var(--accent);
  font-weight:700;
}

/* Stepper Group */
h4{
  font-size:14px;
  font-weight:600;
  color:var(--muted);
  margin:4px 0 -2px;
}

.stepper{
  display:grid; grid-template-columns: 40px 1fr 40px;
  align-items:center; background:#fff; border:1px solid var(--border);
  border-radius:12px; height:48px;
}
.step{
  height:100%; border:none; background:#F8FAFC; color:#0f172a;
  font-size:22px; line-height:1; cursor:pointer; border-right:1px solid var(--border);
}
.step.plus{border-right:none; border-left:1px solid var(--border)}
.step:hover{background:#F3F4F6}
.count{display:grid; place-items:center; font-weight:700; font-size:16px}

.btn-cta{
  width:100%; height:50px; border:none; border-radius:12px;
  background:var(--accent); color:#fff; font-weight:700; font-size:16px;
  cursor:pointer; transition:.15s ease background;
}
.btn-cta:hover{background:var(--accent-hover)}

.passenger-form{
  display:flex; flex-direction:column; gap:8px; border:1px solid #F2F4F7;
  padding:12px; border-radius:12px; background:#F9FAFB;
}
.passenger-form h4{
  margin:0 0 4px; font-weight:700; font-size:16px; color:var(--text);
}
.passenger-form .field-row{
  flex-direction:row;
}

/* Step 3 (Payment) Styling */
#step3 p{
  font-size:16px; margin:0 0 16px;
}
#step3 ul{
  list-style:disc;
  padding-left:20px;
  margin:0 0 20px;
  border-left:4px solid var(--brand);
  padding-left:16px;
}
#step3 ul li{
  margin-bottom:4px;
}

/* Media Queries */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .hero-text{
    padding-top:0;
  }
  .headline{
    font-size:32px;
  }
}

@media (max-width: 600px) {
  .field-row{
    flex-direction:column;
  }
}

/* --- FIXES for Layout and Autocomplete --- */

.form-step.active {
    display: flex;
}

.autocomplete-items {
    border: 1px solid var(--border);
    border-top: none;
    z-index: 99;
    position: absolute;
    width: 100%; 
    max-height: 200px;
    overflow-y: auto;
    background-color: #ffffff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.autocomplete-items div {
    padding: 10px 12px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text);
}

.autocomplete-items div:last-child {
    border-bottom: none;
}

.autocomplete-items div:hover {
    background-color: #f7f7f7;
}

#passengerFormsContainer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- STYLING for Bottom Sections --- */

.section {
    padding: 80px 0; /* Generous vertical padding for section breaks */
    border-bottom: 1px solid var(--border);
}

.section:last-of-type {
    border-bottom: none;
}

.alternate-bg {
    background: var(--light-gray-bg); /* Alternate background for visual separation */
}

.content-container {
    max-width: 900px; /* Slightly narrower content for readability */
    margin: 0 auto;
    text-align: center;
}

.content-container .headline {
    font-size: 36px;
    margin-bottom: 30px;
}

.content-container p {
    font-size: 18px;
    color: var(--muted);
    margin: 0 auto 20px;
    max-width: 700px;
}

/* Styling for the "How It Works" list */
.feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    text-align: left;
}

.feature-list div {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}

.feature-list h4 {
    color: var(--brand);
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
}

.feature-list p {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .feature-list {
        grid-template-columns: 1fr;
    }
}