/* Base Styles */
@import '../variables.css';
@import '../responsive.css';

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--white);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul,
ol {
  list-style: none;
}

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

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 3rem;
  }
}

/* Button Styles */
.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  font-weight: 500;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(224, 94, 26, 0.3);
}

.btn-primary:hover {
  background-color: rgba(224, 94, 26, 0.9);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--secondary);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  border: 2px solid var(--secondary);
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 1rem;
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--secondary);
  transition: all 0.3s ease;
  text-align: center;
}

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

.full-width {
  width: 100%;
}

/* Utility Classes */
.text-dark-blue {
  color: var(--secondary);
}

.text-orange {
  color: var(--primary);
}

.section-spacer {
  height: 2.5rem;
  background-color: var(--white);
}

@media (min-width: 768px) {
  .section-spacer {
    height: 5rem;
  }
}

/* Animation */
.animate-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-out;
}

.animate-item.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  z-index: 50;
  transition: box-shadow 0.3s ease;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.08); /* Thin outline under navbar */
}

.navbar.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.navbar nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  max-width: 1500px;
  margin: 0 auto;
  flex-wrap: nowrap;
  gap: 1rem;
}

@media (min-width: 640px) {
  .navbar nav {
    padding: 0.875rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .navbar nav {
    padding: 1.25rem 2rem;
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .navbar nav {
    padding: 1.25rem 3rem;
    gap: 2rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .logo {
    font-size: 1.5rem;
    gap: 0.5rem;
  }
}

@media (min-width: 768px) {
  .logo {
    font-size: 2rem;
  }
}

.car-icon {
  color: var(--secondary);
  font-size: 1.5rem;
}

@media (min-width: 480px) {
  .car-icon {
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  .car-icon {
    font-size: 2.75rem;
  }
}

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

.desktop-menu {
  display: none;
}

.desktop-buttons {
  display: none;
}

@media (min-width: 1210px) {
  .desktop-menu {
    display: flex;
    gap: 2.25rem;
    font-size: 1.05rem;
  }

  .desktop-menu a {
    font-weight: 500;
    white-space: nowrap;
  }

  .desktop-menu a:hover {
    color: var(--primary);
  }
}

@media (min-width: 1210px) {
  .desktop-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

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

.desktop-menu a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.desktop-menu a.active-link {
  color: var(--primary);
}

.desktop-menu a.active-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1.5px;
  width: 100%;
  background-color: var(--primary);
  /* ORANGE underline */
  border-radius: 2px;
}

.dropdown {
  position: relative;
}

.dropdown {
  position: relative;
}

.dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -5px;
  right: -5px;
  height: 5px;
  background: transparent;
  z-index: 999;
}

.dropdown-toggle {
  all: unset;
  display: inline-block;
  background-color: transparent;
  color: var(--secondary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  border: 2px solid var(--secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.dropdown-toggle:hover {
  background-color: #2A3B54;
  transform: translateY(-1px);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0; /* Align dropdown to the end for consistency */
  left: auto;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 1000;
  border-radius: 8px;
  width: 8rem;
  margin-top: 0px;
  overflow: hidden;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Keep Login/Sign Up buttons styled when dropdown is open */
.dropdown:hover .dropdown-toggle {
  background-color: #2A3B54;
  color: var(--white);
  border-radius: 8px;
  transform: translateY(-1px);
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 400;
  text-align: left;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}

.dropdown-menu a:last-child {
  margin-top: 0;
}

.dropdown-menu a:hover {
  background-color: var(--gray-100);
  color: var(--secondary);
}


@media (min-width: 768px) {
  .desktop-menu {
    display: flex;
    gap: 2rem;
  }

  .desktop-menu a {
    font-weight: 500;
  }

  .desktop-menu a:hover {
    color: var(--primary);
  }

  .desktop-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .auth-buttons {
    display: flex;
    gap: 0.5rem;
  }
}

.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: right;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  outline: none;
}

.mobile-toggle:hover {
  color: var(--primary);
}

.mobile-toggle:active {
  transform: scale(0.95);
}

.mobile-toggle:focus {
  outline: none;
}

@media (min-width: 1210px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background-color: var(--white);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--gray-200);
}

.mobile-menu.active {
  display: flex;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu a {
  padding: 1rem 1.5rem;
  color: var(--gray-800);
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu a:active {
  background-color: var(--gray-50);
  color: var(--primary);
  padding-left: 1.75rem;
}

.mobile-menu .mobile-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background-color: var(--gray-50);
  border-top: 2px solid var(--gray-200);
}

.mobile-menu .mobile-buttons .btn-outline {
  padding: 0.875rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  border: 2px solid var(--secondary);
  background-color: var(--white);
  color: var(--secondary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.mobile-menu .mobile-buttons .btn-outline:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(41, 69, 110, 0.2);
}

.mobile-menu .btn-primary {
  padding: 1rem 1.5rem;
  margin-top: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(224, 94, 26, 0.3);
  transition: all 0.3s ease;
}

.mobile-menu .btn-primary:hover {
  background: rgba(224, 94, 26, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 94, 26, 0.4);
}

/* Main Content and Layout Styles */
main {
  padding-top: 10rem;
  padding-bottom: 4rem;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

main::before{
  content: '';
  position: absolute;
  top: 0;
  right: -20%;
  width: 60%;
  height: 100%;
  background: linear-gradient(135deg, rgba(224, 94, 26, 0.15) 0%, rgba(88, 28, 135, 0.08) 50%, transparent 80%);
  transform: rotate(-15deg);
  z-index: -1;
}

.content-wrapper {
    display: flex;
    width: 100%;
    max-width: 900px;
    background-color: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
/* Benefits Panel Styles */
.benefits-panel {
    display: flex;
    flex-direction: column;
    background-color: var(--secondary);
    color: var(--white);
    padding: 40px;
    width: 45%;
}
.benefits-panel h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.benefits-tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.benefit-icon {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.benefit-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}
.benefit-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.benefit-content p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Signup Form Styles */
.signup-container {
    width: 55%;
    padding: 40px;
}
.form-title {
    margin-top: -5px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    text-align: left;
}
.form-subtitle {
    color: var(--dark-gray);
    font-size: 0.875rem;
    margin-bottom: 5px;
    text-align: left;
}
#signupForm {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--black);
}
.input-wrapper {
    position: relative;
}
.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--gray-400);
}
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 0.875rem;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
}
.input-hint {
    font-size: 0.75rem;
    color: var(--dark-gray);
}

.autocomplete-list {
  list-style: none;
  padding: 0px 16px;
  margin: 0;
  border-top: none; 
  max-height: 150px;
  overflow-y: auto;
  background-color: #f9f9f9;
  position: absolute;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  width: 100%;
  z-index: 1000;
}

.autocomplete-list li {
  padding: 8px 10px;
  cursor: pointer;
}

.autocomplete-list li:hover {
  background: #f2f2f2;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 4px;
}
.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--primary);
}
.checkbox-group label {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--dark-gray);
}
.checkbox-group a {
    color: var(--primary);
    text-decoration: none;
}
.checkbox-group a:hover {
    text-decoration: underline;
}
.create-account-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 10px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    margin-top: 8px;
}
.create-account-btn:hover {
    background-color: rgba(224, 94, 26, 0.9);
}
.login-link {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--dark-gray);
    margin-bottom: -15px;
}
.login-link .link{
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.login-link .link:hover{
    text-decoration: underline;
}
/* Responsive styles */
@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
        max-width: 600px;
    }
    
    .benefits-panel,
    .signup-container {
        width: 100%;
    }
    
    .benefits-panel {
        padding: 30px;
    }
    
    .testimonial {
        margin-top: 30px;
    }
}
/* Hide the blue benefits panel on smaller screens */
@media (max-width: 768px) {
  .benefits-panel { display: none !important; }
  .content-wrapper {
    max-width: 560px;
    border-radius: 1rem;
  }
}
@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
    
    .auth-buttons .btn-login {
        display: none;
    }
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -0.25rem;
}

.footer-logo-icon i {
  color: var(--secondary);
  font-size: 2rem;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  max-width: 20rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--white);
}

.footer-column h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--secondary);
}

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

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--white);
}

.contactinfo li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.copyright {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .copyright {
    margin-bottom: 0;
  }
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  transition: color 0.3s;
}

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

@media (min-width: 1024px) {
  .navbar nav {
    max-width: 1500px;
    margin: 0 auto;
  }
}

/* Hide desktop nav items below 1210px so only the hamburger remains */
@media (max-width: 1209px) {
  .navbar .desktop-menu,
  .navbar .desktop-buttons,
  .navbar .auth-buttons,
  .navbar .dropdown,
  .navbar .btn-primary {
    display: none !important;
  }
  /* Ensure the hamburger is visible below this breakpoint */
  .navbar .mobile-toggle {
    display: flex !important;
  }
}