@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  margin: 0;
  padding: 20px;
  background: #0a0a0a;
  color: #f5f3ef;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  background: #111;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 0;
  padding: 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

h1,
h2 {
  font-family: 'Cormorant Garamond', serif;
  color: #c9a84c;
  font-weight: 300;
  margin-top: 0;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

h1 {
  text-align: center;
  font-size: 2rem;
  letter-spacing: 0.08em;
}

h2 {
  font-size: 1.4rem;
}

label {
  display: block;
  margin-top: 14px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a84c;
}

input,
select,
textarea,
button {
  padding: 10px 14px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  border-radius: 0;
  font-size: 0.9rem;
  font-family: 'Jost', sans-serif;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.04);
  color: #f5f3ef;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #c9a84c;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.1);
}

select option {
  background: #1a1a1a;
  color: #f5f3ef;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

#map {
  height: 250px;
  margin-top: 12px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 0;
  overflow: hidden;
}

.result,
.section {
  background: #161616;
  padding: 20px;
  margin-top: 16px;
  border-radius: 0;
  border: 1px solid rgba(201, 168, 76, 0.16);
}

.hidden {
  display: none !important;
}

.result div {
  margin-bottom: 10px;
}

.result strong,
#bookingSummary strong {
  color: #e8c97a;
}

.total {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.15rem;
  margin-top: 14px;
  color: #c9a84c;
  padding: 12px 16px;
  background: rgba(201, 168, 76, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 0;
  letter-spacing: 0.05em;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 8px;
  font-size: 0.88rem;
}

th,
td {
  border: 1px solid rgba(201, 168, 76, 0.15);
  padding: 10px 12px;
  text-align: left;
}

th {
  background: #1a1a1a;
  color: #c9a84c;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.error {
  border: 1px solid #d9534f !important;
}

button {
  cursor: pointer;
  background: #c9a84c;
  color: #0a0a0a;
  border: none;
  border-radius: 0;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: none;
  padding: 12px 16px;
}

button:hover {
  background: #e8c97a;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

#summarySection button[onclick="goBackToBooking()"] {
  background: transparent;
  color: #c9a84c;
  border: 1px solid rgba(201, 168, 76, 0.4);
  box-shadow: none;
  margin-bottom: 10px;
}

#summarySection button[onclick="goBackToBooking()"]:hover {
  background: rgba(201, 168, 76, 0.08);
}

#bookingSummary {
  background: rgba(201, 168, 76, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 0;
  padding: 16px;
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

#bookingSummary p {
  margin: 8px 0;
}

input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  accent-color: #c9a84c;
}

label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #f5f3ef;
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: none;
}

#summarySection button,
#bookingForm button {
  margin-top: 16px;
}

#resultTollRow,
#tollTotalRow {
  transition: all 0.2s ease;
}

/* Gold divider line */
.section h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: #c9a84c;
  margin-top: 10px;
}

@media (max-width: 640px) {
  body {
    padding: 12px;
  }

  .container {
    padding: 20px;
  }

  #map {
    height: 200px;
  }

  h1 {
    font-size: 1.6rem;
  }
}
