.modalTestRide-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  max-width: 100%;
  padding: 10px;
}

.modalTestRide-title {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
}

.modalTestRide-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}

.modalTestRide-group {
  margin-bottom: 24px;
}

.modalTestRide-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  color: #444;
}

.modalTestRide-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.modalTestRide-input:focus:invalid {
    border-color: #e74c3c;
}

.modalTestRide-input:not(:placeholder-shown):invalid {
    border-color: #e74c3c !important;
    background-color: #fff8f8;
}

/* Hide hints by default */
.modalTestRide-hint {
    display: none;
    font-size: 0.75rem;
    color: #e74c3c; /* Red for errors */
    margin-top: 4px;
    margin-left: 2px;
}

/* Only show the hint when the input is invalid AND the user has started typing */
.modalTestRide-input:not(:placeholder-shown):invalid + .modalTestRide-hint {
    display: block;
}

.modalTestRide-error-msg {
    color: #e74c3c;
    font-size: 0.75rem;
    margin-top: -10px;
    margin-bottom: 10px;
    display: none;
}

.modalTestRide-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.modalTestRide-slotBtn {
  font-size: 0.85rem;
  padding: 12px 2px;
  background: #ffffff;
  border: 2px solid #dddddd;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
  color: #333333;
  white-space: nowrap;
}

@media (max-width: 350px) {
  .modalTestRide-slots {
    grid-template-columns: 1fr; /* Stack buttons on very narrow screens */
  }
}

/* Hover state for better desktop UX */
.modalTestRide-slotBtn:hover {
  border-color: #bbbbbb;
  background-color: #f9f9f9;
}

/* The Highlighted / Selected State */
.modalTestRide-slotBtn.isActive {
  background-color: #222222; /* High contrast black/dark grey */
  color: #ffffff;            /* White text */
  border-color: #222222;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transform: translateY(-1px); /* Slight lift effect */
}

.modalTestRide-submitBtn {
  width: 100%;
  padding: 15px;
  background: rgba(0, 103, 56, 1);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

.modalTestRide-submitBtn:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.modalTestRide-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.modalTestRide-checkbox-group {
    margin: 15px 0;
    text-align: left;
}

.modalTestRide-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: #444;
    cursor: pointer;
}

.modalTestRide-checkbox-label input {
    margin-top: 3px;
}

.modalTestRide-selection-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #333;
    text-align: center;
}

.modalTestRide-selection-summary strong {
    color: #000;
}

.modalTestRide-disclosure {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.modalTestRide-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}
.modalTestRide-form-row .modalTestRide-input-group {
    flex: 1;
}