/* CSS for Course Booking Calendar with Stripe Payment */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

.cbc-booking-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px auto;
    max-width: 1000px;
    font-family: 'Outfit', sans-serif;
    color: #f8fafc;
    background-color: #0b1329;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Left Column: Calendar */
.cbc-calendar-column {
    flex: 1 1 500px;
    background: #0f1a36;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.cbc-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cbc-calendar-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cbc-calendar-title svg {
    color: #38bdf8;
}

.cbc-month-nav {
    display: flex;
    align-items: center;
    background: #172554;
    border-radius: 8px;
    padding: 4px;
}

.cbc-month-nav-btn {
    background: transparent;
    border: none;
    color: #93c5fd;
    cursor: pointer;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cbc-month-nav-btn:hover {
    background: #1e3a8a;
    color: #ffffff;
}

.cbc-current-month {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    padding: 0 15px;
    min-width: 100px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cbc-weekly-notice {
    background: rgba(56, 189, 248, 0.05);
    border-left: 3px solid #38bdf8;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #94a3b8;
}

.cbc-weekly-notice strong {
    color: #f8fafc;
}

/* Calendar Grid */
.cbc-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
    margin-bottom: 25px;
}

.cbc-grid-header {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    padding-bottom: 5px;
}

.cbc-day-cell {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1e294b;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: not-allowed;
    transition: all 0.2s ease;
    user-select: none;
}

.cbc-day-cell.cbc-empty {
    background: transparent;
    cursor: default;
}

.cbc-day-cell.cbc-active-monday {
    background: #1e3a8a;
    color: #ffffff;
    cursor: pointer;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.cbc-day-cell.cbc-active-monday:hover {
    background: #2563eb;
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.cbc-day-cell.cbc-selected {
    background: #2563eb !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5) !important;
}

.cbc-day-cell.cbc-fully-booked {
    background: #311c27 !important;
    color: #f43f5e !important;
    border: 1px solid rgba(244, 63, 94, 0.2) !important;
    cursor: not-allowed !important;
}

.cbc-day-cell.cbc-fully-booked:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Badge inside calendar cell */
.cbc-day-number {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.cbc-seats-badge {
    display: block;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 999px;
    margin-top: 3px;
    line-height: 1;
}

.cbc-seats-badge.available {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.cbc-seats-badge.booked {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Calendar Legend */
.cbc-calendar-legend {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    font-size: 12px;
    color: #94a3b8;
    border-top: 1px solid #1e294b;
    padding-top: 15px;
}

.cbc-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cbc-legend-color {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.cbc-legend-color.available { background-color: #10b981; }
.cbc-legend-color.booked { background-color: #ef4444; }
.cbc-legend-color.past { background-color: #1e294b; }

/* Right Column: Checkout Card */
.cbc-summary-column {
    flex: 1 1 380px;
    background: #0f172a;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cbc-summary-banner {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cbc-banner-subtitle {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #e2fdf5;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.cbc-banner-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.cbc-banner-title span {
    font-size: 13px;
    font-weight: 500;
    color: #ccfbf1;
    display: block;
    margin-top: 5px;
}

.cbc-summary-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cbc-bullets-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.cbc-bullets-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.5;
}

.cbc-bullets-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0d9488;
    font-weight: 900;
    font-size: 15px;
}

/* Inline Booking Form */
.cbc-booking-form-wrap {
    background: #1e294b;
    border-radius: 12px;
    padding: 20px;
    margin-top: auto;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.cbc-booking-form-wrap h4 {
    margin: 0 0 15px 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cbc-form-row {
    margin-bottom: 12px;
}

.cbc-form-row label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 5px;
}

.cbc-form-row input,
.cbc-form-row select {
    width: 100%;
    padding: 10px 12px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
}

.cbc-form-row input:focus,
.cbc-form-row select:focus {
    border-color: #0d9488;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.cbc-quantity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cbc-quantity-label {
    font-size: 14px;
    font-weight: 600;
    color: #cbd5e1;
}

.cbc-quantity-controls {
    display: flex;
    align-items: center;
    background: #0f172a;
    border-radius: 6px;
    border: 1px solid #334155;
    overflow: hidden;
}

.cbc-qty-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cbc-qty-btn:hover {
    background: #334155;
    color: #ffffff;
}

.cbc-qty-val {
    font-size: 14px;
    font-weight: 700;
    width: 30px;
    text-align: center;
    color: #ffffff;
}

.cbc-price-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #334155;
    padding-top: 15px;
    margin-bottom: 20px;
}

.cbc-total-label {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

.cbc-total-val {
    font-size: 20px;
    font-weight: 800;
    color: #0d9488;
}

/* Submit Button */
.cbc-checkout-btn {
    width: 100%;
    background: #0d9488;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cbc-checkout-btn:hover {
    background: #0f766e;
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35);
    transform: translateY(-1px);
}

.cbc-checkout-btn:active {
    transform: translateY(0);
}

.cbc-checkout-btn:disabled {
    background: #334155;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.cbc-error-msg {
    color: #f43f5e;
    font-size: 12.5px;
    margin-top: 10px;
    display: none;
    font-weight: 500;
}

/* Loading animation for checkout button */
.cbc-btn-loader {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: cbc-spin 0.8s linear infinite;
    display: none;
}

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

@media (max-width: 600px) {
    .cbc-calendar-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    .cbc-calendar-title {
        font-size: 18px !important;
    }
    .cbc-month-nav {
        width: 100% !important;
        justify-content: space-between !important;
    }
    .cbc-current-month {
        flex-grow: 1 !important;
        text-align: center !important;
    }
    .cbc-day-cell {
        font-size: 12px !important;
    }
    .cbc-day-number {
        font-size: 12px !important;
    }
    .cbc-seats-badge {
        font-size: 8px !important;
        padding: 0px 3px !important;
        margin-top: 1px !important;
    }
}
