/* =========================================================
   Surrey Link Transport – Professional Modern Website Style
   ========================================================= */

/* ---------- Root Colours & Variables ---------- */
:root {
  --blue: #004aad;
  --blue-dark: #00357d;
  --muted: #f1f4f8;
  --text: #222;
  --radius: 10px;
}

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #f8fbff 0%, #e6efff 100%);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ---------- Navigation ---------- */
nav {
  position: sticky;
  top: 0;
  background: var(--blue);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ---------- Logo Styling ---------- */
nav .logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

nav .logo img {
  height: 90px;
  width: auto;
  display: block;
  margin: 4px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

nav .logo img:hover {
  transform: scale(1.05);
  opacity: 0.95;
}

/* ---------- Navigation Links ---------- */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color .3s;
}

nav ul li a:hover {
  color: #e0ecff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
  transition: .3s;
}

/* ---------- Mobile Nav ---------- */
@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--blue);
    flex-direction: column;
    width: 100%;
    text-align: center;
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  nav .logo img {
    height: 65px;
  }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(0, 74, 173, 0.55), rgba(0, 74, 173, 0.25)),
    url('images/hero.jpg') center/cover no-repeat;
  color: white;
  height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-bottom: 4px solid var(--blue);
}

.hero-content {
  max-width: 700px;
  padding: 0 20px;
  opacity: 0;
  animation: fadeInUp 1.2s ease-out forwards;
  animation-delay: 0.3s;
}

.hero-content h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #f0f4ff;
  margin-bottom: 30px;
}

/* Book Now Button */
.btn-book {
  display: inline-block;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 8px;
  padding: 14px 36px;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  text-decoration: none;

  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 1s;
}

.btn-book:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* ---------- Fade-In Animation ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero { height: auto; padding: 100px 20px; }
  .hero-content h2 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .btn-book { padding: 12px 28px; font-size: 1rem; }
}

/* ---------- Intro text ---------- */
.intro-section h3 {
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 15px;
}
.intro-section p {
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---------- Contact Info Bar ---------- */
.contact-info {
  background: #f8fbff;
  text-align: center;
  padding: 18px 10px;
  font-size: 1rem;
  font-weight: 600;
  border-top: 1px solid #d8e4f5;
  border-bottom: 1px solid #d8e4f5;
  margin-top: 40px;
}

.contact-info a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s;
}
.contact-info a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* ---------- Content Sections ---------- */
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}
section h3 {
  color: var(--blue);
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.6rem;
}
section p {
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: #444;
}

/* ---------- Booking Form Section ---------- */
.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px 25px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

form { display: grid; gap: 15px; }
label { font-weight: 500; }

input, select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
}

input[type="date"], input[type="time"] {
  background: #f9fbff;
  border: 1px solid #ccd7f0;
  color: #333;
  border-radius: 6px;
  padding: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Segoe UI', Arial, sans-serif;
}

input[type="date"]:focus, input[type="time"]:focus,
input:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.2);
}

/* Date/time picker icon */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.4) sepia(1) saturate(3) hue-rotate(190deg);
  opacity: 0.8;
  transition: opacity 0.3s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* Journey Type */
.radio-group {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}
.radio-group label {
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
}
.radio-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  border: 2px solid var(--blue);
  width: 18px; height: 18px;
  border-radius: 50%;
  margin-right: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.radio-group input[type="radio"]:checked {
  border-color: var(--blue);
  background-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(0, 74, 173, 0.2);
}

/* Submit Button */
button {
  background: var(--blue);
  color: white;
  padding: 12px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: .5px;
  transition: all .3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
button:hover {
  background: var(--blue-dark);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Payment Section */
.payment-section {
  background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
  border: 1px solid #d8e4f5;
  border-radius: 12px;
  padding: 20px 10px 25px;
  margin-top: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.payment-section:hover { box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); }

.payment-note {
  font-size: 1.1rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 10px;
}
.payment-note small {
  display: block;
  font-size: 0.9rem;
  color: #555;
  font-weight: normal;
  margin-top: 4px;
}

/* Cards logos */
.cards {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 15px;
  flex-wrap: wrap;
}
.cards img {
  height: 28px;          /* controls logo height */
  width: auto;           /* let width follow aspect ratio */
  max-width: 80px;       /* don’t let them get too wide */
  object-fit: contain;   /* no distortion */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateY(15px);
}

.cards img.visible {
  opacity: 1;
  transform: translateY(0);
}
.cards img:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Secure Payment Note */
.secure-note {
  font-size: 0.9rem;
  color: #006400;
  margin-top: 12px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
}
.secure-note.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Features grid used on About/Services */
section.features {
  background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
  padding: 60px 20px;
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
  margin-top: 40px;
}
.feature {
  background: white;
  padding: 25px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}
.feature img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 50%;
  border: 3px solid #004aad;
}
.feature h4 {
  color: var(--blue);
  margin-bottom: 8px;
  font-size: 1.1rem;
  margin-top: 5px;
  font-weight: 600;
}
.feature p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  max-width: 90%;
  margin: 0 auto;
}

/* Floating Buttons */
.call-float, .whatsapp-float {
  position: fixed;
  width: 60px; height: 60px;
  bottom: 25px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center; align-items: center;
  transition: all 0.3s ease;
  text-decoration: none; z-index: 1000;
}
.whatsapp-float { right: 25px; background-color: #25d366; }
.call-float     { right: 95px; background-color: #004aad; }
.whatsapp-float:hover { transform: scale(1.1); background-color: #1ebe5d; }
.call-float:hover     { transform: scale(1.1); background-color: #00357d; }
.whatsapp-float img, .call-float img { width: 35px; height: 35px; }

/* Tooltip */
.call-float .tooltip, .whatsapp-float .tooltip {
  position: absolute; right: 70px; bottom: 18px;
  background: #004aad; color: white;
  padding: 6px 10px; border-radius: 6px; font-size: 0.9rem;
  opacity: 0; pointer-events: none; transform: translateX(10px);
  transition: all 0.3s ease; white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
.whatsapp-float:hover .tooltip, .call-float:hover .tooltip {
  opacity: 1; transform: translateX(0);
}

/* Pulse Animation */
.whatsapp-float::after, .call-float::after {
  content: ""; position: absolute; width: 60px; height: 60px; border-radius: 50%;
  animation: pulse 2s infinite; z-index: -1;
}
.whatsapp-float::after { background: rgba(37, 211, 102, 0.3); }
.call-float::after     { background: rgba(0, 74, 173, 0.3); }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* Sticky Contact Bar (mobile-friendly) */
.sticky-contact {
  display: flex; justify-content: center; align-items: center;
  background: var(--blue); color: white; padding: 10px 0;
  position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}
.sticky-contact .contact-link {
  flex: 1; text-align: center; color: white; font-size: 1.1rem;
  font-weight: 600; text-decoration: none; padding: 12px 0;
  transition: background 0.3s ease;
}
.sticky-contact .book-now {
  background: #ffffff; color: var(--blue); font-weight: 700;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}
.sticky-contact .book-now:hover { background: #f0f3ff; color: var(--blue-dark); }
.sticky-contact .contact-link:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}
.sticky-contact .contact-link:hover { background: var(--blue-dark); }

@media (min-width: 769px) {
  .sticky-contact {
    position: static; flex-direction: row; background: #f8fbff; color: var(--blue);
    border-top: 1px solid #d8e4f5; border-bottom: 1px solid #d8e4f5;
  }
  .sticky-contact .contact-link { color: var(--blue); padding: 10px 20px; font-size: 1rem; }
  .sticky-contact .book-now {
    background: var(--blue); color: #fff; border-radius: 6px; margin-left: 10px;
    padding: 10px 25px; transition: background 0.3s;
  }
  .sticky-contact .book-now:hover { background: var(--blue-dark); }
  .sticky-contact .contact-link:hover { background: transparent; text-decoration: underline; }
}

/* Footer */
footer {
  background: #fff; text-align: center;
  padding: 30px 20px 80px; /* space for sticky bar on mobile */
  border-top: 1px solid #ddd; color: #666; font-size: 0.9rem; margin-top: 60px;
}
footer .footer-logo { margin-bottom: 10px; }
footer .footer-logo img {
  height: 55px; width: auto; opacity: 0.95;
  transition: transform 0.3s ease, opacity 0.3s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}
footer .footer-logo img:hover { transform: scale(1.05); opacity: 1; }
footer p { margin: 0; color: #555; font-weight: 500; letter-spacing: 0.2px; }

@media (prefers-color-scheme: dark) {
  footer { background: #0d1b2a; color: #ddd; border-top-color: #1b263b; }
  footer .footer-logo img { opacity: 0.9; }
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 600px) {
  .hero h2 { font-size: 1.6rem; }
  .hero p  { font-size: 1rem; }
  .container { margin: 20px; padding: 20px; }
  .cards img { height: 28px; }
  .call-float, .whatsapp-float { width: 55px; height: 55px; bottom: 20px; }
  .call-float { right: 85px; } .whatsapp-float { right: 20px; }
  .call-float img, .whatsapp-float img { width: 30px; height: 30px; }
}

/* ---------- Accessibility utilities ---------- */
.sr-only, .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  top: -40px; left: 10px;
  background: #004aad; color: #fff;
  padding: 10px 12px; border-radius: 6px;
  z-index: 10000; text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 10px; outline: 2px solid #fff; }
/* Make sure Google Autocomplete dropdown is above everything */
.pac-container {
  z-index: 3000 !important;
}
/* Keep Google Places dropdown above sticky bars & nav */
.pac-container { z-index: 3000 !important; }

/* ===============================
   Place-Type Badges (Below Inputs)
   =============================== */
.place-badge {
  display: block;
  margin-top: 4px;              /* below input */
  margin-left: 2px;
  padding: 5px 10px;
  border: 1px solid #d0ddf2;
  border-radius: 8px;
  font-size: 13px;
  color: #004aad;
  background: #f8fbff;
  width: fit-content;
  max-width: 95%;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* When badge is visible */
.place-badge.show {
  opacity: 1;
  transform: translateY(0);
}

/* Slightly smaller on mobile screens */
@media (max-width: 600px) {
  .place-badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
  }
}

/* Keep Google Places dropdown above sticky UI */
.pac-container {
  z-index: 3000 !important;
}


/* Keep Google Places dropdown above sticky bars & nav (already recommended) */
.pac-container { z-index: 3000 !important; }
