/* Base Styles & Reset */
:root {
  --primary-color: #1a365d;
  --primary-light: #2a4a7f;
  --secondary-color: #f5a623;
  --accent-color: #ff6b35;
  --text-color: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --bg-color: #ffffff;
  --bg-light: #f9f9f9;
  --bg-dark: #f0f0f0;
  --border-color: #eaeaea;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--primary-color);
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Stars Styling */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  color: var(--secondary-color);
}

/* Hero Rating */
.hero-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  backdrop-filter: blur(5px);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-rating p {
  margin-bottom: 0;
}

/* Video Testimonials Section */
.video-testimonials {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.video-testimonials h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  max-width: 1200px;
}

.video-testimonial {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.video-testimonial:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.video-wrapper {
  position: relative;
  /*padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  /* height: 0; */
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.video-overlay:hover {
  background: rgba(0, 0, 0, 0.2);
}

.play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.play-button i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-left: 5px;
}

.play-button:hover {
  transform: scale(1.1);
  background: white;
}

.video-info {
  padding: 1.5rem;
  text-align: center;
}

.video-quote {
  font-style: italic;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.video-author {
  color: var(--text-light);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
  box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  background-color: #e55a2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 1.25rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  padding: 1rem 0;
  z-index: 1000;
  transition: var(--transition);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

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

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  font-weight: 600;
  color: var(--text-color);
}

nav a:hover {
  color: var(--accent-color);
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

.phone-link i {
  color: var(--accent-color);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background-image: url('https://www.chauffeurprive.ma/public/images/cities/morocco.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  position: relative;
  display: flex;
  align-items: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 650px;
  margin-top: 4rem;
  animation: fadeIn 1s ease-out;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  color: white;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(26, 54, 93, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon i {
  font-size: 2rem;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Featured Testimonial */
.featured-testimonial {
  padding: 4rem 0;
  background-color: var(--primary-color);
  color: white;
}

.featured-testimonial .testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.featured-testimonial blockquote {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.featured-testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--secondary-color);
}

/* Booking Section */
.booking {
  padding: 5rem 0;
  background-color: white;
}

.booking-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.booking-info h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.booking-guarantee {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
  background-color: rgba(245, 166, 35, 0.1);
  border-radius: 8px;
}

.booking-guarantee i {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.booking-form-container {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-step {
  transition: var(--transition);
}

.form-step h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.phone-input {
  display: flex;
  align-items: center;
}

.country-code {
  background-color: var(--bg-dark);
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: 4px 0 0 4px;
}

.phone-input input {
  border-radius: 0 4px 4px 0;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.radio-option input[type="radio"] {
  width: auto;
}

.radio-option label {
  margin-bottom: 0;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

#success-message {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  font-size: 4rem;
  color: #4CAF50;
  margin-bottom: 1.5rem;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.testimonial-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.testimonial-card blockquote {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-card cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--text-light);
}

.google-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.google-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.google-rating {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.google-rating .stars {
  font-size: 1.25rem;
}

/* Call to Action */
.cta {
  padding: 5rem 0;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.cta h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.25rem;
}

/* Footer */
footer {
  background-color: #0c1c30;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-company h3 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}

.footer-company span {
  color: var(--accent-color);
}

.footer-company p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-contact h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: white;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact .btn {
  margin-top: 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal a:hover {
  color: white;
}

/* Promotion Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.popup-overlay.active .popup {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-lighter);
  transition: var(--transition);
}

.popup-close:hover {
  color: var(--text-color);
}

.popup-content {
  padding: 3rem 2rem;
  text-align: center;
}

.popup-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.popup h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.popup p {
  margin-bottom: 2rem;
  font-size: 1.25rem;
}

.popup-cta {
  font-size: 1.125rem;
}

/* Helper Classes */
.hidden {
  display: none !important;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Media Queries */
@media screen and (max-width: 992px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .booking-container {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  nav, .phone-link span {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero {
    min-height: 500px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .features-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .google-badge {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media screen and (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn-xl {
    font-size: 1.1rem;
  }
  
  .featured-testimonial blockquote {
    font-size: 1.25rem;
  }
  
  .form-buttons {
    flex-direction: column-reverse;
    gap: 1rem;
  }
  
  .form-buttons button {
    width: 100%;
  }
}

/* International Telephone Input Customization */
.iti {
  width: 100%;
}

.iti__tel-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--bg-color);
}

.iti__tel-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.iti__country-list {
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  z-index: 1000;
}

.iti__country {
  padding: 8px 12px;
}

.iti__country:hover {
  background-color: var(--bg-light);
}

.iti__country.iti__highlight {
  background-color: var(--primary-light);
  color: white;
}

.iti__selected-flag {
  padding: 0 8px;
}

.iti__arrow {
  border-left-color: var(--text-lighter);
  border-top-color: var(--text-lighter);
}

/* Override the old phone-input styles when using international input */
.international-phone {
  width: 100%;
}

/* Remove the old phone-input styles for international inputs */
.form-group:has(.international-phone) .phone-input {
  display: none;
}

/* Ensure proper spacing for international phone input */
.iti--separate-dial-code .iti__tel-input {
  padding-left: 0.75rem;
}

.iti--separate-dial-code .iti__selected-dial-code {
  color: var(--text-color);
}