/* Enhanced Car Booking Form Styles */

.booking-form-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
}

.booking-form-container {
  background: #fff;
  border-radius: 50px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin: 20px 0;
  border: 1px solid #e9ecef;
}

.section-title {
  color: #dc3545;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: right;
  font-size: 24px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #dc3545, #ff6b6b);
  border-radius: 2px;
}

.field-container {
  margin-bottom: 25px;
  position: relative;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
  text-align: right;
  font-size: 14px;
}

.form-control {
  border-radius: 50px;
  border: 2px solid #e9ecef;
  padding: 15px 20px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  text-align: right;
}

.form-control:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
  background-color: #fff;
  outline: none;
}

.form-control::placeholder {
  color: #6c757d;
  text-align: right;
}

.price-display {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  padding: 20px;
  border-radius: 50px;
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
  position: relative;
  overflow: hidden;
}

.price-display::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.date-time-inputs {
  display: flex;
  gap: 10px;
  align-items: center;
  background-color: #f8f9fa;
  border-radius: 50px;
  padding: 5px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.date-time-inputs:focus-within {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.date-time-inputs input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 15px;
  border-radius: 25px;
  text-align: center;
  font-size: 14px;
}

.date-time-inputs input:focus {
  outline: none;
  background-color: #fff;
}

.btn {
  border-radius: 50px;
  padding: 15px 30px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.btn-outline-danger {
  border: 2px solid #dc3545;
  color: #dc3545;
  background: transparent;
}

.btn-outline-danger:hover {
  background: #dc3545;
  color: white;
  transform: translateY(-2px);
}

.btn-outline-info {
  border: 2px solid #17a2b8;
  color: #17a2b8;
  background: transparent;
}

.btn-outline-info:hover {
  background: #17a2b8;
  color: white;
  transform: translateY(-2px);
}

.alert {
  border-radius: 50px;
  border: none;
  padding: 15px 20px;
  margin-bottom: 20px;
}

.alert-danger {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
  color: #dc3545;
  border-left: 4px solid #dc3545;
}

.alert-warning {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
  color: #856404;
  border-left: 4px solid #ffc107;
}

.alert-success {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-info {
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(23, 162, 184, 0.05) 100%);
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

.form-check {
  margin-bottom: 15px;
}

.form-check-input {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #dc3545;
}

.form-check-input:checked {
  background-color: #dc3545;
  border-color: #dc3545;
}

.form-check-label {
  margin-right: 10px;
  font-weight: 500;
  color: #333;
}

.price-summary {
  background: #f8f9fa;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #e9ecef;
}

.price-summary .d-flex {
  margin-bottom: 10px;
  font-size: 14px;
}

.price-summary hr {
  border-color: #dee2e6;
  margin: 15px 0;
}

.car-image-container img {
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.car-image-container img:hover {
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .booking-form-container {
    padding: 20px;
    border-radius: 20px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .price-display {
    font-size: 18px;
    padding: 15px;
  }
  
  .date-time-inputs {
    flex-direction: column;
    gap: 5px;
  }
  
  .date-time-inputs input {
    border-radius: 15px;
  }
  
  .col-md-2-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .btn {
    padding: 12px 25px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .booking-form-container {
    padding: 15px;
    margin: 10px 0;
  }
  
  .form-control {
    padding: 12px 15px;
    font-size: 13px;
  }
  
  .price-display {
    font-size: 16px;
    padding: 12px;
  }
}

/* Animation for form elements */
.field-container {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation for multiple elements */
.field-container:nth-child(1) { animation-delay: 0.1s; }
.field-container:nth-child(2) { animation-delay: 0.2s; }
.field-container:nth-child(3) { animation-delay: 0.3s; }
.field-container:nth-child(4) { animation-delay: 0.4s; }
.field-container:nth-child(5) { animation-delay: 0.5s; }

/* Loading state for buttons */
.btn-loading {
  display: none;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loading {
  display: inline-block;
}

/* Custom select styling */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 15px center;
  background-size: 16px;
  padding-left: 45px;
}

/* Focus states */
.form-control:focus,
.btn:focus,
.form-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Hover effects */
.field-container:hover .form-control {
  border-color: #dc3545;
  background-color: #fff;
}

/* Success state */
.form-control.is-valid {
  border-color: #28a745;
  background-color: rgba(40, 167, 69, 0.1);
}

/* Error state */
.form-control.is-invalid {
  border-color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
}

/* Custom radio buttons */
.radio-options {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
}

.method-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.method-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #dc3545;
}

.method-item label {
  margin: 0;
  font-weight: 500;
  color: #333;
  cursor: pointer;
}