/* Main Container */
#sauber-booking-wizard {
    max-width: 780px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    background: #fff;
    padding: 32px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(88, 49, 155, 0.15);
}

/* Stepper Progress Indicator */
.sauber-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 0 8px;
    position: relative;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Connecting line between steps */
.step-indicator:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: -1;
    transition: background 0.3s ease;
}

.step-indicator.completed:not(:last-child)::after {
    background: #58319b;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step-indicator.active .step-number {
    background: #58319b;
    color: white;
    border-color: #58319b;
    box-shadow: 0 0 0 4px rgba(88, 49, 155, 0.2);
}

.step-indicator.completed .step-number {
    background: #58319b;
    color: white;
    border-color: #58319b;
}

.step-label {
    margin-top: 8px;
    font-size: 11px;
    color: #adb5bd;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.step-indicator.active .step-label {
    color: #58319b;
    font-weight: 600;
}

.step-indicator.completed .step-label {
    color: #58319b;
}

/* Fixed Height Steps Wrapper */
.sauber-steps-wrapper {
    min-height: 300px;
    /* Reduced from 480px to remove bottom space */
    position: relative;
}

/* Steps */
.sauber-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.sauber-step.active {
    display: flex;
    flex-direction: column;
}

/* Step 1 - Centered Content */
#step-1.sauber-step.active {
    justify-content: center;
    align-items: center;
    min-height: 250px;
    /* Reduced from 320px */
    text-align: center;
}

#step-1 p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
#sauber-booking-wizard h3 {
    text-align: center;
    color: #1a1a2e;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 24px;
}

#sauber-booking-wizard h4 {
    text-align: center;
    color: #333;
    font-weight: 700;
    margin: 24px 0 16px 0;
}

/* Buttons */
.sauber-btn,
.sauber-btn-primary,
.sauber-btn-prev,
.sauber-btn-next,
.sauber-btn-success {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.sauber-btn {
    background: linear-gradient(135deg, #58319b 0%, #7b4dc4 100%);
    color: white;
    margin: 8px;
    box-shadow: 0 4px 15px rgba(88, 49, 155, 0.4);
}

.sauber-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 49, 155, 0.5);
}

.sauber-btn-primary,
.sauber-btn-next {
    background: linear-gradient(135deg, #58319b 0%, #7b4dc4 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(88, 49, 155, 0.3);
}

.sauber-btn-primary:hover,
.sauber-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 49, 155, 0.4);
}

.sauber-btn-prev {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
    margin-right: 10px;
}

.sauber-btn-prev:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.sauber-btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20883a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.sauber-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.sauber-btn-cancel {
    background: #fff0f0;
    color: #d63638;
    border: 2px solid #ffcdd2;
}

.sauber-btn-cancel:hover {
    background: #ffebee;
    border-color: #ef9a9a;
    color: #c62828;
}

.sauber-user-selection-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    /* Increased gap */
    margin-bottom: 24px;
    flex-wrap: wrap;
    max-width: 600px;
    /* Constrain width for better centering */
    margin-left: auto;
    margin-right: auto;
}

.selection-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 24px 20px;
    /* Slightly adjusted padding */
    width: 220px;
    /* Increased base width */
    flex: 1;
    /* Allow to grow */
    min-width: 200px;
    max-width: 280px;
    /* Prevent becoming too wide */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.selection-card:hover {
    border-color: #58319b;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(88, 49, 155, 0.15);
}

.selection-card:active {
    transform: translateY(-2px);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: #f0ecf7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    /* Reduced margin */
    color: #58319b;
    transition: all 0.3s ease;
}

.selection-card:hover .card-icon {
    background: #58319b;
    color: white;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.selection-card h4 {
    margin: 0 0 8px 0 !important;
    font-size: 1.1em !important;
    color: #333 !important;
}

.selection-card p {
    margin: 0 !important;
    font-size: 0.9em !important;
    color: #666;
    line-height: 1.4;
}

.sauber-nav {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
}

/* Form Fields */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s ease;
    height: 48px;
    background-color: #fcfcfc;
}

textarea {
    height: auto;
    min-height: 100px;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2358319b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #58319b;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(88, 49, 155, 0.1);
}

/* Datepicker Icon Wrapper */
.sauber-input-icon {
    position: relative;
    width: 100%;
}

.sauber-input-icon .calendar-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #58319b;
    pointer-events: none;
    z-index: 2;
    transition: all 0.2s ease;
}

.sauber-input-icon:focus-within .calendar-icon {
    color: #7b4dc4;
}

.sauber-datepicker {
    padding-right: 45px !important;
}

.row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.row input {
    flex: 1;
}

.error-msg {
    color: #dc3545;
    font-size: 0.75em;
    display: none;
    margin-top: 5px;
    font-weight: 500;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
}

input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* Service Cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.service-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.service-card:hover {
    border-color: #58319b;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(88, 49, 155, 0.15);
}

.service-card input {
    display: none;
}

.service-card .card-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    color: #333;
}

.service-card .card-content p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

.service-card:has(input:checked) {
    border-color: #58319b;
    background: linear-gradient(135deg, #f8f4ff 0%, #ece4f7 100%);
    box-shadow: 0 4px 15px rgba(88, 49, 155, 0.2);
}

.service-card:has(input:checked) .card-content h4 {
    color: #58319b;
}

/* Addon Grid and Card Styling */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
    align-items: start;
    /* Prevent adjacent cards from stretching */
}

.addon-card {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 56px;
    /* Uniform height when collapsed */
    justify-content: center;
    box-sizing: border-box;
}

.addon-card:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.addon-card:has(input[type="checkbox"]:checked),
.addon-card.active {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #28a745;
}

.addon-card label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    width: 100%;
}

.addon-card:has(input[type="checkbox"]:checked) label,
.addon-card.active label {
    color: #1b5e20;
}

/* Custom Checkbox */
.addon-card input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #adb5bd;
    border-radius: 6px;
    margin-right: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.addon-card input[type="checkbox"]:checked {
    background: #28a745;
    border-color: #28a745;
}

.addon-card input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Addon sub-options */
#window-options,
.hourly-addon div[id$="-options"] {
    width: calc(100% + 32px);
    margin: 10px -16px -14px -16px;
    background: #fff;
    padding: 16px;
    border-radius: 0 0 10px 10px;
    border-top: 1px solid #c8e6c9;
}

.addon-card input[type="number"] {
    width: 70px;
    padding: 8px 12px;
    border-radius: 6px;
    height: 36px;
    margin-left: 10px;
}

/* Pricing */
.live-price {
    margin-top: 20px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8f4ff 0%, #ece4f7 100%);
    border-radius: 10px;
    text-align: center;
    font-size: 1.3em;
    font-weight: 700;
    color: #58319b;
    border: 1px solid rgba(88, 49, 155, 0.2);
}

.payment-note {
    font-size: 0.9em;
    color: #666;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    padding: 14px 16px;
    border-radius: 8px;
    margin-top: 16px;
    border-left: 4px solid #ffc107;
}

.payment-note p {
    margin: 0;
}

/* Login Form Styling */
.login-inner {
    max-width: 360px;
    margin: 0 auto;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(88, 49, 155, 0.1);
    border: 1px solid #efebff;
}

.login-inner h4 {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    color: #58319b !important;
}

.login-inner .form-group {
    margin-bottom: 12px;
}

.login-inner .sauber-btn-primary {
    width: 100%;
}

.flex-1 {
    flex: 1;
}

#step-5 h3 {
    margin-bottom: 32px;
}

#step-5 .form-group label {
    font-size: 0.85em;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Step 4 - Schedule Styling */
#step-4 .form-group {
    background: #f8f7ff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #efebff;
}

#step-4 .form-group label {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #58319b;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Step 5 - Customer Details Styling */
#step-5 .row {
    gap: 16px;
    margin-bottom: 16px;
}

#step-5 input,
#step-5 textarea {
    background: #fcfcfc;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 15px;
    margin-bottom: 0;
    transition: all 0.2s ease;
}

#step-5 input:focus,
#step-5 textarea:focus {
    background: #fff;
    border-color: #58319b;
}

#step-5 input[readonly] {
    background: #f1f3f5;
    color: #495057;
    cursor: not-allowed;
    border-color: #e9ecef;
}

/* Edit Booking Summary Styles */
.sauber-edit-btn {
    background: #f0ecf7;
    color: #58319b;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.sauber-edit-btn:hover {
    background: #58319b;
    color: white;
    transform: translateY(-1px);
}

.sauber-edit-btn svg {
    width: 12px;
    height: 12px;
}

.summary-section {
    margin-bottom: 20px;
    background: #fff;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #efebff;
}

.summary-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0ecf7;
    padding-bottom: 8px;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.summary-header h5 {
    margin: 0;
    font-size: 14px;
    color: #58319b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1 1 auto !important;
    min-width: 140px !important;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 6px;
    color: #495057;
}

.summary-item strong {
    color: #1a1a2e;
}

.summary-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25em;
    font-weight: 700;
    color: #58319b;
}

/* Summary Block Container - Moved from inline styles */
#sauber-summary-block {
    margin-top: 24px;
    padding: 20px;
    background: #f8f7ff;
    border-radius: 12px;
    border: 1px solid #efebff;
}

#sauber-summary-block h4 {
    margin-top: 0 !important;
    text-align: left !important;
    color: #58319b !important;
}

#summary-content {
    font-size: 14px;
    color: #495057;
}

/* Sticky Price Footer */
.sauber-price-footer {
    position: sticky;
    bottom: 0;
    background: linear-gradient(135deg, #58319b 0%, #7b4dc4 100%);
    color: white;
    padding: 16px 24px;
    margin: 24px -40px -32px;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(88, 49, 155, 0.3);
}

.sauber-price-footer .price-label {
    font-size: 14px;
    opacity: 0.9;
}

.sauber-price-footer .price-value {
    font-size: 1.5em;
    font-weight: 700;
}

/* Success Step Improvements */
#step-success.active {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    /* Take over the whole wrapper area */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 100%;
    margin: 0;
    text-align: center;
}

#sauber-booking-wizard:has(#step-success.active) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 550px;
    /* Ensure enough height even without stepper */
}

/* Ensure the wrapper also expands when it's the only child visible */
#sauber-booking-wizard:has(#step-success.active) .sauber-steps-wrapper {
    flex: 1;
    min-height: 480px;
}

.success-content {
    max-width: 400px;
    animation: fadeInUp 0.6s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

#step-success h3 {
    color: #58319b !important;
    font-size: 2em !important;
    margin-bottom: 16px !important;
}

#step-success p {
    color: #6c757d;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Hide stepper and footer on success */
#sauber-booking-wizard:has(#step-success.active) .sauber-stepper,
#sauber-booking-wizard:has(#step-success.active) .sauber-price-footer {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Mobile Responsiveness
   ========================================================================= */

@media (max-width: 768px) {
    #sauber-booking-wizard {
        padding: 24px 20px;
        max-width: 100%;
        margin: 10px;
    }

    .sauber-steps-wrapper {
        min-height: auto;
    }

    .service-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-card {
        padding: 16px 20px !important;
        text-align: left !important;
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .service-card .card-content h4 {
        margin: 0 0 2px 0 !important;
    }

    .addons-grid {
        grid-template-columns: 1fr;
    }

    .sauber-price-footer {
        margin: 24px -20px -24px;
        padding: 14px 20px;
    }
}

@media (max-width: 600px) {
    #sauber-booking-wizard h3 {
        font-size: 1.3em;
        margin-bottom: 20px;
    }

    /* Compact Mobile Stepper Design - All 6 Steps Visible */
    .sauber-stepper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 4px;
        margin-bottom: 24px;
        padding: 8px 10px;
        background: linear-gradient(135deg, #f8f7ff 0%, #fff 100%);
        border-radius: 40px;
        box-shadow: 0 2px 8px rgba(88, 49, 155, 0.08);
        border: 1px solid rgba(88, 49, 155, 0.1);
        width: 100%;
        max-width: 100%;
        overflow: visible;
        /* No scroll needed */
    }

    .step-indicator {
        flex: 0 0 auto;
        width: 34px;
        /* Exact size for 6 steps */
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    /* Hide connecting lines on mobile */
    .step-indicator:not(:last-child)::after {
        display: none;
    }

    /* Compact step number design */
    .step-number {
        width: 34px;
        height: 34px;
        font-size: 12px;
        font-weight: 700;
        background: #f5f5f5;
        border: 2px solid #ddd;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        color: #999;
    }

    /* Active step - vibrant gradient */
    .step-indicator.active .step-number {
        background: linear-gradient(135deg, #58319b 0%, #7b4dc4 100%);
        color: white;
        border-color: #58319b;
        box-shadow: 0 3px 10px rgba(88, 49, 155, 0.4),
            0 0 0 3px rgba(88, 49, 155, 0.15);
        transform: scale(1.15);
        z-index: 10;
    }

    /* Completed steps - solid purple with checkmark */
    .step-indicator.completed .step-number {
        background: #58319b;
        color: white;
        border-color: #58319b;
        box-shadow: 0 2px 6px rgba(88, 49, 155, 0.25);
    }

    /* Checkmark for completed steps */
    .step-indicator.completed .step-number::after {
        content: '✓';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 14px;
        font-weight: bold;
        color: white;
    }

    /* Hide number text for completed, show checkmark */
    .step-indicator.completed .step-number {
        font-size: 0;
    }

    /* Hide labels on mobile */
    .step-label {
        display: none;
    }

    /* Subtle pulse for active step */
    @keyframes mobilePulse {

        0%,
        100% {
            box-shadow: 0 3px 10px rgba(88, 49, 155, 0.4),
                0 0 0 3px rgba(88, 49, 155, 0.15);
        }

        50% {
            box-shadow: 0 3px 10px rgba(88, 49, 155, 0.4),
                0 0 0 5px rgba(88, 49, 155, 0.08);
        }
    }

    .step-indicator.active .step-number {
        animation: mobilePulse 2s ease-in-out infinite;
    }

    .row {
        flex-direction: column;
        gap: 0;
    }

    .row .form-group {
        margin-bottom: 16px;
    }

    .sauber-nav {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .sauber-nav button {
        width: 100%;
        margin: 0;
    }

    .sauber-btn-prev {
        margin-right: 0 !important;
    }

    /* Mobile Summary Improvements */
    #sauber-summary-block {
        padding: 16px;
        margin-top: 20px;
    }

    .summary-section {
        padding: 12px 14px;
        margin-bottom: 12px;
    }

    .summary-header h5 {
        font-size: 13px;
    }

    .sauber-edit-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .summary-item {
        font-size: 13px;
        gap: 10px;
        margin-bottom: 8px;
    }

    .summary-total {
        font-size: 1.1em;
        flex-direction: row;
        /* Keep row for total */
    }
}

/* ==========================================================================
   Flatpickr Custom Theme (Purple)
   ========================================================================= */
.flatpickr-calendar {
    box-shadow: 0 10px 40px rgba(88, 49, 155, 0.2) !important;
    border: 1px solid #efebff !important;
    border-radius: 16px !important;
    padding: 15px !important;
    font-family: 'Inter', sans-serif !important;
    background: #fff !important;
    z-index: 9999 !important;
    width: 340px !important;
    /* Force wider width */
    max-width: 95vw !important;
}

.flatpickr-days {
    width: 100% !important;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: #58319b !important;
    border-color: #58319b !important;
    color: #fff !important;
    border-radius: 8px !important;
}

.flatpickr-day.today {
    border-color: #58319b !important;
    color: #58319b !important;
}

.flatpickr-day.today:hover {
    background: #58319b !important;
    color: #fff !important;
}

.flatpickr-day:hover {
    background: #f1ebff !important;
    border-color: transparent !important;
    border-radius: 8px !important;
}

.flatpickr-months .flatpickr-month {
    color: #58319b !important;
    fill: #58319b !important;
    font-weight: 700 !important;
    height: 40px !important;
}

.flatpickr-current-month {
    font-size: 1.1em !important;
    padding-top: 5px !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 700 !important;
}

.flatpickr-weekday {
    color: #adb5bd !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    top: 5px !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #58319b !important;
}