/* Booking Page Styles */
.booking-page {
    padding: 40px 0;
    min-height: 100vh;
}

.booking-header {
    text-align: center;
    margin-bottom: 3rem;
}

.booking-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.tour-name {
    font-size: 1.5rem;
    color: #2e4573;
    margin-bottom: 0.25rem;
}

.distillery-name {
    color: #666;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.booking-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2e4573;
}

.help-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.booking-summary {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
}

.booking-summary h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2e4573;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #2e4573;
}

.booking-login-notice {
    background: #e8ecf4;
    color: #2e4573;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.1rem;
}

/* Stripe payment form */
.payment-form-wrap {
    max-width: 500px;
    margin: 2rem 0;
}

.payment-form-wrap .form-section {
    margin-bottom: 0;
}

#payment-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#payment-form .form-group {
    margin-bottom: 1.5rem;
}

#payment-form .form-group:last-of-type {
    margin-bottom: 1.75rem;
}

#payment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 1rem;
}

#card-name {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#card-name:focus {
    outline: none;
    border-color: #2e4573;
}

#payment-form .stripe-card-wrapper {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    min-height: 48px;
    transition: border-color 0.2s;
}

#payment-form .stripe-card-wrapper.focus {
    border-color: #2e4573;
}

#payment-form .stripe-card-wrapper.invalid {
    border-color: #dc3545;
}

#payment-form #card-element {
    width: 100%;
}

#payment-form #card-element iframe {
    width: 100% !important;
}

#card-errors {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #dc3545;
    min-height: 1.25rem;
}

#card-button {
    width: 100%;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: #2e4573;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

#card-button:hover:not(:disabled) {
    background: #1e3558;
}

#card-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
    
    #payment-form {
        padding: 1.5rem;
    }
}
