/* ============================================================= */
/*  BCM Booking Calendar – Professional Redesign (2025)         */
/* ============================================================= */

#bcm-booking-container {
    max-width: 720px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}
.bcm-submit-btn:disabled {
    background-color: #a0a0a0;
    color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
}

.bcm-submit-btn:disabled:hover {
    background-color: #a0a0a0;
}

#bcm-booking-form {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* ============================================================= */
/*  Steps & Navigation                                           */
/* ============================================================= */
.bcm-form-step {
    padding: 20px;
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bcm-form-step.active {
    display: block;
}

.bcm-form-step h3 {
    margin: 0 0 32px;
    font-size: 1.875rem;
    color: #111827;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 16px;
}

.bcm-form-step h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

/* ============================================================= */
/*  Options & Radio Buttons                                      */
/* ============================================================= */
.bcm-option-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.bcm-option {
    display: flex;
    align-items: flex-start;
    padding: 24px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bcm-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
}

.bcm-option input[type="radio"] {
    margin-right: 16px;
    margin-top: 2px;
    transform: scale(1.4);
    accent-color: #3b82f6;
}

.bcm-option-content {
    flex: 1;
}

.bcm-option-content strong {
    display: block;
    font-size: 1.125rem;
    color: #111827;
    font-weight: 600;
    margin-bottom: 4px;
}

.bcm-option-content small {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    display: block;
}

.bcm-price-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* ============================================================= */
/*  Calendar – Professional Design                               */
/* ============================================================= */
.bcm-calendar-container {
    background: #f8fafc;
    border-radius: 20px;
    padding: 32px;
    margin: 24px 0;
    border: 1px solid #e2e8f0;
}

.bcm-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 8px;
}

.bcm-calendar-header button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.bcm-calendar-header button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.bcm-calendar-month {
    margin: 0;
    font-size: 1.5rem;
    color: #1e293b;
    font-weight: 700;
}

.bcm-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
    padding: 0 4px;
}

.bcm-calendar-weekdays div {
    padding: 12px 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bcm-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.bcm-calendar-day {
    height: 76px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    transition: all 0.2s ease;
    background: white;
}

.bcm-calendar-day.empty {
    border: none;
    background: transparent;
    cursor: default;
}

.bcm-calendar-day.unavailable {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
    border-color: #f1f5f9;
}

.bcm-calendar-day.available {
    background: white;
    cursor: pointer;
    border-color: #e2e8f0;
}

.bcm-calendar-day.available:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.bcm-calendar-day .day-number {
    font-size: 1.25rem;
    font-weight: 600;
}

.available-indicator {
    color: #10b981;
    font-size: 1.5rem;
    line-height: 0.5;
    margin-top: 4px;
}

/* Selected day with time */
.bcm-calendar-day.selected-with-time {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.bcm-calendar-day.selected-with-time .day-number {
    color: white;
    font-weight: 700;
}

.bcm-calendar-day .selected-time {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================================= */
/*  Time Selection Modal                                         */
/* ============================================================= */
.bcm-time-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.bcm-time-modal-content {
    background: white;
    padding: 32px;
    border-radius: 24px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bcm-time-modal-content h4 {
    margin: 0 0 24px;
    font-size: 1.5rem;
    color: #111827;
    font-weight: 700;
    text-align: center;
}

.bcm-selected-date {
    color: #3b82f6;
    font-weight: 700;
}

.bcm-time-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}

@media (max-width: 480px) {
    .bcm-time-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bcm-time-option {
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    text-align: center;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bcm-time-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

.bcm-time-option.selected {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.bcm-time-modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.bcm-time-cancel {
    background: #6b7280;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.bcm-time-cancel:hover {
    background: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.2);
}

/* ============================================================= */
/*  Contact Information Form                                     */
/* ============================================================= */
/* Fix for form fields overflowing the container */
.bcm-form-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
    /* Prevent horizontal scroll */
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure the form step container has proper constraints */
.bcm-form-step[data-step="5"] {
    padding: 48px;
    box-sizing: border-box;
}

/* Ensure the main container handles overflow */
#bcm-booking-form {
    overflow: hidden; /* Prevent content from spilling out */
}

/* Alternative solution: Adjust the container width */
#bcm-booking-container {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 20px; /* Add padding to prevent edge touching */
    box-sizing: border-box;
}

/* Or better: Make the grid responsive */
@media (max-width: 768px) {
    .bcm-form-fields {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bcm-form-step {
        padding: 32px 24px;
    }
}

/* Specific fix for step 5 if needed */
.bcm-form-step[data-step="5"] .bcm-form-fields {
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 769px) {
    .bcm-form-step[data-step="5"] .bcm-form-fields {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* Another approach: Use flexbox instead of grid for better control */
.bcm-form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}

.bcm-field-group {
    flex: 1 1 calc(50% - 12px); /* Two columns with gap */
    min-width: 0; /* Prevent flex items from overflowing */
    box-sizing: border-box;
}

.bcm-field-group:nth-child(5) {
    flex: 1 1 100%; /* Make the textarea full width */
}

/* Ensure inputs don't overflow */
.bcm-field-group input,
.bcm-field-group textarea {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

/* Add this if you want to keep grid but prevent overflow */
.bcm-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* minmax prevents overflow */
    gap: 24px;
    margin-bottom: 32px;
}

.bcm-field-group {
    min-width: 0; /* Important for text truncation */
}

/* Add padding to the form step to create breathing room */
.bcm-form-step {
    padding: 48px;
    box-sizing: border-box;
}

/* Add responsive design */
@media (max-width: 768px) {
    .bcm-form-fields {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bcm-form-step {
        padding: 32px 24px;
    }
}

/* Most comprehensive solution */
.bcm-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* Prevents overflow */
    gap: 24px;
    margin-bottom: 32px;
    width: 100%;
    box-sizing: border-box;
}

.bcm-field-group {
    min-width: 0; /* Allows content to shrink */
    width: 100%;
}

.bcm-field-group:nth-child(5) {
    grid-column: 1 / -1; /* Makes textarea span both columns */
}

/* Ensure inputs are contained */
.bcm-field-group input,
.bcm-field-group textarea {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

/* Adjust container if needed */
.bcm-form-step {
    padding: 48px;
    box-sizing: border-box;
    overflow: hidden; /* Prevents any child overflow */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bcm-form-fields {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bcm-form-step {
        padding: 32px 24px;
    }
}

/* If using the original container styles, add these */
#bcm-booking-container {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

#bcm-booking-form {
    overflow: hidden;
    border-radius: 20px;
}

.bcm-form-fields .bcm-field-group:nth-child(5) {
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .bcm-form-fields {
        grid-template-columns: 1fr;
    }
}

.bcm-field-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.bcm-field-group input,
.bcm-field-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
}

.bcm-field-group input:focus,
.bcm-field-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: #f8fafc;
}

.bcm-field-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ============================================================= */
/*  Stripe Payment Section – Professional Redesign               */
/* ============================================================= */
#stripe-payment-step .bcm-payment-container {
    display: block;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 32px 0;
    align-items: start;
}

@media (max-width: 768px) {
    #stripe-payment-step .bcm-payment-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
@media (max-width: 768px) {
    .bcm-time-modal-content {
        padding: 25px 20px;
        border-radius: 16px;
        width: 95%;
        max-height: 85vh;
    }
    
    .bcm-time-modal-content h4 {
        font-size: 1.3rem;
        margin-bottom: 20px;
        text-align: center;
        line-height: 1.4;
    }
    
    .bcm-time-options {
        margin: 20px 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-height: 50vh;
        overflow-y: auto;
        padding-right: 5px;
    }
    
    .bcm-time-options select {
        grid-column: 1 / -1;
        width: 100%;
        padding: 16px;
        font-size: 1rem;
    }
    
    .bcm-time-options .bcm-time-slot {
        padding: 16px 10px;
        font-size: 0.95rem;
    }
    
    .bcm-time-modal-actions {
        margin-top: 25px;
        padding-top: 20px;
        border-top: 1px solid #e5e7eb;
    }
    
    .bcm-time-cancel {
        width: 100%;
        padding: 16px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .bcm-time-modal-content {
        padding: 22px 18px;
        width: 80%;
    }
    
    .bcm-time-modal-content h4 {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }
    
    .bcm-time-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .bcm-time-options .bcm-time-slot {
        padding: 18px 12px;
        font-size: 1rem;
    }
     .bcm-bank-details {
        padding: 20px;
        border-radius: 14px;
        margin: 15px 0;
    }
    
    .bcm-bank-info h4 {
        font-size: 1.2rem;
        margin-bottom: 18px;
        text-align: center;
    }
    
    .bcm-bank-account {
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 20px;
    }
    
    .bcm-bank-account p {
        margin: 10px 0;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .bcm-bank-account strong {
        min-width: auto;
        margin-right: 0;
        font-size: 0.95rem;
        color: #374151;
        margin-bottom: 4px;
    }
    
    .bcm-bank-account span {
        text-align: left;
        font-size: 1rem;
        font-weight: 600;
        color: #111827;
        word-break: break-word;
    }
    
    .bcm-instructions {
        padding: 18px;
        border-radius: 10px;
    }
    
    .bcm-instructions ul {
        padding-left: 18px;
        margin: 12px 0 0;
    }
    
    .bcm-instructions li {
        margin-bottom: 8px;
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Order Summary */
#stripe-payment-step .bcm-payment-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 19px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 24px;
    flex:1;
}

#stripe-payment-step .bcm-payment-summary h4 {
    margin: 0 0 28px 0;
    color: #111827;
    font-size: 1.375rem;
    font-weight: 700;
    padding-bottom: 16px;
    border-bottom: 3px solid #3b82f6;
    text-align: left;
}

#stripe-payment-step .bcm-payment-summary h4::after {
    display: none;
}

#stripe-payment-step .bcm-summary-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#stripe-payment-step .bcm-summary-details p {
    margin: 0;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    min-height: 32px;
    display: content;
}

#stripe-payment-step .bcm-summary-details p:last-child {
    border-bottom: none;
    padding-top: 20px;
    margin-top: 12px;
    border-top: 2px solid #d1d5db;
    font-size: 1.125rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 8px;
    display: block;
}

#stripe-payment-step .bcm-summary-details strong {
    color: #4b5563;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 110px;
    
    margin-right: 16px;
}

#stripe-payment-step .bcm-summary-details span {
    color: #0046db;
    font-weight: 500;
    text-align: right;
    line-height: 1.5;
    word-break: break-word;
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    text-align: inherit;
}
#stripe-payment-step .bcm-summary-details p:last-child span {
    color: #1d4ed8;
    font-weight: 700;
    font-size: 15px;
}

/* Stripe Payment Form */
#stripe-payment-step .bcm-stripe-payment {
    background: white;
    padding: 32px;
    border-radius: 20px;
    flex:3;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

/* Security Header */
#stripe-payment-step .bcm-stripe-payment::before {
    content: "🔒 Secured by Stripe";
    display: block;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    letter-spacing: 0.5px;
}

/* Stripe Element Styling */
#stripe-payment-step #stripe-payment-element {
    margin-bottom: 32px;
    min-height: 100px;
}

#stripe-payment-element .StripeElement {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
}

#stripe-payment-element .StripeElement--focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: #f8fafc;
}

#stripe-payment-element .StripeElement--invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

#stripe-payment-element .StripeElement--complete {
    border-color: #10b981;
    background: #f0fdf4;
}

/* Payment Actions */
#stripe-payment-step .bcm-payment-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

@media (max-width: 480px) {
    #stripe-payment-step .bcm-payment-actions {
        grid-template-columns: 1fr;
    }
     .bcm-bank-details {
        padding: 18px 16px;
        border-radius: 12px;
    }
    
    .bcm-bank-account {
        padding: 18px 16px;
    }
    
    .bcm-bank-account p {
        margin: 12px 0;
    }
    
    .bcm-bank-account strong {
        font-size: 0.9rem;
        width: 100%;
    }
    
    .bcm-bank-account span {
        font-size: 0.95rem;
        width: 100%;
        word-break: break-all;
    }
    
    #bcm-final-price {
        font-size: 1.1rem;
        font-weight: 700;
        color: #059669;
        display: inline-block;
        margin-top: 5px;
    }
    
    .bcm-instructions {
        padding: 16px;
    }
    
    .bcm-instructions p:first-child {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .bcm-instructions li {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
}
@media (max-width: 360px) {
    .bcm-bank-account {
        padding: 16px 14px;
    }
    
    .bcm-bank-account strong {
        font-size: 0.85rem;
    }
    
    .bcm-bank-account span {
        font-size: 0.9rem;
    }
    
    .bcm-instructions {
        padding: 14px 12px;
    }
}

#stripe-payment-step .bcm-payment-actions .bcm-prev-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#stripe-payment-step .bcm-payment-actions .bcm-prev-btn:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.25);
}

#stripe-payment-step .bcm-payment-actions .bcm-pay-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 14px;
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

#stripe-payment-step .bcm-payment-actions .bcm-pay-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

#stripe-payment-step .bcm-payment-actions .bcm-pay-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

#stripe-payment-step .bcm-payment-actions .bcm-pay-btn:hover::before {
    left: 100%;
}

#stripe-payment-step .bcm-payment-actions .bcm-pay-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Payment Message */
#stripe-payment-step #stripe-payment-message.bcm-payment-message {
    padding: 20px;
    border-radius: 16px;
    margin-top: 24px;
    font-weight: 500;
    text-align: center;
    border: 2px solid transparent;
    animation: slideIn 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.6;
}

#stripe-payment-step #stripe-payment-message.bcm-payment-message.bcm-success {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #86efac;
    color: #065f46;
}

#stripe-payment-step #stripe-payment-message.bcm-payment-message.bcm-error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #fca5a5;
    color: #7f1d1d;
}

/* Spinner */
#stripe-payment-step #stripe-spinner.bcm-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================================= */
/*  Iranian Bank Details                                         */
/* ============================================================= */
.bcm-bank-details {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 32px;
    margin: 24px 0;
}

.bcm-bank-info h4 {
    margin: 0 0 20px;
    color: #065f46;
    font-size: 1.25rem;
    font-weight: 600;
}

.bcm-bank-account {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border-left: 5px solid #10b981;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.bcm-bank-account p {
    margin: 12px 0;
    display: flex;
    justify-content: space-between;
}

.bcm-bank-account strong {
    color: #374151;
    font-weight: 600;
    min-width: 140px;
}

.bcm-instructions {
    background: #dcfce7;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #86efac;
}

.bcm-instructions p:first-child {
    margin-top: 0;
    color: #065f46;
    font-weight: 600;
}

.bcm-instructions ul {
    margin: 12px 0 0;
    padding-left: 20px;
    color: #047857;
}

.bcm-instructions li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ============================================================= */
/*  Confirmation Step                                            */
/* ============================================================= */
.bcm-confirmation-wrapper {
    text-align: center;
    padding: 24px 0;
}

.bcm-success-icon {
    font-size: 80px;
    color: #10b981;
    margin-bottom: 24px;
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    width: 120px;
    height: 120px;
    line-height: 120px;
    background: #f0fdf4;
    border-radius: 50%;
    border: 4px solid #86efac;
}

.bcm-confirm-title {
    font-size: 2rem;
    color: #111827;
    margin: 0 0 16px;
    font-weight: 700;
}

.bcm-confirm-message {
    color: #6b7280;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.bcm-booking-summary {
    background: #f9fafb;
    padding: 28px;
    border-radius: 20px;
    margin: 32px 0;
    border: 1px solid #e5e7eb;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.bcm-booking-summary p {
    margin: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.bcm-booking-summary p:last-child {
    border-bottom: none;
    padding-top: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1d4ed8;
}

.bcm-booking-summary strong {
    color: #374151;
    font-weight: 600;
    min-width: 120px;
}

.bcm-next-steps {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    padding: 28px;
    border-radius: 20px;
    margin: 32px 0;
    border: 1px solid #bfdbfe;
    text-align: left;
}

.bcm-next-steps h4 {
    margin: 0 0 16px;
    color: #1e40af;
    font-size: 1.25rem;
    font-weight: 600;
}

.bcm-next-steps ul {
    margin: 0;
    padding-left: 20px;
    color: #374151;
}

.bcm-next-steps li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* ============================================================= */
/*  Buttons & Actions                                            */
/* ============================================================= */
.bcm-step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
    gap: 16px;
}

.bcm-prev-btn,
.bcm-next-btn,
.bcm-submit-btn,
.bcm-confirm-btn,
.bcm-restart-btn {
    padding: 18px 36px;
    border: none;
    border-radius: 14px;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 140px;
}

.bcm-prev-btn {
    background: #6b7280;
    color: white;
}

.bcm-prev-btn:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.25);
}

.bcm-next-btn,
.bcm-submit-btn,
.bcm-confirm-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.bcm-next-btn:hover,
.bcm-submit-btn:hover,
.bcm-confirm-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.bcm-restart-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    margin: 0 auto;
}

.bcm-restart-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* ============================================================= */
/*  Animations                                                   */
/* ============================================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ============================================================= */
/*  Responsive Design                                            */
/* ============================================================= */
@media (max-width: 768px) {
    #bcm-booking-container {
        margin: 20px;
        max-width: none;
    }
    
    .bcm-form-step {
        padding: 32px 24px;
        
    }
    
    .bcm-form-step h3 {
        font-size: 1.625rem;
    }
    
    .bcm-calendar-container {
        padding: 24px 16px;
    }
    
    .bcm-calendar-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .bcm-calendar-header button {
        width: 100%;
        order: 3;
    }
    
    .bcm-calendar-month {
        order: 1;
        margin-bottom: 12px;
    }
    
    #stripe-payment-step .bcm-payment-summary,
    #stripe-payment-step .bcm-stripe-payment {
        padding: 24px;
    }
    
    .bcm-step-actions {
        flex-direction: column;
    }
    
    .bcm-prev-btn,
    .bcm-next-btn,
    .bcm-submit-btn,
    .bcm-confirm-btn,
    .bcm-restart-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bcm-form-step {
        padding: 24px 16px;
    }
    .bcm-calendar-grid {
        gap: 2px;
}
    
    .bcm-calendar-day {
        height: 60px;
        padding: 4px;
    }
    
    .bcm-calendar-day .day-number {
        font-size: 1rem;
    }
    
    .bcm-option {
        padding: 20px;
    }
    
    .bcm-form-fields {
        gap: 16px;
    }
    
    #stripe-payment-step {
        padding: 24px 16px;
    }
    
    .bcm-payment-actions .bcm-prev-btn,
    .bcm-payment-actions .bcm-pay-btn {
        padding: 16px;
    }
}

/* ============================================================= */
/*  Utility Classes                                              */
/* ============================================================= */
.bcm-step4-actions {
    margin-top: 32px;
    text-align: center;
}

.bcm-step4-actions .bcm-next-btn {
    padding: 18px 48px;
    font-size: 1.125rem;
}

/* Ensure proper spacing for all steps */
#bcm-calendar-container,
#bcm-counselors-list {
    margin: 24px 0;
}

/* Loading state */
#bcm-counselors-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 1.125rem;
    font-weight: 500;
}

/* Auto advance step */
#step2-auto-advance {
    color: #6b7280;
    font-size: 1.125rem;
    font-weight: 500;
    background: #f9fafb;
    border-radius: 16px;
    margin: 24px 0;
}