body {
    background: linear-gradient(rgba(220, 219, 219, 0.676), rgba(255, 255, 255, 0.635)),
        url("assets/images/background_booknow.png") center center no-repeat;
    background-attachment: fixed;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    font-family: 'Ubuntu', sans-serif;
}

.multistep-container {
    max-width: 960px;
    margin: 40px auto;
    background-color: #fff;
    display: flex;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step-sidebar {
    background-color: #15354a;
    color: #fff;
    width: 280px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    background: transparent;
    color: #fff;
}

.step.active .step-number {
    background-color: #f4ad1d;
    color: #000;
}

.btn:hover {
    color: #000000;
    background-color: #f4ad1d;
    border-color: #15354a;
}

.step-content {
    flex: 1;
    padding: 40px;
}

h3 {
    font-size: 28px;
    font-weight: bold;
    color: #02295a;
}

.step-subtitle {
    color: #9699ab;
    margin-bottom: 25px;
}

.form-control {
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #d6d9e6;
}

.btn {
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: bold;
}

.btn-primary {
    background-color: #133649;
    border: none;
}

.btn-success {
    background-color: #15354a;
    border: none;
}

.btn-secondary {
    background-color: #9699ab;
    border: none;
}

#timeSlots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#timeSlots button {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(30% - 0px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-slot {
    background: #007bff;
    color: white;
}

.select2-container .select2-selection--single {
    height: 45px !important;
    padding: 10px 0px;
    border-radius: 8px;
    /* border: 1px solid #d6d9e6; */
    font-size: 1rem;
    line-height: 1.5;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 45px;
}


@media (max-width: 767.98px) {
    .multistep-container {
        flex-direction: column;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
    }

    .step-sidebar {
        width: 100%;
        padding: 20px 10px;
        flex-direction: row;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .step {
        margin-bottom: 0;
        margin-right: 20px;
        flex-direction: column;
        align-items: center;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .step-content {
        padding: 20px 15px;
    }

    .form-control,
    .select2-container {
        width: 100% !important;
    }

    #timeSlots button {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 767.98px) {
    .step-sidebar {
        width: 100%;
        padding: 20px 10px;
        flex-direction: column;
        align-items: center;
    }

    .step-sidebar img {
        width: 140px;
        margin-bottom: 20px;
    }

    .step {
        margin-bottom: 15px;
        flex-direction: row;
        align-items: center;
    }

    .step-number {
        margin-right: 10px;
        margin-bottom: 0;
    }

    .step-label {
        font-size: 12px;
    }

    .step-name {
        font-size: 14px;
    }

    /* Make steps wrap in a row under logo */
    .step-sidebar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .step {
        width: auto;
    }
}

/* ***********************Custom Calendar************************ */
.custom-calendar {
    background: #15354a;
    padding: 15px;
    border-radius: 8px;
    color: white;
    /* max-width: 450px; */
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.calendar-header button {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

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

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    opacity: 0.8;
}

.calendar-day {
    padding: 8px;
    text-align: center;
    cursor: pointer;
    border-radius: 25px;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.2);
}

.calendar-day.selected {
    background: #f4ad1d;
}

.disabled-day {
    opacity: 0.3;
    pointer-events: none;
}

.slot-row {
    grid-column: 1 / -1;
    background: #15354a;
    padding: 10px;
    border-radius: 6px;
    margin: 5px 0;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
}

.slot-grid label {
    border: 1px solid white;
    padding: 5px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
}

.slot-grid input:checked+label {
    background: white;
    color: #15354a;
}

.slot-btn {
    background: #123c4a;
    color: white;
    border: 1px solid #fff;
    padding: 10px;
    margin: 5px;
    border-radius: 6px;
}

.booked-slot {
    background: #dc3545 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Disabled slot */
.slot-disabled {
    background-color: #ffdddd !important;
    color: #b30000 !important;
    border: 1px solid #ff4d4d !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Normal slot hover */
.slot-grid label:hover {
    background-color: #0d6efd;
    color: #fff;
}

/* Default border */
.select2-container--default .select2-selection--single {
    border: 1px solid #d6d9e6 !important;
}

/* Invalid border */
select.is-invalid + .select2-container .select2-selection--single {
    border: 1px solid #dc3545 !important;
}