/* Color Palette - Dark Theme */
:root {
  --main-dark: #0f0f14;
  --accent-gold: #ffd700;
  --accent-light-gold: #ffed4e;
  --text-dark: #e8e8e8;
  --text-light: #ffffff;
  --background-light: #1a1a24;
  --green-success: #4ade80;
}

/* General styles */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, 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);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Header */
header {
  background-color: rgba(26, 26, 36, 0.95);
  color: var(--text-light);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-light);
}

header nav a {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
}

/* Hero Section */
.hero {
  background-image: url('img/car-hero.jpg');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  padding: 100px 20px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 20, 0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h2 {
  color: var(--text-light);
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  color: #b0b0b0;
}

.cta-button {
  background-color: var(--accent-gold);
  color: var(--main-dark);
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  margin-top: 20px;
}

/* How It Works Section */
.steps-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.step {
  max-width: 300px;
}

.step img {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
}

/* 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 img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.car-card h3 {
  margin-top: 15px;
  color: var(--text-light);
}

.car-card .price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-gold);
}

.car-card button {
  margin-top: 15px;
  margin-bottom: 20px;
}

/* 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: bold;
  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: 5px;
  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;
  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: 800px;
  margin: 0 auto 20px;
  text-align: left;
}

.faq-item h3 {
  margin-bottom: 5px;
  color: var(--text-light);
}

/* 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;
  border: 1px solid rgba(255, 215, 0, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.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: bold;
  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: 5px;
  font-weight: bold;
  cursor: pointer;
  color: var(--main-dark);
}

#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);
}

.alert.error {
  background-color: #dc3545;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
    text-align: center;
  }

  header nav {
    margin-top: 10px;
  }

  header nav a {
    margin: 0 5px;
    font-size: 0.9rem;
  }

  .hero-content h2 {
    font-size: 2rem;
  }
}