/* ==========================*/
/* van form text area*/
/* ==========================*/

input,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 16px 18px;
  font: inherit;
  font-weight: 700;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

/* ==========================*/
/* van form pop screen*/
/* ==========================*/

.popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
  z-index: 9999;
}

.popup.show {
  display: flex;
}

.popup-box {
  width: min(440px, 100%);
  padding: 34px;
  border-radius: 28px;
  background: #ffffff;
  color: var(--navy);
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

.popup-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dcfce7;
  color: #15803d;
  font-size: 34px;
  font-weight: 900;
}

.popup-box h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.popup-box p {
  color: var(--muted);
  line-height: 1.6;
}

.popup-box button {
  margin-top: 18px;
  padding: 13px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  font-weight: 900;
  cursor: pointer;
}

/* ==========================*/
/* van form*/
/* ==========================*/

.vehicle-field {
  background: #f5f5f5;
  color: #444;
  border: 1px solid #ddd;
  opacity: 0.9;
  font-weight: 600;
  cursor: default;
}
.vehicle-field:focus,
.vehicle-field:active {
  outline: none;
  border-color: #d1d5db;
  box-shadow: none;
}

.full {
  grid-column: 1 / -1;
}

.vehicle-card {
  /* min-height: 120px; */
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 24px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 18px;
}

.vehicle-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.vehicle-card strong,
.vehicle-card span,
.vehicle-card small {
  display: block;
}

.full-width {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 20px;
}

.commercial-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
}

.commercial-label {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.commercial-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.commercial-options label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}

.commercial-options input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #f97316;
  cursor: pointer;
}
.commercial-options input[type="radio"]:focus {
  outline: none;
  box-shadow: none;
}

.hidden {
  display: none;
}

.field-error {
  display: none;
  color: #b91c1c;
  background: #b91c1c;
  color: white;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 13px;
  margin-top: 6px;
  width: fit-content;
}

.error input,
.error textarea {
  border-color: #dc2626 !important;
  background: #fff1f2;
}

.error .field-error {
  display: inline-block;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero,
  .fleet-section,
  .booking-section {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .booking-form {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.booking-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  color: white;

  /* background: radial-gradient(
      circle at top right,
      rgba(245, 158, 11, 0.18),
      transparent 30%
    ),
    linear-gradient(135deg, #0f172a, #111827);
 */

  /* test */

  background: linear-gradient(
      90deg,
      rgba(5, 35, 70, 0.97) 0%,
      rgba(5, 35, 70, 0.85) 28%,
      rgba(5, 35, 70, 0.45) 48%,
      rgba(5, 35, 70, 0.05) 75%
    ),
    linear-gradient(135deg, #0f172a, #111827);

  /* test */
}

.contact-box {
  margin-top: 28px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.contact-box div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  margin: 8px 0;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 30px;
  border-radius: 28px;
  background: white;
  color: var(--navy);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.form-title,
.full,
.wide,
.form-status {
  grid-column: 1 / -1;
}

.form-title h3 {
  font-size: 30px;
  margin: 0 0 5px;
}

.form-title p,
.form-status {
  color: var(--muted);
  font-weight: 700;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 900;
  color: #334155;
}

/* ============mobiel screen */
/* MOBILE RESPONSIVE BOOKING FORM */

@media (max-width: 600px) {
  .booking-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 30px 5%;
    gap: 25px;
    width: 100%;
    box-sizing: border-box;
  }

  .booking-section > * {
    min-width: 0;
  }

  .booking-form {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    padding: 20px;
    gap: 18px;
    box-sizing: border-box;
  }

  .booking-form > * {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .booking-form input:not([type="radio"]),
  .booking-form textarea,
  .booking-form select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
    box-sizing: border-box;
  }

  .contact-box {
    width: 100%;
    padding: 18px;
    box-sizing: border-box;
  }

  .contact-box div {
    grid-template-columns: 1fr;
    gap: 5px;
    overflow-wrap: anywhere;
  }

  .commercial-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .commercial-options {
    width: 100%;
    min-width: 0;
  }

  .commercial-options label {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .commercial-options input[type="radio"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .booking-form button {
    width: 100%;
  }

  .booking-section {
    font-family: Arial, Helvetica, sans-serif;
  }
}

/* ======== TAPLETS*/
@media (min-width: 601px) and (max-width: 1024px) {
  #booking.booking-section {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 5%;
    gap: 30px;
  }

  #booking .booking-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #booking .booking-form > * {
    min-width: 0;
  }
}
