/**
 * Stripe Elements custom styling - Modern Design
 */

#booking {
  padding: 100px 0;
  background: #f8f8f8;
}

/* Styling for the payment form */
#payment-form {
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

/* Create a card-like container for the payment section */
.payment-card {
  background: linear-gradient(135deg, #9ad133 0%, #86ad12 100%);
  padding: 25px;
  border-radius: 12px;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(108, 114, 255, 0.3);
}

.payment-card h3 {
  margin-top: 0;
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 20px;
}

/* Style the Stripe Element container */
.card-element-container {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 3px;
  transition: all 0.3s ease;
}

/* Style the Stripe Element */
#card-element {
  background-color: white;
  padding: 16px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* Style for form input fields to match Stripe Elements */
.form-control {
  height: 50px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: none;
  padding: 10px 15px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #87ac0a;
  box-shadow: 0 0 0 3px rgba(108, 114, 255, 0.2);
}

textarea.form-control {
  height: auto;
}

label {
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
  color: #444;
}

/* Style for the payment amount */
#payment-amount {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

/* Style for the payment button */
#submit-button {
  background-color: #66a508;
  background-image: linear-gradient(to right, #91c315 0%, #9abb08 100%);
  margin-top: 25px;
  padding: 14px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 8px 15px rgba(108, 114, 255, 0.3);
  transition: all 0.3s ease;
  border: none;
}

#submit-button:hover {
  background-image: linear-gradient(to right, #94a107 0%, #80a809 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(108, 114, 255, 0.4);
}

#submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Style for payment success message */
#payment-success {
  padding: 30px;
  margin-top: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
}

#payment-success h4 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #28a745;
}

/* Style for error messages */
#card-errors {
  color: #fff;
  font-size: 14px;
  margin-top: 10px;
  min-height: 20px;
  background-color: rgba(220, 53, 69, 0.8);
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: none;
}

#card-errors:not(:empty) {
  display: block;
}

/* Loading spinner styles for payment processing */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Credit card brands indicators */
.card-brands {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.card-brand {
  opacity: 0.7;
  transition: all 0.3s ease;
}

.card-brand.active {
  opacity: 1;
}

/* Form sections */
.form-section {
  margin-bottom: 30px;
}

.form-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #32325d;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #payment-form {
    padding: 25px;
  }
  
  .payment-card {
    padding: 20px;
  }
} 