:root {
  --primary: #ff6b35; /* Orange accent */
  --primary-hover: #e55a29;
  --secondary: #243b55; /* Deep blue */
  --secondary-dark: #141e30;
  --bg-color: #f4f7f6;
  --card-bg: #ffffff;
  --text-main: #333333;
  --text-muted: #666666;
  --border-color: #e0e0e0;
  --error: #ef4444;
  --success: #10b981;
  --radius: 16px;
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

a {
  text-decoration: none;
  color: inherit;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 2rem;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled .nav-logo { color: var(--secondary-dark); }
.navbar.scrolled .nav-links a { color: var(--text-main); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); }

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.logo-accent {
  color: var(--primary);
}

.nav-logo .logo-accent {
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  font-family: inherit;
  font-weight: inherit;
}


.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 900;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 30, 48, 0.9) 0%, rgba(36, 59, 85, 0.7) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  color: #fff;
  animation: fadeUp 1s ease forwards;
}

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

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title-accent {
  background: linear-gradient(to right, #ff6b35, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  color: var(--secondary-dark);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 900;
  font-size: 1.125rem;
  transition: var(--transition);
}

.hero-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.hero-btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  display: flex;
  justify-content: center;
}

.hero-scroll-indicator span {
  display: block;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  margin-top: 8px;
  animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

/* FORM SECTION */
.form-section {
  padding: 5rem 2rem;
  background: var(--bg-color);
  position: relative;
  z-index: 2;
  margin-top: -60px;
}

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

.form-header {
  text-align: center;
  margin-bottom: 3rem;
}

.form-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 107, 53, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 900;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.form-title {
  font-size: 2.5rem;
  color: var(--secondary-dark);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  color: var(--secondary-dark);
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Form Fields */
.form-row {
  margin-bottom: 1.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.field-group {
  position: relative;
}

.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary-dark);
  margin-bottom: 0.5rem;
}

.field-label.required::after {
  content: '*';
  color: var(--error);
  margin-left: 0.25rem;
}

.input-wrap {
  position: relative;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: var(--transition);
  overflow: hidden;
}

.input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
  background: #fff;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--text-muted);
  z-index: 1;
}

.field-input {
  width: 100%;
  padding: 1rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
}

.input-wrap.icon-left .field-input {
  padding-left: 3rem;
}

.input-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--primary);
  transition: width 0.3s ease;
}

.input-wrap:focus-within .input-glow {
  width: 100%;
}

.field-error {
  display: block;
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 0.5rem;
  min-height: 1em;
}

.field-help {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Route Row Specifics */
.route-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.route-row .field-group {
  flex: 1;
}

.swap-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--secondary);
  transition: var(--transition);
  margin-bottom: 20px; /* Align with inputs */
  box-shadow: var(--shadow-sm);
}

.swap-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: rotate(180deg);
}

/* Passenger Counter */
.passenger-counter {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem;
  height: 54px; /* match input height */
}

.counter-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #fff;
  border-radius: 6px;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--secondary-dark);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.counter-btn:hover {
  background: var(--primary);
  color: #fff;
}

.counter-value {
  flex: 1;
  text-align: center;
  font-weight: 900;
  font-size: 1.125rem;
}

.counter-label {
  padding-right: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Phone input */
.phone-input-wrap {
  display: flex;
  align-items: center;
}
.phone-flag { position: relative; left: 10px; }
.phone-code {
  padding-left: 45px;
  font-weight: 500;
  color: var(--text-muted);
}
.phone-field {
  padding-left: 10px !important;
}

/* Class Grid Chips */
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.5rem;
}

.class-chip {
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--border-color);
  background: #f8fafc;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  color: var(--text-muted);
  transition: var(--transition);
}

.class-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.class-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.2);
}

/* Footer & Submit */
.form-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.terms-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.terms-label input {
  display: none;
}

.custom-check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  display: inline-block;
  position: relative;
  transition: var(--transition);
}

.terms-label input:checked + .custom-check {
  background: var(--primary);
  border-color: var(--primary);
}

.terms-label input:checked + .custom-check::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.terms-link {
  color: var(--primary);
  text-decoration: underline;
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border: none;
  padding: 1.25rem 3rem;
  border-radius: 50px;
  font-size: 1.125rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(255, 107, 53, 0.4);
}

.submit-btn:active {
  transform: translateY(1px);
}

.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

.submit-btn.loading .btn-text {
  opacity: 0;
}

.submit-btn.loading .btn-spinner {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 30, 48, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.show .modal-box {
  transform: scale(1);
}

.modal-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.75rem;
  color: var(--secondary-dark);
  margin-bottom: 1rem;
}

.modal-msg {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.modal-ref {
  font-weight: 900;
  font-size: 1.125rem;
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px dashed var(--border-color);
  margin-bottom: 2rem;
}

.modal-close-btn {
  background: var(--secondary-dark);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 900;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .route-row {
    flex-direction: column;
    align-items: stretch;
  }
  .swap-btn {
    align-self: center;
    margin-bottom: 0;
    transform: rotate(90deg);
  }
  .swap-btn:hover {
    transform: rotate(270deg);
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .nav-links {
    display: none;
  }
}

/* Related Tours Carousel */
.related-tours-section {
    padding: 4rem 0;
    background: #fdfaf6;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.related-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #eee;
}
.related-carousel::-webkit-scrollbar {
    height: 8px;
}
.related-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.related-carousel::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
.related-card {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 260px;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}
.related-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.related-info {
    padding: 1.5rem;
}
.related-info h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    color: var(--secondary-dark);
}
.related-info p {
    font-size: 0.9rem;
    opacity: 0.75;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .related-card {
        flex: 0 0 calc(33.333% - 1rem);
    }
}
@media (max-width: 768px) {
    .related-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}
@media (max-width: 480px) {
    .related-card {
        flex: 0 0 85%;
    }
}
