/* Custom Booking - Frontend Styles */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --cb-primary: #1C5C2E;
    --cb-primary-dark: #174C28;
    --cb-support: #2F5FBF;
    --cb-support-dark: #264d9e;
    --cb-primary-hover: #174C28;
    --cb-success: #28a745;
    --cb-heading: #1c1e22;
    --cb-text: #53585c;
    --cb-text-muted: #6c757d;
    --cb-text-light: #9ca3af;
    --cb-border: #0000002b;
    --cb-bg: #F8FAFC;
    --cb-white: #FFFFFF;
    --cb-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --cb-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --cb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --cb-radius: 12px;
    --cb-step-progress: 0%;
    
    /* Alias variables for consistency */
    --color-heading: #1c1e22;
    --color-muted: #6c757d;
    --color-border: #0000002b;
}

/* Booking Wrapper */
.cb-booking-wrapper {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-bottom: 3rem;
}

.cb-booking-container {
    width: 100%;
    margin: 0 auto 3rem auto;
    background: var(--cb-white);
    border: 1px solid var(--cb-border);
    border-radius: 16px;
    box-shadow: var(--cb-shadow-lg);
    padding: 2.5rem;
}

/* Step Progress Indicator */
.cb-step-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.cb-step-item {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    z-index: 2;
}

.cb-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--cb-white);
    border: 2px solid var(--cb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--cb-text-muted);
    transition: all 0.3s;
}

.cb-step-label {
    font-size: 0.7rem;
    color: var(--cb-text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

.cb-step-item.active .cb-step-number {
    background: var(--cb-primary);
    border-color: var(--cb-primary);
    color: var(--cb-white);
}

.cb-step-item.active .cb-step-label {
    color: var(--cb-primary);
}

.cb-step-item.completed .cb-step-number {
    background: var(--cb-success);
    border-color: var(--cb-success);
    color: var(--cb-white);
}

.cb-step-divider {
    flex: 1;
    height: 2px;
    background: #CBD5E1;
    margin: 0 0.4rem;
    margin-top: 1rem;
}

/* Booking Content */


.cb-step-content {
    display: none;
}

.cb-step-content.active {
    display: block;
}

/* Service Preview */
.cb-service-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 10px 17px;
    border-radius: 16px;
    background: var(--cb-bg);
}

.cb-service-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cb-heading);
    margin-bottom: 0.75rem;
    text-transform: capitalize;
    text-align: left;
}

.cb-service-title {
    font-size: 1.2rem !important;
    font-weight: 500;
    color: var(--cb-heading);
    line-height: 1.4;
    text-align: left;
    margin-bottom: 0px;
    letter-spacing: 0px !important;
    font-family: poppins, sans-serif !important;
}

/* ========================================
   Custom Group Booking Form
   ======================================== */
.cb-group-booking-wrapper {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0rem auto;
    width: 100% !important;
}
input#cb-country-search {
    max-width: 180px !important;
}
.cb-group-card {
    background: var(--cb-white);
    border-radius: 20px;
    border: none;
    box-shadow: none;
    width: 100% !important;
}

.cb-group-form {
    margin-top: 0;
}

.cb-group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 2rem;
}

.cb-group-field label {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--cb-heading);
    margin-bottom: 0.65rem;
}


.cb-group-field label span {
    color: var(--cb-primary);
}

.cb-group-input {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 30px;
    border: none;
    transition: background 0.2s ease;
}
.cb-group-input .iti {
    width: 100%;
}

/* Medical Quote – intl-tel-input: round flag area, no overflow so country dropdown can show */
.cb-medical-quote-wrapper .cb-group-input:has(.cb-medical-phone) .iti__flag-container,
.cb-medical-quote-wrapper .cb-group-input:has(.cb-medical-phone) .iti__selected-flag {
    border-radius: 30px 0 0 30px;
}
.cb-medical-quote-wrapper .cb-group-input:has(.cb-medical-phone) .iti__selected-flag {
    background: transparent;
}
.cb-medical-quote-wrapper .cb-group-input:has(.cb-medical-phone) .iti__selected-flag:hover,
.cb-medical-quote-wrapper .cb-group-input:has(.cb-medical-phone) .iti__selected-flag:focus {
    background: rgba(17, 24, 39, 0.04);
}
.cb-medical-quote-wrapper .cb-group-input:has(.cb-medical-phone) .iti__country-list {
    z-index: 9999;
}

.cb-group-input textarea {
    width: 100%;
    background: transparent;
    font-size: 1rem;
    padding: 1rem 1.1rem;
    resize: vertical;
    min-height: 140px;
}

.cb-group-input input,
.cb-group-input textarea,
.cb-group-input select {
    width: 100%;
    background: transparent;
    font-size: 1rem;
    line-height: 1;
    height: 56px !important;
    padding: 10px 24px;
    outline: none;
    border: 1px solid var(--cb-border);
    border-radius: 30px;
}

.cb-group-input input:focus,
.cb-group-input textarea:focus,
.cb-group-input select:focus {
    outline: none !important;
    border: 1px solid var(--cb-border) !important;
}

/* Hide native select visuals inside medical quote form (used only for value & validation) */
.cb-medical-quote-wrapper .cb-group-input select {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Custom select wrapper styled like pill input */
.cb-medical-quote-wrapper .cb-has-custom-select {
    position: relative;
}

.cb-medical-quote-wrapper .cb-custom-select {
    position: relative;
    width: 100%;
}

.cb-medical-quote-wrapper .cb-custom-select-toggle {
    width: 100%;
    height: 56px;
    border-radius: 30px;
    border: 1px solid var(--cb-border);
    background: transparent;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    color: var(--cb-text);
    cursor: pointer;
}

.cb-medical-quote-wrapper .cb-custom-select-label {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.cb-medical-quote-wrapper .cb-group-input input::placeholder {
    font-weight: 500;
}

.cb-medical-quote-wrapper .cb-custom-select-icon {
    margin-left: 0.75rem;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #9ca3af;
}

.cb-medical-quote-wrapper .cb-custom-select.is-open .cb-custom-select-icon {
    border-top: none;
    border-bottom: 6px solid #9ca3af;
}

.cb-medical-quote-wrapper .cb-custom-select-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    /* Show all options for short medical quote lists (no scrollbar) */
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--cb-border);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    margin: 0;
    padding: 6px 0;
    list-style: none;
    z-index: 50;
    display: none;
}

/* Open upward when near bottom of viewport */
.cb-medical-quote-wrapper .cb-custom-select.is-open-upward .cb-custom-select-list {
    top: auto;
    bottom: calc(100% + 4px);
    box-shadow: 0 -10px 25px rgba(15, 23, 42, 0.12);
}

.cb-medical-quote-wrapper .cb-custom-select.is-open .cb-custom-select-list {
    display: block;
}

.cb-medical-quote-wrapper .cb-custom-select-option {
    padding: 8px 18px;
    font-size: 0.95rem;
    color: var(--cb-text);
    cursor: pointer;
}

.cb-medical-quote-wrapper .cb-custom-select-option:hover {
    background: #f3f4f6;
}

.cb-medical-quote-wrapper .cb-custom-select-option.is-selected {
    background: #e5edff;
    color: var(--cb-primary-dark);
    font-weight: 500;
}

.cb-group-input.has-icon input {
    padding-right: 3rem;
}

.cb-group-input.has-icon .cb-input-icon {
    position: absolute;
    right: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.cb-group-input.has-error,
.cb-group-input.has-icon.has-error,
.cb-group-input.textarea.has-error {
    background: rgba(254, 226, 226, 0.6);
}

.cb-group-input.has-error input,
.cb-group-input.has-error textarea {
    color: #b91c1c;
}

.cb-input-error {
    font-size: 0.8rem;
    color: #b91c1c;
    min-height: 1em;
    margin-top: 10px;
    margin-bottom: 0 !important;
    display: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cb-input-error.is-visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.cb-group-field.cb-span-2 {
    grid-column: span 2;
}

.cb-group-actions {
    margin-top: 2.5rem;
    display: flex;
    justify-content: flex-start;
}

.cb-group-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-dark) 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 2.4rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.cb-group-submit:hover {
    transform: translateY(-2px);
}

.cb-group-submit:disabled {
    cursor: not-allowed;
    opacity: 0.75;
    transform: none;
}

.cb-group-submit .cb-btn-spinner {
    width: 18px;
    height: 18px;
    display: none;
}

.cb-group-submit .cb-spinner-track {
    stroke: rgba(255, 255, 255, 0.25);
    stroke-width: 3;
    fill: transparent;
}

.cb-group-submit .cb-spinner-indicator {
    fill: transparent;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 56;
    stroke-dashoffset: 56;
    animation: cbSpinner 1s linear infinite;
}

.cb-group-submit.is-loading .cb-btn-label {
    opacity: 0.65;
}

.cb-group-submit.is-loading .cb-btn-spinner {
    display: inline-flex;
}

@keyframes cbSpinner {
    0% {
        stroke-dashoffset: 56;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.cb-group-feedback {
    margin-top: 1.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    display: none;
}

.cb-group-feedback.is-success {
    display: block;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.cb-group-feedback.is-error {
    display: block;
    background: rgba(248, 113, 113, 0.12);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* ========================================
   Medical Cover Quote – Multi-step Layout
   ======================================== */

.cb-medical-quote-wrapper {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Medical Quote – Step progress bar (numbered circles + connecting lines) */
.cb-medical-quote-progress {
    margin-bottom: 3rem;
    width: 60%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 768px) {
    .cb-medical-quote-progress {
        width: 100%;
    }
}
/* Stepper responsive: hide labels on small screens to prevent overlap */
@media (max-width: 640px) {
    .cb-medical-quote-wrapper .cb-mq-progress-step {
        flex-shrink: 0;
        min-width: 0;
    }
    .cb-medical-quote-wrapper .cb-mq-progress-label {
        display: none;
    }
    .cb-medical-quote-wrapper .cb-mq-progress-dot {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
    .cb-medical-quote-wrapper .cb-mq-progress-track {
        top: 10px;
    }
}
.cb-medical-quote-wrapper .cb-mq-progress-inner {
    display: flex;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    position: relative;
}
.cb-medical-quote-wrapper .cb-mq-progress-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 15.5px;
    height: 1px;
    z-index: 0;
    background: linear-gradient(to right, var(--cb-primary) 0%, var(--cb-primary) var(--cb-mq-line-done, 0%), #e5e7eb var(--cb-mq-line-done, 0%), #e5e7eb 100%);
    transition: background 0.25s ease;
}
.cb-medical-quote-wrapper .cb-mq-progress-step {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
}
.cb-medical-quote-wrapper .cb-mq-progress-spacer {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.cb-medical-quote-wrapper .cb-mq-progress-label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    text-align: center;
    transition: color 0.25s ease;
}
.cb-medical-quote-wrapper .cb-mq-progress-step.is-active .cb-mq-progress-label,
.cb-medical-quote-wrapper .cb-mq-progress-step.is-completed .cb-mq-progress-label {
    color: #374151;
}
.cb-medical-quote-wrapper .cb-mq-progress-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
    background: #f3f4f6;
    border: 2px solid #d1d5db;
    color: #9ca3af;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.cb-medical-quote-wrapper .cb-mq-progress-step.is-completed .cb-mq-progress-dot {
    background: var(--cb-primary);
    border-color: var(--cb-primary);
    color: #fff;
}
.cb-medical-quote-wrapper .cb-mq-progress-step.is-active .cb-mq-progress-dot {
    background: var(--cb-primary);
    border-color: var(--cb-primary);
    color: #fff;
}

/* Medical Quote – time inputs (Start / End) */
.cb-medical-quote-wrapper .cb-mq-time-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.cb-medical-quote-wrapper .cb-mq-time-row input[type="hidden"] {
    display: none;
}
@media (max-width: 768px) {
    .cb-medical-quote-wrapper .cb-mq-time-row {
        grid-template-columns: 1fr;
    }
}

/* Medical Quote – Alcohol Yes/No: horizontal, readable size, brand text color */
.cb-medical-quote-wrapper .cb-toggle-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.cb-medical-quote-wrapper .cb-toggle-group .cb-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--cb-text, #53585c);
    cursor: pointer;
}
.cb-medical-quote-wrapper .cb-toggle-group .cb-radio span {
    color: inherit;
}
.cb-medical-quote-wrapper .cb-toggle-group .cb-radio input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    cursor: pointer;
}

/* Medical Quote – On-site Facilities checkboxes (simple) */
.cb-medical-quote-wrapper .cb-mq-checkboxes {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: 0.35rem;
}
.cb-medical-quote-wrapper .cb-mq-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cb-text, #53585c);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.25;
    margin: 0;
}
.cb-medical-quote-wrapper .cb-mq-checkbox span {
    color: inherit;
}
.cb-medical-quote-wrapper .cb-mq-checkbox input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.cb-medical-quote-card {
    border-radius: 20px;
    border: 1px solid var(--cb-border);
    box-shadow: var(--cb-shadow-lg);
    padding: 2rem 2.25rem 2.5rem;
}


.cb-step-panel {
    display: none;
}

.cb-step-panel.is-active {
    display: block;
}

.cb-multi-step-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Match initial step 1 state so buttons don’t flash on load before JS runs */
.cb-medical-quote-wrapper .cb-step-prev,
.cb-medical-quote-wrapper .cb-step-submit {
    display: none;
}

.cb-step-btn {
    border-radius: 999px;
    border: 1px solid var(--cb-border);
    background: #FFFFFF;
    color: var(--cb-text, #53585c);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Next button: clear primary background so users see it’s the main action */
.cb-medical-quote-wrapper .cb-step-next {
    background: var(--cb-primary, #1C5C2E);
    border-color: var(--cb-primary, #1C5C2E);
    color: #fff;
}
.cb-medical-quote-wrapper .cb-step-next:hover {
    background: var(--cb-primary-dark, #174C28);
    border-color: var(--cb-primary-dark, #174C28);
    color: #fff;
}

.cb-step-btn:hover {
    background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-dark) 100%);
    border-color: var(--cb-primary-dark);
    color: #fff;
}

.cb-step-submit {
    border-radius: 999px;
}

.cb-medical-feedback {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .cb-medical-quote-card {
        padding: 1.5rem 1.25rem 2rem;
    }


    .cb-multi-step-actions {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {

    .cb-group-grid {
        grid-template-columns: 1fr;
    }

    .cb-group-field.cb-span-2 {
        grid-column: span 1;
    }
}

.cb-service-description {
    font-size: 1rem;
    color: var(--cb-text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Training Schedule Section */
.cb-schedule-section {
    margin-top: 1rem;
    padding-top: 2rem;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.cb-error-shake {
    animation: errorShake 0.5s ease;
}

/* Search Box */
.cb-search-wrapper {
    flex-shrink: 0;
}

.cb-search-box {
    position: relative;
    width: 380px;
}

.cb-search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cb-text-muted);
    pointer-events: none;
}

.cb-booking-wrapper .cb-search-input,
.cb-booking-wrapper input.cb-search-input {
    width: 100%;
    height: 50px;
    padding: 0 2.5rem 0 1rem;
    border: 1px solid var(--cb-border);
    border-radius: 8px;
    background: transparent;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--cb-text);
    transition: all 0.2s;
    outline: none;
}

.cb-booking-wrapper .cb-search-input::placeholder,
.cb-booking-wrapper input.cb-search-input::placeholder {
    color: var(--cb-text-muted);
}

.cb-booking-wrapper .cb-search-input:focus,
.cb-booking-wrapper input.cb-search-input:focus {
    border-color: var(--cb-primary);
}

.cb-schedule-heading {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--cb-heading);
    margin-bottom: 1.25rem;
}

.cb-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cb-schedule-card {
    border-bottom: 1px solid var(--cb-border);
    padding: 1rem;
    margin: 0 -1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    cursor: pointer;
}

.cb-schedule-card:hover {
    background: var(--cb-bg);
    border-radius: 8px;
}

.cb-schedule-card-disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.cb-schedule-card-disabled:hover {
    background: transparent;
    border-radius: 0;
    cursor: no-drop !important;
}

.cb-schedule-card-disabled * {
    cursor: not-allowed !important;
}

.cb-schedule-card-disabled:hover * {
    cursor: no-drop !important;
}

.cb-schedule-main {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex: 1;
}

.cb-schedule-datetime {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cb-schedule-datetime .cb-schedule-date,
.cb-schedule-datetime .cb-schedule-time {
    white-space: nowrap;
}

.cb-schedule-date,
.cb-schedule-time,
.cb-schedule-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cb-heading);
}

.cb-schedule-date {
    position: relative;
}

.cb-time-passed-alert {
    position: absolute;
    top: -15px;
    left: 25px;
    width: 18px;
    height: 18px;
    color: #ff0505 !important;
    background: #fff;
    border-radius: 50%;
    z-index: 1;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    opacity: 1 !important;
}

.cb-schedule-date svg,
.cb-schedule-time svg,
.cb-schedule-location svg {
    color: var(--cb-text-muted);
    flex-shrink: 0;
}

.cb-schedule-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cb-schedule-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cb-heading);
}

.cb-schedule-slots {
    font-size: 0.8rem;
    color: var(--cb-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cb-slot-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--cb-text);
    min-width: 20px;
    max-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0 0.35rem;
    line-height: 0;
}

.cb-slot-count.status-available {
    background: #28A745;
    color: white;
}

.cb-slot-count.status-limited {
    background: #FFC107;
    color: #484848;
}

.cb-slot-count.status-unavailable {
    background: #DC3545;
    color: white;
}

.cb-booking-wrapper .cb-book-btn,
.cb-booking-wrapper button.cb-book-btn {
    background: transparent;
    color: var(--cb-text-muted);
    border: none;
    border-bottom: 1px solid var(--cb-border);
    padding: 5px 0;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    border-radius: 0px;
}

.cb-booking-wrapper .cb-book-btn:hover:not(:disabled),
.cb-booking-wrapper button.cb-book-btn:hover:not(:disabled) {
    background: transparent;
    border-bottom-color: var(--cb-primary);
    color: var(--cb-primary);
}

.cb-booking-wrapper .cb-book-btn:disabled,
.cb-booking-wrapper button.cb-book-btn:disabled {
    border-bottom-color: var(--cb-border);
    color: var(--cb-text-muted);
    cursor: not-allowed;
    opacity: 0.4;
}

/* Training Details Section (Step 2) */
.cb-training-details {
    padding: 1rem 0;
}

.cb-details-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cb-heading);
    margin-bottom: 1.5rem;
}

.cb-details-card {
    background: var(--cb-bg);
    border: 1px solid var(--cb-border);
    border-radius: 12px;
    padding: 2rem;
}

.cb-details-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cb-heading);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cb-border);
}

.cb-details-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cb-details-row-2 {
    grid-template-columns: 1fr 1fr !important;
}

.cb-details-row-3 {
    grid-template-columns: 1fr 1fr 1fr 1fr !important;
}

.cb-detail-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.cb-detail-icon {
    flex-shrink: 0;
    color: var(--cb-heading);
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    stroke: currentColor;
    fill: none;
}

.cb-detail-value {
    font-size: .94rem;
    font-weight: 500;
    color: var(--cb-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 25px;
    margin-top: -4px;
}

.cb-price-highlight {
    color: var(--cb-primary);
}

.cb-slot-indicator-inline {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cb-slot-indicator-inline.status-available {
    background: #28A745;
}

.cb-slot-indicator-inline.status-limited {
    background: #FFC107;
}

.cb-slot-indicator-inline.status-unavailable {
    background: #DC3545;
}

.cb-venue-notes {
    padding-top: 1rem;
    border-top: 1px solid var(--cb-border);
}

/* Personal Details Form */
.cb-personal-details {
    margin-top: 2rem;
}

.cb-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cb-heading);
    margin-bottom: 1.2rem;
}

.cb-personal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.cb-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.cb-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cb-input-wrapper.cb-error .cb-form-input {
    border-color: #DC3545;
}

.cb-input-wrapper.cb-error::after {
    content: '!';
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #DC3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    pointer-events: none;
}

.cb-phone-wrapper.cb-error::after {
    right: 2.5rem;
}

.cb-form-icon {
    position: absolute;
    right: 1rem;
    color: var(--cb-text-light);
    pointer-events: none;
    flex-shrink: 0;
    display: inline-block;
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.cb-booking-wrapper .cb-form-input,
.cb-booking-wrapper input.cb-form-input,
.cb-booking-wrapper textarea.cb-form-input {
    width: 100%;
    height: 50px;
    padding: 0 3rem 0 1rem;
    font-size: 0.9375rem;
    color: var(--cb-heading);
    background: white;
    border: 1px solid var(--cb-border);
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
}

.cb-booking-wrapper .cb-form-input:focus,
.cb-booking-wrapper input.cb-form-input:focus,
.cb-booking-wrapper textarea.cb-form-input:focus {
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cb-booking-wrapper .cb-form-input:focus + .cb-form-icon {
    color: var(--cb-primary);
}

.cb-booking-wrapper .cb-form-input::placeholder {
    color: var(--cb-text-light);
}

/* Advanced Phone Number Input with Country Selector */
.cb-phone-wrapper {
    position: relative;
    display: flex;
    gap: 0;
}

.cb-country-selector {
    position: relative;
    width: 110px;
}

.cb-booking-wrapper .cb-selected-country {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.75rem;
    height: 50px;
    background: white;
    border: 1px solid var(--cb-border);
    border-radius: 8px 0 0 8px;
    border-right: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.cb-phone-wrapper:focus-within .cb-selected-country,
.cb-phone-wrapper:focus-within .cb-phone-input {
    border-color: var(--cb-primary);
}

.cb-country-selector.active .cb-selected-country,
.cb-country-selector.active ~ .cb-phone-input {
    border-color: var(--cb-primary);
}

.cb-selected-country .cb-country-flag {
    font-size: 1.25rem;
}

.cb-selected-country .cb-country-code {
    flex: 1;
    color: var(--cb-heading);
    font-weight: 500;
}

.cb-dropdown-arrow {
    color: var(--cb-text-light);
    transition: transform 0.2s ease;
}

.cb-country-selector.active .cb-dropdown-arrow {
    transform: rotate(180deg);
}

.cb-country-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 300px;
    background: white;
    border: 1px solid var(--cb-primary);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    display: none;
    padding-bottom: 0.5rem;
}

.cb-country-selector.active .cb-country-dropdown {
    display: block;
}

.cb-country-search {
    width: calc(100% - 1.5rem);
    height: 38px;
    margin: 0.75rem;
    padding: 0 1rem;
    border: 1px solid var(--cb-border);
    border-radius: 16px;
    outline: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.cb-country-search:focus {
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cb-country-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 0 0.5rem;
}

.cb-country-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.cb-country-item:hover {
    background: var(--cb-secondary);
}

.cb-country-item.hidden {
    display: none;
}

.cb-country-item .cb-country-flag {
    font-size: 1.25rem;
    width: 24px;
}

.cb-country-item .cb-country-name {
    flex: 1;
    color: var(--cb-heading);
    font-size: 0.9375rem;
}

.cb-country-item .cb-country-code {
    color: var(--cb-text-light);
    font-size: 0.875rem;
}

.cb-booking-wrapper .cb-phone-wrapper .cb-phone-input,
.cb-booking-wrapper .cb-phone-wrapper input.cb-phone-input {
    flex: 1;
    height: 50px;
    padding: 0 3rem 0 1rem;
    border-radius: 0 8px 8px 0;
}

.cb-phone-wrapper .cb-phone-icon {
    position: absolute;
    right: 1rem;
    color: var(--cb-text-light);
    pointer-events: none;
}

.cb-phone-wrapper.cb-error .cb-selected-country {
    border-color: #DC3545;
}

.cb-venue-notes .cb-detail-value {
    margin-top: 0.3rem;
    font-weight: 400;
    color: var(--cb-text);
    /* Override default flex layout so paragraphs/lines stack vertically */
    display: block;
}

/* Ensure venue notes text uses standard color, links use accent color */
.cb-venue-notes .cb-detail-value {
    color: var(--cb-text);
}

.cb-venue-notes .cb-detail-value a {
    color: var(--cb-primary);
}

/* Spacing for content media and paragraphs inside entry content */
.entry-content .wp-audio-shortcode,
.entry-content .wp-embedded-audio,
.entry-content .wp-embedded-video,
.entry-content .wp-video,
.entry-content p {
    margin-bottom: 0.6rem;
}

/* Placeholder */
.cb-step-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--cb-text-muted);
}

/* Booking Actions */
.cb-booking-actions {
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
}

.cb-booking-actions.show {
    display: flex;
}

.cb-stripe-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1.5rem;
}

.cb-stripe-modal.show {
    display: flex;
}

.cb-stripe-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 9999;
}

.cb-stripe-modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.cb-stripe-modal-dialog {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
    max-width: 420px;
    width: 100%;
    position: relative;
    padding: 2rem 2rem 1.75rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.25s ease;
}

.cb-stripe-modal.show .cb-stripe-modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

.cb-stripe-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.08);
    border: none;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    color: #0f172a;
}

.cb-stripe-modal-header h3 {
    margin: 0;
    font-size: 1.35rem;
    color: #0f172a;
}

.cb-stripe-modal-header p {
    margin: 0.35rem 0 1.5rem;
    color: #64748b;
    font-size: 0.95rem;
}

.cb-card-element-wrapper {
    margin-top: 0;
    padding: 1.25rem;
    border-radius: 16px;
    background: var(--cb-surface, #f5f7fa);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: var(--cb-shadow-sm, 0 10px 40px rgba(15, 23, 42, 0.05));
}

.cb-card-label {
    display: block;
    font-weight: 600;
    color: var(--cb-heading, #0f172a);
    margin-bottom: 0.75rem;
}

.cb-stripe-element {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cb-stripe-element.StripeElement--focus {
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cb-stripe-element.StripeElement--invalid {
    border-color: #ef4444;
}

.cb-card-errors {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #ef4444;
    min-height: 1.125rem;
}

.cb-stripe-modal-status {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    min-height: 1.125rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cb-stripe-modal-status.visible {
    opacity: 1;
}

.cb-stripe-modal-footer {
    margin-top: 1.75rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.cb-modal-btn {
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}
.cb-modal-btn:hover{
    color: white;
}
.cb-modal-btn-primary {
    background: var(--cb-primary);
    color: #fff;
}

.cb-modal-btn-secondary {
    background: rgba(148, 163, 184, 0.18);
    color: #334155;
}

/* Buttons */
.cb-booking-wrapper .cb-btn,
.cb-booking-wrapper button.cb-btn {
    display: inline-flex
;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 1.3rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    justify-content: center;
}

.cb-booking-wrapper .cb-btn svg,
.cb-booking-wrapper button.cb-btn svg {
    width: 16px;
    height: 16px;
}

.cb-booking-wrapper .cb-btn-primary,
.cb-booking-wrapper button.cb-btn-primary {
    background: var(--cb-primary);
    color: var(--cb-white);
    box-shadow: 0 1px 3px rgba(28, 92, 46, 0.2);
}

.cb-booking-wrapper .cb-btn-primary:hover,
.cb-booking-wrapper button.cb-btn-primary:hover {
    background: var(--cb-primary-dark);
    color: white !important;
    box-shadow: 0 2px 4px rgba(28, 92, 46, 0.3);
}

.cb-booking-wrapper .cb-btn-secondary,
.cb-booking-wrapper button.cb-btn-secondary {
    background: transparent;
    color: var(--cb-text-muted);
    border: 1px solid var(--cb-border);
}

.cb-booking-wrapper .cb-btn-secondary:hover,
.cb-booking-wrapper button.cb-btn-secondary:hover {
    background: var(--cb-bg);
    color: var(--cb-text);
}

.cb-booking-wrapper .cb-btn-prev {
    margin-right: auto;
}

.cb-booking-wrapper .cb-btn-next {
    margin-left: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .cb-booking-container {
        padding: 1.5rem;
    }

    .cb-step-label {
        font-size: 0.65rem;
    }

    .cb-step-number {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .cb-booking-wrapper .cb-btn,
    .cb-booking-wrapper button.cb-btn {
        padding: 1rem 1.4rem;
        font-size: 0.8rem;
    }

    .cb-booking-wrapper .cb-btn svg,
    .cb-booking-wrapper button.cb-btn svg {
        width: 14px;
        height: 14px;
    }

    .cb-schedule-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cb-schedule-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cb-schedule-datetime {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .cb-schedule-datetime .cb-schedule-date,
    .cb-schedule-datetime .cb-schedule-time {
        font-size: 0.85rem;
    }

    .cb-schedule-meta {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .cb-booking-wrapper .cb-book-btn,
    .cb-booking-wrapper button.cb-book-btn {
        margin-top: 0.5rem;
    }
    .cb-details-card {
        padding: 1rem;
    }


    .cb-service-preview {
        flex-direction: column;
        align-items: flex-start;
    }

    .cb-price-summary .cb-price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cb-price-summary .cb-price-label,
    .cb-price-summary .cb-price-value {
        width: 100%;
        text-align: left;
        white-space: normal;
    }

    .cb-search-wrapper {
        width: 100%;
    }

    .cb-search-box {
        width: 100%;
    }

    .cb-details-row-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .cb-details-row-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem;
        grid-auto-rows: auto;
    }

    .cb-details-row-3 .cb-detail-item:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .cb-details-row-3 .cb-detail-item:nth-child(2) {
        grid-column: 1 / span 2;
        grid-row: 2;
    }

    .cb-details-row-3 .cb-detail-item:nth-child(3) {
        grid-column: 2;
        grid-row: 1;
    }

    .cb-detail-label {
        font-size: 0.75rem;
    }

    .cb-detail-value {
        font-size: 0.9rem;
        padding-left: 0;
    }

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

@media (max-width: 480px) {
    .cb-booking-container {
        padding: 1rem;
    }

    .cb-step-label {
        display: none;
    }

    .cb-step-divider {
        margin-top: 0;
    }
}

/* Confirmation Page Styles */
.cb-confirmation-layout {
    display: flex;
    justify-content: center;
    padding: 0;
}

/* Price Summary */
.cb-price-summary {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
}

.cb-price-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

.cb-price-label {
    font-size: 1.1rem;
    color: var(--color-heading);
    flex-shrink: 0;
}

.cb-price-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-heading);
    flex-shrink: 0;
}

.cb-price-divider {
    height: 1px;
    background: var(--color-border);
    margin: 1rem 0;
}

.cb-price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #D1FAE5;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-top: 5rem;
}

.cb-total-label {
    font-size: 1rem;
    font-weight: 600;
    color: #059669;
}

.cb-total-value {
    font-size: 1rem;
    font-weight: 700;
    color: #059669;
}

/* Payment Method Row */
.cb-payment-method-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.cb-payment-method-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-heading);
}

.cb-payment-method-logo {
    width: 60px;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

.cb-payment-method-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-heading);
}

.cb-card-element-wrapper {
    margin-top: 1.75rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: var(--cb-surface, #f5f7fa);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: var(--cb-shadow-sm, 0 10px 40px rgba(15, 23, 42, 0.05));
}

.cb-card-label {
    display: block;
    font-weight: 600;
    color: var(--cb-heading, #0f172a);
    margin-bottom: 0.75rem;
}

.cb-stripe-element {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cb-stripe-element.StripeElement--focus {
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cb-stripe-element.StripeElement--invalid {
    border-color: #ef4444;
}

.cb-card-errors {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #ef4444;
    min-height: 1.125rem;
}

@media (max-width: 768px) {
    .cb-price-summary {
        max-width: 100%;
    }
}

/* Success Modal Popup */
.cb-success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cb-success-modal-overlay.show {
    opacity: 1;
}

.cb-success-modal {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cb-success-modal-overlay.show .cb-success-modal {
    transform: scale(1);
}

.cb-success-modal-content {
    padding: 3rem 2.5rem;
    text-align: center;
}

.cb-success-checkmark {
    margin: 0 auto 2rem;
    animation: checkmarkPop 0.5s ease 0.2s both;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.cb-success-modal-title {
    font-size: 1.5rem !important;
    font-weight: 500;
    color: var(--cb-success);
    margin-bottom: 2rem;
    font-family: poppins, sans-serif !important;
}

.cb-confirmation-number-section {
    margin-bottom: 3rem;
}

.cb-confirmation-label {
    font-size: 0.875rem;
    color: var(--cb-text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cb-confirmation-number {
    font-size: 2rem;
    font-weight: 500;
    color: var(--cb-heading);
    letter-spacing: 7px;
    font-family: poppins, sans-serif !important;
}

.cb-confirmation-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem auto 2.5rem;
    padding: .8rem .5rem;
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 8px;
    max-width: 90%;
}

/* Confirmation Modal */
.cb-confirmation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}

.cb-confirmation-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cb-confirmation-modal {
    background: var(--cb-white);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cb-confirmation-modal-overlay.show .cb-confirmation-modal {
    transform: scale(1);
}

.cb-confirmation-modal-content {
    padding: 2.5rem;
    text-align: center;
}

.cb-confirmation-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FEF2F2;
    border-radius: 50%;
    color: #EF4444;
}

.cb-confirmation-modal-icon svg {
    width: 48px;
    height: 48px;
}

.cb-confirmation-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cb-heading);
    margin: 0 0 1rem 0;
    font-family: 'Poppins', sans-serif;
}

.cb-confirmation-modal-message {
    font-size: 1rem;
    color: var(--cb-text-muted);
    line-height: 1.6;
    margin: 0 0 2rem 0;
    font-family: 'Poppins', sans-serif;
}

.cb-confirmation-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cb-confirmation-modal-actions .cb-btn {
    min-width: 120px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.cb-confirmation-confirm {
    background: #EF4444;
    color: #FFFFFF;
    border: 1px solid #EF4444;
}

.cb-confirmation-confirm:hover {
    background: #DC2626;
    border-color: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.cb-confirmation-cancel {
    background: var(--cb-white);
    color: var(--cb-heading);
    border: 1px solid var(--cb-border);
}

.cb-confirmation-cancel:hover {
    background: #F9FAFB;
    border-color: var(--cb-primary);
    color: var(--cb-primary);
}

@media (max-width: 640px) {
    .cb-confirmation-modal-content {
        padding: 2rem 1.5rem;
    }
    
    .cb-confirmation-modal-title {
        font-size: 1.25rem;
    }
    
    .cb-confirmation-modal-message {
        font-size: 0.9375rem;
    }
    
    .cb-confirmation-modal-actions {
        flex-direction: column;
    }
    
    .cb-confirmation-modal-actions .cb-btn {
        width: 100%;
    }
}

.cb-confirmation-message svg {
    flex-shrink: 0;
    color: var(--cb-primary-dark);
}

.cb-confirmation-message p {
    margin: 0;
    font-size: 0.9375rem;
    color: #0C4A6E;
    line-height: 1.5;
    text-align: left;
}

.cb-success-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.cb-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: .7rem 1.2rem;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: var(--cb-heading);
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cb-action-btn:hover {
    border-color: var(--cb-success);
    color: var(--ast-global-color-1);
    background: #F0FDF4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.cb-action-btn svg {
    flex-shrink: 0;
}

.cb-action-btn-primary {
    background: var(--cb-success);
    border-color: var(--cb-success);
    color: white;
}

.cb-action-btn-primary:hover {
    background: #059669;
    border-color: #059669;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
    .cb-success-modal-content {
        padding: 2rem 1.5rem;
    }
    
    .cb-success-modal-title {
        font-size: 1.5rem;
    }
    
    .cb-confirmation-number {
        font-size: 2.5rem;
    }
    
    .cb-confirmation-message {
        flex-direction: column;
        text-align: center;
        max-width: 100%;
        padding: 1rem;
    }
    
    .cb-confirmation-message p {
        text-align: center;
        font-size: 0.875rem;
    }
    
    .cb-success-actions {
        grid-template-columns: 1fr;
    }
}

/* Payment Success Page - Modern Design */
.cb-success-wrapper {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 2rem 1rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.entry-content[data-ast-blocks-layout] > * {
    max-width: 100%;
}

.cb-success-container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 3.5rem;
    position: relative;
}

.cb-success-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cb-success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    animation: successPulse 2s ease-in-out infinite;
    position: relative;
}

.cb-success-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    opacity: 0.2;
    z-index: 0;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.cb-success-icon svg {
    color: #FFFFFF;
    width: 60px;
    height: 60px;
    stroke-width: 3;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.cb-cancelled-icon {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.cb-cancelled-icon svg {
    color: #DC2626;
}

.cb-error-icon {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.2);
}

.cb-error-icon svg {
    color: #D97706;
}

.cb-success-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--cb-heading);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cb-success-message {
    font-size: 1.125rem;
    color: var(--cb-text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cb-success-details {
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cb-success-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #E5E7EB;
    gap: 1rem;
}

.cb-success-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cb-success-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cb-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 140px;
}

.cb-success-label svg {
    width: 18px;
    height: 18px;
    color: var(--cb-primary);
    flex-shrink: 0;
}

.cb-success-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cb-heading);
    text-align: right;
    flex: 1;
}

.cb-success-value.cb-reference-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--cb-primary);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.cb-success-value.cb-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: #059669;
}

.cb-instructor-contact {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.cb-instructor-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--cb-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.cb-instructor-link:hover {
    color: var(--cb-primary-hover, #174C28);
    text-decoration: underline;
}

.cb-instructor-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .cb-instructor-contact {
        gap: 0.25rem;
    }
    
    .cb-instructor-link {
        font-size: 0.8125rem;
    }
}

.cb-success-notice {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    border: 1px solid #BFDBFE;
}

.cb-success-notice svg {
    color: var(--cb-support, #2F5FBF);
    flex-shrink: 0;
    margin-top: 2px;
}

.cb-success-notice p {
    font-size: 0.9375rem;
    color: #1E40AF;
    margin: 0;
    text-align: left;
    line-height: 1.5;
}

.cb-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.cb-success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--cb-primary);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 160px;
    box-shadow: 0 4px 6px rgba(28, 92, 46, 0.15);
}

.cb-success-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cb-success-btn:hover {
    background: var(--cb-primary-dark);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 92, 46, 0.3);
    border-color: var(--cb-primary-dark);
}

.cb-success-btn:active {
    transform: translateY(0);
}

.cb-success-btn.cb-btn-primary {
    background: linear-gradient(90deg, #1C5C2E 0%, #174C28 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 6px rgba(28, 92, 46, 0.15) !important;
}

.cb-success-btn.cb-btn-primary:hover {
    background: linear-gradient(90deg, #174C28 0%, #124222 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(28, 92, 46, 0.3) !important;
}

.cb-success-btn.cb-btn-calendar {
    background: linear-gradient(90deg, #28a745 0%, #1c5c2e 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.15) !important;
}

.cb-success-btn.cb-btn-calendar:hover {
    background: linear-gradient(90deg, #218838 0%, #154a26 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3) !important;
}

.cb-success-btn.cb-btn-secondary {
    background: #6B7280;
    border-color: #6B7280;
    box-shadow: 0 4px 6px rgba(107, 114, 128, 0.15);
}

.cb-success-btn.cb-btn-secondary:hover {
    background: #4B5563;
    border-color: #4B5563;
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.3);
    color: white !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cb-success-wrapper {
        padding: 1rem 0.5rem;
        min-height: auto;
    }
    
    .cb-success-container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .cb-success-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }
    
    .cb-success-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .cb-success-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .cb-success-message {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cb-success-details {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .cb-success-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.875rem 0;
    }
    
    .cb-success-label {
        min-width: auto;
        font-size: 0.875rem;
    }
    
    .cb-success-value {
        text-align: left;
        font-size: 0.9375rem;
    }
    
    .cb-success-value.cb-reference-number,
    .cb-success-value.cb-amount {
        font-size: 1rem;
    }
    
    .cb-success-notice {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .cb-success-notice p {
        text-align: center;
    }
    
    .cb-success-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cb-success-btn {
        width: 100%;
        min-width: auto;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .cb-success-container {
        padding: 1.5rem 1rem;
    }
    
    .cb-success-title {
        font-size: 1.5rem;
    }
    
    .cb-success-message {
        font-size: 0.9375rem;
    }
    
    .cb-success-details {
        padding: 1.25rem;
    }
}

/* ========================================
   Client Authentication Forms
   ======================================== */


.cb-client-auth-container {
    background: var(--cb-white);
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow-lg);
    padding: 2.5rem;
}

.cb-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cb-auth-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--cb-heading);
    margin: 0 0 0.5rem 0;
}

.cb-auth-header p {
    color: var(--cb-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.cb-auth-form {
    margin-top: 1.5rem;
}

.cb-form-group label {
    display: block;
    font-weight: 500;
    color: var(--cb-heading);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.cb-form-group .required {
    color: #dc3545;
    margin-left: 2px;
}

.cb-form-group .cb-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--cb-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--cb-white);
    color: var(--cb-text);
}

.cb-form-group .cb-input:focus {
    outline: none;
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 3px rgba(28, 92, 46, 0.1);
}

.cb-form-group .cb-input.error {
    border-color: #dc3545;
}

.cb-form-group .cb-input.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.cb-input-error {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cb-input-error.is-visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.cb-form-hint {
    display: block;
    color: var(--cb-text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.cb-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--cb-text);
}

.cb-checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.cb-checkbox-label a {
    color: var(--cb-primary);
    text-decoration: none;
}

.cb-checkbox-label a:hover {
    text-decoration: underline;
}

.cb-form-group-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cb-form-group-row .cb-form-group {
    margin-bottom: 0;
}

.cb-form-group-half {
    flex: 1;
    margin-bottom: 0;
}

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

.cb-forgot-link {
    color: var(--cb-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.cb-forgot-link:hover {
    text-decoration: underline;
}

.cb-form-actions {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.cb-btn-block {
    width: 100%;
}

.cb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cb-btn-primary {
    background: var(--cb-primary);
    color: white;
}

.cb-btn-primary:hover:not(:disabled) {
    background: var(--cb-primary-dark);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28, 92, 46, 0.3);
}

.cb-btn-danger {
    background: #EF4444;
    color: #FFFFFF;
    border: 1px solid #EF4444;
}

.cb-btn-danger:hover:not(:disabled) {
    background: #DC2626;
    border-color: #DC2626;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.cb-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cb-btn .btn-loading {
    display: none;
}

.cb-btn .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.cb-auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cb-border);
}

.cb-auth-footer p {
    color: var(--cb-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.cb-auth-link {
    color: var(--cb-primary);
    text-decoration: none;
    font-weight: 500;
}

.cb-auth-link:hover {
    text-decoration: underline;
}

.cb-auth-success {
    text-align: center;
    padding: 2rem 0;
}

.cb-success-icon {
    width: 64px;
    height: 64px;
    background: var(--cb-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.cb-auth-success h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cb-heading);
    margin: 0 0 0.5rem 0;
}

.cb-auth-success p {
    color: var(--cb-text-muted);
    margin: 0 0 1.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .cb-client-auth-container {
        padding: 2rem 1.5rem;
    }
    
    .cb-auth-header h2 {
        font-size: 1.5rem;
    }
    
    .cb-form-group-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .cb-form-group-half {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .cb-form-group-half .cb-form-group {
        margin-bottom: 1.5rem;
    }
    
    .cb-form-group {
        margin-bottom: 1.25rem;
    }
    
    .cb-form-actions {
        margin-top: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .cb-auth-footer {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }
}

/* ========================================
   Modern Client Dashboard
   ======================================== */

.cb-client-dashboard-wrapper {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Modern Dashboard Header */
.cb-dashboard-header {
    position: relative;
}

.cb-dashboard-header-content {
    margin: 0 auto;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cb-dashboard-header-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.02em;
}

.cb-dashboard-header-title p {
    font-size: 0.875rem;
    color: var(--cb-text-muted);
    margin: 0.25rem 0 0 0;
    font-weight: 400;
}

.cb-dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cb-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--cb-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s 
cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px;
}

.cb-icon-btn:hover {
    background: var(--cb-primary);
}
.cb-icon-btn:hover .cb-detail-icon{
    color: var(--cb-white);
}

.cb-detail-icon {
    width: 20px;
    height: 20px;
}

.cb-notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.cb-dashboard-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-dark) 100%);
    color: var(--cb-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.cb-dashboard-avatar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.cb-dashboard-avatar svg {
    width: 20px;
    height: 20px;
    display: none;
}

/* Menu Dropdown */
.cb-menu-dropdown {
    position: relative;
}

.cb-menu-trigger {
    position: relative;
}

.cb-menu-trigger.active,
.cb-menu-dropdown:has(.cb-menu-dropdown-content.show) .cb-menu-trigger {
    background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-dark) 100%);
}

.cb-menu-trigger.active .cb-detail-icon,
.cb-menu-dropdown:has(.cb-menu-dropdown-content.show) .cb-menu-trigger .cb-detail-icon {
    color: var(--cb-white) !important;
    stroke: var(--cb-white) !important;
}

.cb-menu-dropdown-content {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.cb-menu-dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cb-menu-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.1) 100%);
}

.cb-menu-user-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.cb-menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-dark) 100%);
    color: var(--cb-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    flex-shrink: 0;
}

.cb-menu-user-details {
    flex: 1;
    min-width: 0;
}

.cb-menu-user-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cb-heading);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cb-menu-user-email {
    font-size: 0.8125rem;
    color: var(--cb-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cb-menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 0.5rem 0;
}

.cb-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--cb-heading);
    text-decoration: none !important;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.cb-menu-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--cb-primary);
    text-decoration: none !important;
}

.cb-menu-item:focus {
    text-decoration: none !important;
}

.cb-menu-item:visited {
    text-decoration: none !important;
}

.cb-menu-item svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.cb-menu-item:hover svg {
    opacity: 1;
}

.cb-menu-item-danger {
    color: #ef4444;
}

.cb-menu-item-danger:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.cb-menu-item-danger svg {
    color: #ef4444;
}

/* Dashboard Main */
.cb-dashboard-main {
    padding: 2.5rem 0;
}

.cb-dashboard-container {
    margin: 0 auto;
}

/* Modern Stats Grid */
.cb-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.cb-stat-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}


.cb-stat-card:hover::before {
    opacity: 1;
}

.cb-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.cb-stat-icon-info {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0.2) 100%);
    color: var(--cb-primary);
}

.cb-stat-icon-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.2) 100%);
    color: var(--cb-success);
}

.cb-stat-icon-primary {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.2) 100%);
    color: var(--cb-primary);
}

.cb-stat-icon svg {
    width: 28px;
    height: 28px;
}

.cb-stat-content {
    flex: 1;
}

.cb-stat-content p:first-child {
    font-size: 0.75rem;
    color: var(--cb-text-muted);
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.cb-stat-content p:last-child {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cb-heading) 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Modern Tabs */
.cb-dashboard-tabs {
    margin-top: 2rem;
}

.cb-tabs-list {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0.375rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--cb-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    gap: 1rem;
}

.cb-tab-trigger {
    padding: 0.75rem 2rem;
    border: 1px solid var(--cb-border);
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--cb-text-muted);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    position: relative;
    pointer-events: auto;
    z-index: 1;
}

.cb-tab-trigger:hover {
    color: var(--cb-heading);
    background: rgba(0, 0, 0, 0.02);
}

.cb-tab-trigger.active {
    background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cb-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.cb-tab-content.active {
    display: block;
}

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

.cb-section-header {
    margin-bottom: 2rem;
}

.cb-section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cb-heading);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.cb-section-header p {
    color: var(--cb-text-muted);
    margin: 0;
    font-size: 0.9375rem;
}

/* Modern Courses Grid */
.cb-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.cb-course-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Course Preview Button - Top Right */
.cb-course-preview-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    padding: 0;
}

.cb-course-preview-btn:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--cb-primary);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.cb-course-preview-btn:active {
    transform: scale(0.95);
}

.cb-course-preview-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.cb-course-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.2);
}

.cb-course-card:hover::before {
    opacity: 1;
}

.cb-course-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cb-course-badge.upcoming {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0.25) 100%);
    color: var(--cb-primary);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.cb-course-badge.completed {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.25) 100%);
    color: var(--cb-success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Expired course card styling */
.cb-course-card-expired {
    opacity: 0.6;
    filter: grayscale(0.3);
    pointer-events: none;
    cursor: default;
}

.cb-course-card-expired:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
}

.cb-course-card-expired .cb-course-badge {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.15) 0%, rgba(107, 114, 128, 0.25) 100%);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.cb-course-card-expired h3,
.cb-course-card-expired .cb-detail-item,
.cb-course-card-expired .cb-detail-item span {
    color: #9ca3af;
}

.cb-course-expired-notice {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    text-align: center;
}

.cb-course-expired-notice p {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #dc2626;
}

.cb-course-expired-notice small {
    display: block;
    font-size: 0.75rem;
    color: #991b1b;
    opacity: 0.8;
}

.cb-course-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cb-heading);
    margin: 0 0 1.25rem 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.cb-course-details {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1rem;
    flex: 1;
}

.cb-course-card .cb-detail-item {
    display: flex;
    flex-direction: column;
}

.cb-course-details .cb-detail-item {
    display: flex;
    flex-direction: row;
}

.cb-detail-item {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    color: var(--cb-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    flex-wrap: nowrap;
}

.cb-detail-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    opacity: 0.7;
    stroke: var(--cb-primary);
}

.cb-detail-item span {
    display: inline;
    white-space: nowrap;
}

.cb-detail-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--cb-heading);
}

.cb-certificate-section {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.12) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    outline: none;
}

.cb-certificate-section p {
    font-size: 0.8125rem;
    color: var(--cb-text-muted);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.cb-certificate-section strong {
    color: #22c55e;
    font-weight: 700;
    font-size: 0.9375rem;
    display: block;
}

.cb-course-btn {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    letter-spacing: 0.01em;
    outline: none;
}

.cb-course-btn-primary {
    background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cb-course-btn-primary:hover,
.cb-course-btn-primary:focus {
    color: white !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
    outline: none;
}

.cb-course-btn-outline {
    background: transparent;
    color: var(--cb-heading);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.cb-course-btn-outline:hover,
.cb-course-btn-outline:focus {
    background: rgba(0, 0, 0, 0.02);
    border-color: var(--cb-primary);
    color: var(--cb-primary);
    outline: none;
}

/* Loading & Empty States */
.cb-loading-state,
.cb-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--cb-text-muted);
}

.cb-empty-state-icon {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    opacity: 0.3;
}

.cb-empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cb-heading);
    margin: 0 0 0.5rem 0;
}

.cb-empty-state p {
    color: var(--cb-text-muted);
    margin: 0;
}

.cb-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(37, 99, 235, 0.1);
    border-top-color: var(--cb-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Toast Notification */
.cb-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
}

.cb-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.cb-toast-title {
    font-weight: 600;
    color: var(--cb-heading);
    margin-bottom: 0.25rem;
}

.cb-toast-description {
    font-size: 0.875rem;
    color: var(--cb-text-muted);
}

.cb-toast.success {
    border-left: 4px solid var(--cb-success);
}

.cb-toast.error {
    border-left: 4px solid #ef4444;
}

.cb-toast.info {
    border-left: 4px solid var(--cb-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .cb-dashboard-header-content {
        padding: 0 1rem;
        height: 64px;
    }

    .cb-dashboard-container {
        padding: 0 1rem;
    }

    .cb-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cb-courses-grid {
        grid-template-columns: 1fr;
    }

    .cb-tab-trigger {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .cb-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        min-width: auto;
        max-width: none;
    }
}

/* ========================================
   Header Auth Module
   ======================================== */

.cb-header-auth {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Login button (logged out) — outline by default; gray border on light headers */
.cb-header-auth-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    padding: 8px 10px 8px 8px;
    background: transparent;
    border: none;
    border-radius: 30px;
    color: var(--cb-heading);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    outline: none;
}

.cb-header-auth-login-btn:hover {
    background: rgba(28, 92, 46, 0.08);
    color: var(--cb-primary);
    box-shadow: 0 1px 4px rgba(28, 92, 46, 0.12);
}

.cb-header-auth-login-btn:active {
    transform: translateY(0);
}

.cb-header-auth-login-btn:focus-visible {
    outline: 2px solid var(--cb-support, #2F5FBF);
    outline-offset: 2px;
}

.cb-header-auth-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: block;
    opacity: 0.9;
    transition: opacity 0.2s, color 0.2s;
}

.cb-header-auth-login-btn:hover .cb-header-auth-icon {
    opacity: 1;
}

/* User Menu (Logged In State) */
.cb-header-auth-user {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.cb-header-auth-user:active {
    transform: translateY(0);
}

.cb-header-auth-avatar {
    width: 36px;
    height: 36px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-dark) 100%);
    color: var(--cb-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(28, 92, 46, 0.3);
    border: 2px solid var(--cb-white);
}

.cb-header-auth-user:hover .cb-header-auth-avatar {
    box-shadow: 0 3px 12px rgba(28, 92, 46, 0.4);
}

.cb-header-auth-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--cb-heading);
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Dropdown Menu */
.cb-header-auth-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.cb-header-auth-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cb-header-auth-dropdown-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(28, 92, 46, 0.08) 0%, rgba(23, 76, 40, 0.12) 100%);
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.cb-header-auth-dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-dark) 100%);
    color: var(--cb-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(28, 92, 46, 0.3);
    flex-shrink: 0;
}

.cb-header-auth-dropdown-info {
    flex: 1;
    min-width: 0;
}

.cb-header-auth-dropdown-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cb-heading);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cb-header-auth-dropdown-email {
    font-size: 0.8125rem;
    color: var(--cb-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cb-header-auth-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 0.5rem 0;
}

.cb-header-auth-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--cb-heading);
    text-decoration: none !important;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.cb-header-auth-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--cb-primary);
    text-decoration: none !important;
}

.cb-header-auth-item svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.cb-header-auth-item:hover svg {
    opacity: 1;
}

.cb-header-auth-item-logout {
    color: #ef4444;
}

.cb-header-auth-item-logout:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.cb-header-auth-item-logout svg {
    color: #ef4444;
}

/* Auth Modal */
.cb-auth-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0 !important;
    transform: none !important;
    /* Ensure modal is always positioned relative to viewport, not parent container */
}

.cb-auth-modal.active {
    display: flex !important;
}

.cb-auth-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-in;
    z-index: 999998 !important;
    /* Ensure overlay covers entire viewport */
}

.cb-auth-modal-content {
    position: relative;
    background: var(--cb-white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999999 !important;
    /* Ensure content appears above overlay */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.cb-auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #1c1e22;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.cb-auth-modal-close svg {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
    flex-shrink: 0;
}

.cb-auth-modal-close svg path {
    stroke: #1c1e22;
    stroke-width: 2.5;
}

.cb-auth-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.cb-auth-modal-close:hover svg path {
    stroke: #1c1e22;
}

.cb-auth-modal-close:active {
    transform: scale(0.95);
}

/* Tabs removed - only login in modal */

.cb-auth-modal-body {
    padding: 2rem;
}

.cb-auth-modal-panel {
    display: none;
}

.cb-auth-modal-panel.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.cb-auth-modal-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.cb-auth-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cb-heading);
    margin: 0 0 0.5rem 0;
}

.cb-auth-modal-header p {
    font-size: 0.9375rem;
    color: var(--cb-text-muted);
    margin: 0;
}

/* Modal Form Inputs */
.cb-auth-modal-panel .cb-input {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cb-auth-modal-panel .cb-input:hover {
    border-color: var(--cb-primary);
}

.cb-auth-modal-panel .cb-input:focus {
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 3px rgba(28, 92, 46, 0.1);
    outline: none;
}

.cb-auth-modal-panel .cb-input.error {
    border-color: #dc3545;
}

.cb-auth-modal-panel .cb-input.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Modal Form Buttons */
.cb-auth-modal-panel .cb-btn-primary {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cb-auth-modal-panel .cb-btn-primary:hover:not(:disabled) {
    background: var(--cb-primary-dark);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28, 92, 46, 0.3);
}

.cb-auth-modal-panel .cb-btn-primary:active:not(:disabled) {
    background: var(--cb-primary-dark);
    color: white !important;
    transform: translateY(0);
}

.cb-auth-modal-panel .cb-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal Checkbox and Links */
.cb-auth-modal-panel .cb-checkbox-label {
    transition: all 0.2s;
}

.cb-auth-modal-panel .cb-checkbox-label:hover {
    color: var(--cb-primary);
}

.cb-auth-modal-panel .cb-forgot-link {
    transition: all 0.2s;
    text-decoration: none;
}

.cb-auth-modal-panel .cb-forgot-link:hover {
    color: var(--cb-primary);
    text-decoration: underline;
}

.cb-auth-modal-panel .cb-auth-link {
    transition: all 0.2s;
    text-decoration: none;
}

.cb-auth-modal-panel .cb-auth-link:hover {
    color: var(--cb-primary-dark);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .cb-header-auth-name {
        display: none;
    }

    .cb-header-auth-dropdown {
        right: -1rem;
        min-width: 220px;
    }

    .cb-auth-modal-content {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
    }

/* Tabs removed */

    .cb-auth-modal-body {
        padding: 1.5rem;
    }
}

/* ========================================
   Course Details Modal
   ======================================== */

.cb-course-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.cb-course-modal.active {
    opacity: 1;
    visibility: visible;
}

.cb-course-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cb-course-modal-content {
    position: relative;
    background: var(--cb-white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cb-course-modal.active .cb-course-modal-content {
    transform: scale(1) translateY(0);
}

.cb-course-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #1c1e22;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.cb-course-modal-close svg {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
    flex-shrink: 0;
}

.cb-course-modal-close svg path {
    stroke: #1c1e22;
    stroke-width: 2.5;
}

.cb-course-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.cb-course-modal-close:active {
    transform: scale(0.95);
}

.cb-course-modal-body {
    padding: 2.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 2.5rem);
}

.cb-course-details-modal {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cb-course-details-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cb-course-details-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.cb-course-details-badge.upcoming {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--cb-primary);
}

.cb-course-details-badge.confirmed {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(74, 222, 128, 0.1) 100%);
    color: #22c55e;
}

.cb-course-details-badge.completed {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.25) 100%);
    color: var(--cb-success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.cb-course-details-badge.expired {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.1) 100%);
    color: #ef4444;
}

.cb-course-details-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--cb-heading);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cb-course-details-description {
    font-size: 1rem;
    color: var(--cb-text);
    line-height: 1.6;
    margin: 0;
}

/* 3-Column Grid Layout */
.cb-course-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Detail Card Styling - Clean without boxes */
.cb-course-detail-card {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius);
    padding: 1rem;
}

.cb-course-detail-card-header {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 0.25rem;
}

.cb-course-detail-card-header svg {
    width: 20px;
    height: 20px;
    stroke: var(--cb-primary);
    flex-shrink: 0;
    opacity: 0.7;
}

.cb-course-detail-card-title {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1.2;
    color: var(--cb-text-muted);
}

.cb-course-detail-card-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cb-course-detail-card-value {
    font-size: 0.89rem;
    font-weight: 500;
    color: var(--cb-heading);
    margin: 0;
    line-height: 1.3;
}

.cb-course-detail-card-sub {
    font-size: 0.9375rem;
    color: var(--cb-text);
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}

.cb-course-detail-card-sub a {
    color: var(--cb-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.cb-course-detail-card-sub a:hover {
    color: var(--cb-primary-dark);
    text-decoration: underline;
}

.cb-course-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cb-primary);
}

.cb-course-certificate-section,
.cb-course-notes-section {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cb-course-certificate-section h3,
.cb-course-notes-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cb-heading);
    margin: 0 0 1rem 0;
}

.cb-course-certificate-expiry {
    font-size: 0.9375rem;
    color: var(--cb-text);
    margin: 0 0 1rem 0;
}

.cb-course-certificate-expiry strong {
    color: var(--cb-heading);
    font-weight: 600;
}

.cb-course-notes-section p {
    font-size: 0.9375rem;
    color: var(--cb-text);
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cb-course-modal-content {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 95vh;
    }

    .cb-course-modal-body {
        padding: 1.5rem;
        max-height: calc(95vh - 1.5rem);
    }

    .cb-course-details-header h2 {
        font-size: 1.5rem;
    }

    /* Responsive Grid */
    .cb-course-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .cb-course-modal-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .cb-course-modal {
        padding: 0;
    }

    .cb-course-modal-content {
        border-radius: 0;
        max-height: 100vh;
    }

    .cb-course-modal-body {
        padding: 1.25rem;
        max-height: calc(100vh - 1.25rem);
    }

    .cb-course-details-header h2 {
        font-size: 1.25rem;
    }

    /* Responsive Grid - 1 column on mobile */
    .cb-course-details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cb-course-detail-card-content {
        padding-left: 2rem;
    }
}

/* ========================================
   Theme Conflict Prevention - Form Inputs
   Ensures form fields are ALWAYS visible
   regardless of theme CSS overrides
   ======================================== */

/* CRITICAL: Force ALL inputs visible in booking wrapper */
.cb-booking-wrapper input,
.cb-booking-wrapper input[type="text"],
.cb-booking-wrapper input[type="email"],
.cb-booking-wrapper input[type="tel"],
.cb-booking-wrapper input[type="password"],
.cb-booking-wrapper input[type="checkbox"],
.cb-booking-wrapper input[type="number"],
.cb-booking-wrapper input[type="search"],
.cb-booking-wrapper textarea,
.cb-booking-wrapper select {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
    pointer-events: auto !important;
}

/* Checkbox specific override */
.cb-booking-wrapper input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
}

.cb-booking-wrapper .cb-personal-form .cb-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.cb-booking-wrapper .cb-personal-form .cb-form-group {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 1.5rem !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.cb-booking-wrapper .cb-personal-form .cb-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.cb-booking-wrapper .cb-personal-form input.cb-form-input,
.cb-booking-wrapper .cb-personal-form .cb-form-input,
.cb-booking-wrapper .cb-personal-form input[type="text"],
.cb-booking-wrapper .cb-personal-form input[type="email"],
.cb-booking-wrapper .cb-personal-form input[type="tel"],
.cb-booking-wrapper .cb-personal-form input[type="password"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 50px !important;
    padding: 0 3rem 0 1rem !important;
    font-size: 0.9375rem !important;
    color: var(--cb-heading) !important;
    background: white !important;
    border: 1px solid var(--cb-border) !important;
    border-radius: 8px !important;
    outline: none !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.cb-booking-wrapper .cb-personal-form .cb-phone-wrapper input.cb-phone-input,
.cb-booking-wrapper .cb-personal-form .cb-phone-wrapper .cb-phone-input {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1 !important;
    height: 50px !important;
    padding: 0 3rem 0 1rem !important;
    border: 1px solid var(--cb-border) !important;
    border-left: none !important;
    border-radius: 0 8px 8px 0 !important;
    background: white !important;
    box-sizing: border-box !important;
}

/* Account password fields visibility protection */
.cb-booking-wrapper .cb-account-creation-section .cb-checkbox-row {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.cb-booking-wrapper .cb-account-creation-section input[type="text"],
.cb-booking-wrapper .cb-account-creation-section input[type="password"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 50px !important;
    padding: 0.875rem 1rem !important;
    background: white !important;
    border: 1px solid var(--cb-border) !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}

/* Mobile responsive override */
@media (max-width: 768px) {
    .cb-booking-wrapper .cb-personal-form .cb-form-row {
        grid-template-columns: 1fr !important;
    }
}

