@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Color Palette - Dark Theme */
:root {
  --main-dark: #0f0f14;
  --accent-gold: #ffd700;
  --accent-dark-gold: #d4af37;
  --text-dark: #e8e8e8;
  --text-light: #ffffff;
  --background-light: #1a1a24;
  --green-success: #4ade80;
  --box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* General styles */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--main-dark);
  color: var(--text-dark);
}

main {
  padding-bottom: 50px;
}

section {
  padding: 50px 20px;
  text-align: center;
}

h1, h2, h3 {
  color: var(--text-light);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 20px;
  color: inherit;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 20px;
  color: inherit;
  text-shadow: 
      0 0 5px rgba(255, 217, 0, 0.202),
      0 0 10px rgba(255, 217, 0, 0.183),
      0 0 20px rgba(255, 215, 0, 0.4);
}

.h1extra {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 20px;
  animation: glow 1.5s ease-in-out infinite alternate;
  color: inherit;
  text-shadow: 
      0 0 5px rgba(255, 217, 0, 0.202),
      0 0 10px rgba(255, 217, 0, 0.183),
      0 0 20px rgba(255, 215, 0, 0.4);
}

@keyframes glow {
  from {
      text-shadow: 
          0 0 5px rgba(255, 215, 0, 0.6),
          0 0 10px rgba(255, 215, 0, 0.5),
          0 0 20px rgba(255, 215, 0, 0.4);
  }
  to {
      text-shadow: 
          0 0 10px rgba(255, 215, 0, 1),
          0 0 20px rgba(255, 215, 0, 0.9),
          0 0 30px rgba(255, 215, 0, 0.8);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(26, 26, 36, 0.95);
  backdrop-filter: saturate(130%) blur(8px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

* {
  box-sizing: border-box;
}

*, ::after, ::before {
  box-sizing: border-box;
}

header h1 {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--text-light);
}

header nav a {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: var(--accent-gold);
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(15, 15, 20, 0) 0%, rgba(15, 15, 20, 0.341) 40%, rgba(15, 15, 20, .85) 100%), url(../black-golden-shimmer.jpg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h2 {
  color: var(--text-light);
  font-size: clamp(2.5rem, 6vw, 3rem);
  margin-bottom: 10px;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #b0b0b0;
}

.main-nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 20px;
}

.cta-button {
  background-color: var(--accent-gold);
  color: var(--main-dark);
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

.cta-button:hover {
  background-color: var(--accent-dark-gold);
}

.extrah2 {
  color: var(--text-light);
}

/* How It Works Section */
.how-it-works {
  background: linear-gradient(
    180deg,
    var(--main-dark) 10%,
    rgba(26, 26, 36, 0.9) 70%,
    var(--background-light) 100%
  );
}

.steps-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.step {
  padding: 0px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.spacer {
  height: 200px;
}

.step-icon {
  background-color: var(--accent-gold);
  color: var(--main-dark);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 20px;
  align-self: center;
}

/* Car List Section */
.car-list {
  background-color: var(--background-light);
}

.car-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.car-card {
  background: linear-gradient(135deg, #1a1a24 0%, #141419 100%);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.15);
  max-width: 350px;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.car-card:hover {
  transform: translateY(-10px);
}

.car-card h3 {
  margin-top: 15px;
  color: var(--text-light);
}

.car-card .price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.discount-badges {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.discount-badge {
  display: inline-block;
  background: linear-gradient(135deg, #1d2132 0%, #261f2d 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
  letter-spacing: 0.3px;
}

.car-card .btn {
  margin-top: 5px;
  margin-bottom: 20px;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
}

/* Calculator Section */
.calculator {
  background-color: var(--background-light);
}

.calc-form {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-light);
}

.calc-form input, .calc-form select {
  padding: 10px;
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 50px;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
}

.calc-results {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  font-size: 1.2rem;
}

.result-box {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 25px;
  border-radius: 10px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(255, 215, 0, 0.1);
  color: var(--text-light);
}

.result-box.total {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #d4af37 100%);
  color: var(--main-dark);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.result-box .result-value {
  font-weight: bold;
  font-size: 1.5rem;
  margin-top: 5px;
}

/* FAQ Section */
.faq-item {
  max-width: 90%;
  margin: 0 auto 20px;
  text-align: left;
}

.faq-item h3 {
  margin-bottom: 5px;
  color: var(--accent-dark-gold)
}

/* Contact Section */
#contact address {
  font-style: normal;
  line-height: 1.6;
  color: var(--text-dark);
}

#contact a {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: rgba(26, 26, 36, 0.95);
  color: var(--text-light);
  padding: 20px;
  text-align: center;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
}

.modal-dialog {
  background: linear-gradient(135deg, #1a1a24 0%, #141419 100%);
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: slideIn 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.modal-dialog.modal-lg {
  max-width: 900px;
}

.modal-content {
  position: relative;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  cursor: pointer;
  color: #b0b0b0;
}

.modal h3 {
  margin-top: 0;
  color: var(--text-light);
}

.modal form .form-group {
  margin-bottom: 20px;
}

.modal form label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
  color: var(--text-light);
}

.modal form input[type="text"],
.modal form input[type="tel"],
.modal form input[type="email"],
.modal form input[type="date"],
.modal form input[type="time"],
.modal form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 5px;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.inline-label {
    font-weight: normal;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
}

#reservationForm button {
  width: 100%;
  padding: 15px;
  background-color: var(--accent-gold);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  color: var(--main-dark);
  transition: background-color 0.3s ease;
}

#reservationForm button:hover {
  background-color: var(--accent-dark-gold);
}

#reservationForm button:disabled {
  background-color: #555;
  cursor: not-allowed;
}

.alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  border-radius: 5px;
  color: var(--text-light);
  font-weight: bold;
  z-index: 10000;
  display: none;
}

.alert.success {
  background-color: var(--green-success);
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
}

#preloader img {
  max-width: 220px;
  animation: hardpulse 1s infinite ease-in-out;
}

@keyframes hardpulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.06); 
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

img {
  overflow-clip-margin: content-box;
  overflow: clip;
}

.alert.error {
  background-color: #dc3545;
}

/* Flatpickr customizations */
.flatpickr-calendar {
    box-shadow: var(--box-shadow);
    background-color: var(--background-light);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange {
    background: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
    color: var(--main-dark) !important;
}

.flatpickr-day.inRange {
    background: var(--accent-dark-gold) !important;
    border-color: var(--accent-dark-gold) !important;
    color: var(--main-dark) !important;
}

.flatpickr-day {
    color: var(--text-light) !important;
}

.flatpickr-months .flatpickr-month {
    color: var(--text-light) !important;
}

.flatpickr-weekdays {
    color: var(--text-dark)}
