/* Quote layout wrapper */
.quote-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  margin: 40px auto;
  gap: 32px;
  padding: 0 20px;
}

/* Image column */
.quote-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-image img {
  width: 100%;
  max-width: 420px;      /* perfect for vertical photos */
  height: 100%;
  max-height: 640px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

@media (max-width: 900px) {
  .quote-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .quote-image img {
    max-height: 320px;
    width: 100%;
  }
}

/* Honeypot anti-spam field */
.hp-field {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

/* Form elements */
form input,
form select,
form textarea {
  width: 100%;
  padding: clamp(6px, 1.5vw, 10px);
  margin-bottom: clamp(6px, 1vw, 8px);
  border: 1.5px solid #d6e9ff;
  border-radius: 8px;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  box-sizing: border-box;
  height: clamp(32px, 3vw, 38px);
}

form textarea {
  height: clamp(45px, 4vw, 55px); /* slightly taller for notes */
}

/* Focus effect */
form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: #99bbfa;
  box-shadow: 0 0 4px rgba(153, 187, 250, 0.5);
}

/* Two-column rows */
.row {
  display: flex;
  gap: clamp(8px, 1vw, 12px);
  margin-bottom: clamp(6px, 1vw, 8px);
}

.row input {
  flex: 1;
  min-width: 0;
}

/* Trip options */
#tripOptions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1vw, 15px);
  margin-bottom: 6px;
}

#tripOptions label {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  color: #1c3d5a;
}

/* Add stop button */
#addStop {
  background: #99bbfa;
  color: #fff;
  border: none;
  padding: clamp(5px, 1vw, 8px) clamp(10px, 2vw, 12px);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: clamp(6px, 1vw, 8px);
}

#addStop:hover {
  background: #7aa8f0;
}

/* Stop rows */
.stop-row {
  display: flex;
  gap: clamp(6px, 1vw, 8px);
  margin-bottom: clamp(6px, 1vw, 8px);
}

.stop-row button {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 0 clamp(8px, 2vw, 12px);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.stop-row button:hover {
  background: #e04848;
}

/* Labels */
label {
  font-weight: bold;
  color: #1c3d5a;
  display: block;
  margin-bottom: 4px;
  margin-top: 6px;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
}

/* Consent box */
.consent-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f7f9fc;
  border: 1px solid #e3e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Checkbox row */
.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #3e4350;
}

.consent-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #99bbfa;
  cursor: pointer;
}

.consent-checkbox span {
  display: block;
}

/* Links */
.consent-checkbox a {
  color: #5b82e5;
  text-decoration: underline;
}

.consent-checkbox a:hover {
  text-decoration: none;
}

/* reCAPTCHA */
.recaptcha-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #777;
}

.recaptcha-note img {
  height: 20px;
  opacity: 0.85;
}




/* Submit button */
form button[type="submit"] {
  width: 100%;
  background: #1c3d5a;
  color: #fff;
  font-size: clamp(0.95rem, 1.5vw, 1rem);
  padding: clamp(8px, 1.5vw, 12px);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 6px;
}

form button[type="submit"]:hover {
  background: #39507a;
}

/* Ensure form layout */
form {
  display: flex;
  flex-direction: column;
}

/* Pickup/Dropoff side-by-side */
.date-location-row {
  display: flex;
  gap: clamp(12px, 1vw, 20px);
  margin-bottom: clamp(6px, 1vw, 8px);
}

.date-location-row .col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.date-location-row label {
  margin-top: 0;
  margin-bottom: 4px;
  font-weight: bold;
  font-size: 0.9rem;
  color: #1c3d5a;
}

.date-location-row input {
  height: clamp(32px, 3vw, 38px);
  margin-bottom: clamp(6px, 1vw, 8px);
}

.hidden {
  display: none !important;
}



/* Responsive for mobile */
@media (max-width: 800px) {
  .quote-container {
    width: 90%;
    padding: 10px 12px;      /* less padding to reduce height */
    margin: 10px auto;
  }

  .row,
  .date-location-row {
    flex-direction: column;
    gap: 6px;               /* smaller gap between inputs */
  }

  form input,
  form select,
  form textarea {
    font-size: 0.85rem;
    padding: 6px 8px;       /* smaller padding */
    height: auto;
  }

  form textarea {
    height: 40px;            /* slightly shorter notes box */
  }

  #addStop {
    padding: 5px 8px;
  }

  .stop-row {
    gap: 6px;
  }

  .stop-row button {
    padding: 0 8px;         /* smaller stop buttons */
  }

  label {
    margin-bottom: 2px;
    margin-top: 4px;
    font-size: 0.85rem;
  }

  .date-location-row label {
    font-size: 0.85rem;
  }

  .date-location-row input {
    height: 30px;            /* shorter input boxes */
  }

  /* Consent box */
  .consent-box {
    padding: 10px 12px; /* smaller padding */
    gap: 6px;           /* tighter spacing */
  }

  /* Consent checkbox text */
  .consent-checkbox {
    flex-direction: column;  /* stack checkbox and text if needed */
    font-size: 0.8rem;       /* smaller font on mobile */
    gap: 4px;
  }

  .consent-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 0;           /* align better vertically */
  }

  .recaptcha-note {
    font-size: 0.65rem;
    gap: 4px;
  }

  .recaptcha-note img {
    height: 16px;
  }

  form button[type="submit"] {
    font-size: 0.9rem;
    padding: 8px;
  }
}
