/* Booking Container */
.bas-booking-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.bas-booking-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 40px;
}

/* Step Indicator */
.bas-step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

.bas-step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.bas-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.bas-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.bas-step.active .bas-step-number,
.bas-step.completed .bas-step-number {
    background: #2271b1;
    color: #fff;
}

.bas-step-label {
    font-size: 13px;
    color: #666;
    text-align: center;
}

.bas-step.active .bas-step-label {
    color: #2271b1;
    font-weight: 600;
}

/* Form Steps */
.bas-form-step {
    display: none;
}

.bas-form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bas-form-step h2 {
    margin-bottom: 30px;
    color: #1d2327;
    font-size: 28px;
}

/* Services Grid */
.bas-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.bas-service-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
}

.bas-service-card:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.15);
    transform: translateY(-2px);
}

.bas-service-card.selected {
    border-color: #2271b1;
    background: #f0f6fc;
}

.bas-service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.bas-service-header h3 {
    margin: 0;
    font-size: 20px;
    color: #1d2327;
}

.bas-service-price {
    font-size: 22px;
    font-weight: 700;
    color: #2271b1;
}

.bas-service-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.bas-service-meta {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.bas-service-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.bas-service-duration svg {
    color: #2271b1;
}

/* DateTime Container */
.bas-datetime-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.bas-calendar-section h3,
.bas-time-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #1d2327;
}

/* Time Slots */
.bas-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.bas-time-slot {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    font-weight: 500;
}

.bas-time-slot:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.bas-time-slot.selected {
    border-color: #2271b1;
    background: #2271b1;
    color: #fff;
}

.bas-time-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bas-select-date-first {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    padding: 40px;
}

/* Form Groups */
.bas-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.bas-form-group {
    margin-bottom: 20px;
}

.bas-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
}

.bas-form-group input,
.bas-form-group textarea,
.bas-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.bas-form-group input:focus,
.bas-form-group textarea:focus,
.bas-form-group select:focus {
    outline: none;
    border-color: #2271b1;
}

/* Booking Summary */
.bas-booking-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.bas-summary-section {
    margin-bottom: 30px;
}

.bas-summary-section:last-of-type {
    margin-bottom: 20px;
}

.bas-summary-section h3 {
    margin-bottom: 16px;
    font-size: 18px;
    color: #1d2327;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.bas-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.bas-summary-item:last-child {
    border-bottom: none;
}

.bas-summary-label {
    color: #666;
    font-weight: 500;
}

.bas-summary-value {
    color: #1d2327;
    font-weight: 600;
}

.bas-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 2px solid #2271b1;
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
}

.bas-total-price {
    color: #2271b1;
}

/* Form Actions */
.bas-form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* Buttons */
.bas-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bas-btn-primary,
.bas-btn:not(.bas-btn-secondary) {
    background: #2271b1;
    color: #fff;
}

.bas-btn-primary:hover,
.bas-btn:not(.bas-btn-secondary):hover {
    background: #135e96;
}

.bas-btn-secondary {
    background: #f0f0f1;
    color: #1d2327;
}

.bas-btn-secondary:hover {
    background: #dcdcde;
}

.bas-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bas-select-service {
    width: 100%;
}

/* Success Message */
.bas-success-message {
    text-align: center;
    padding: 60px 20px;
}

.bas-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #00a32a;
    color: #fff;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.bas-success-message h2 {
    color: #00a32a;
    margin-bottom: 16px;
}

.bas-success-message p {
    color: #666;
    font-size: 16px;
    margin-bottom: 32px;
}

/* Loading Spinner */
.bas-loading {
    position: relative;
    pointer-events: none;
}

.bas-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Payment Section */
.bas-payment-section {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

.bas-payment-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1d2327;
}

.bas-payment-section p {
    margin-bottom: 20px;
    color: #666;
}

.bas-card-element {
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 15px;
}

.bas-card-element.StripeElement--focus {
    border-color: #2271b1;
}

.bas-card-element.StripeElement--invalid {
    border-color: #d63638;
}

.bas-card-errors {
    color: #d63638;
    font-size: 14px;
    margin-top: 10px;
    min-height: 20px;
}

.bas-test-mode-notice {
    background: #fff3cd;
    border: 1px solid #f0c33c;
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
}

.bas-test-mode-notice p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

#bas-submit-payment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bas-processing {
    position: relative;
    pointer-events: none;
}

.bas-processing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Button Processing State */
.bas-btn.bas-processing {
    position: relative;
    color: transparent !important;
}

.bas-btn.bas-processing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Disabled button states */
#bas-submit-payment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#bas-proceed-payment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}