:root {
    --primary-color: #CC6CE6;
    /* Active & filled step */
    --step-line: #858282;
    --step-inactive: #9F9AA1;
    --label-color: #0A0A0A;
    --border-color: #A6A6A6;
    --bg-light: #FFFFFF;
    --white: #ffffff;
    --text-color: #333333;
    --radius-lg: 16px;
    --radius-md: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Scope resets to booking section only to prevent conflicts */
.booking-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nunito", sans-serif !important;
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    font-family: "Nunito", sans-serif;
}

.booking-section {
    margin-top: 20px;
    padding-bottom: 30px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Background Patterns */
    background-image:
        url('../images/bg-mountain-pattern.png'),
        url('../images/flower-patttern.svg'),
        url('../images/flower-patttern.svg'),
        url('../images/star-patttern.svg'),
        url('../images/star-patttern.svg');

    background-position:
center top,
        30% 3%,
        /* Flower 1 */
        80% 3%,
        /* Flower 2 */
        10% 10%,
        /* Star 1 */
        92% 17%;

    background-repeat: no-repeat;
    background-size:
        cover,
        40px,
        /* Flower Size */
        40px,
        /* Flower Size */
        20px,
        /* Star Size */
        20px;
    /* Star Size */

    position: relative;
    overflow-x: hidden;
    transition: background-position 1.5s cubic-bezier(0.25, 1, 0.5, 1), background-size 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smooth transition for background movement */
}

/* Background Position Adjustment for Step 2 */
.booking-section.step-2-active {
    transition: none;

    background-position:
        center bottom,
        8% 40%,
        /* Flower 1 - Falling and moving left */
        95% 5%,
        /* Flower 2 - Falling and moving right */
        10% 10%,
        /* Star 1 - Rising */
        88% 1%;
    /* Star 2 - Rising */

    background-size: cover,
        50px,
        /* Flower 1 grows (closer) */
        50px,
        /* Flower 2 shrinks (further) */
        20px,
        /* Star 1 grows */
        20px;
    /* Star 2 shrinks */
}

.booking-section .title-font {
    font-family: "Cormorant Garamond", serif;
}

.booking-section .booking-container {
    width: 60%;
    /* Step 1 Width */
    margin: 0 auto;
    /* Wider for 2-col layout */
    padding: 0px;
    position: relative;
    z-index: 10;
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smooth transition */
}

.booking-section .booking-container.wide {
    width: 65%;
    /* Step 2 Width */
}

.booking-section .booking-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    /* Added border for box as requested */
    box-shadow: var(--shadow);
    padding: 40px;
    min-height: 400px;
    /* Give it some height structure */
    display: flex;
    flex-direction: column;
}

/* Steps Indicator */
.booking-section .steps-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 30px;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    gap: 30px;
    width: 100%;
}

.booking-section .steps-indicator-wrapper {
    border-bottom: 1px solid #DBDBDB;
    width: 100%;
}

.booking-section .step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.booking-section .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--step-inactive);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.booking-section .step-label {
    font-size: 18px;
    color: var(--step-inactive);
    font-weight: 400;
}

.booking-section .title-container {
    text-align: center;
}

.booking-section .step-title {
    color: #CC6CE6;
    margin: 20px 0 0;
    font-size: 20px;
}

.booking-section p.section-desc {
    font-size: 12px;
}

/* Connecting Line */
.booking-section .steps-line {
    height: 0.9px;
    background: var(--step-line);
    flex-grow: 1;
    margin: 0 15px;
    /* Spacing between circle and line */
    margin-bottom: 25px;
    /* Adjust alignment with circle */
    max-width: 100px;
}

/* Active State */
.booking-section .step-item.active .step-circle,
.booking-section .step-item.completed .step-circle {
    background: var(--primary-color);
}

.booking-section .step-item.active .step-label,
.booking-section .step-item.completed .step-label {
    color: var(--primary-color);
}

/* Step Content Layout */
.booking-section .step-content {
    display: none;
    flex-grow: 1;
    animation: fadeIn 0.4s ease;
}

.booking-section .step-content.active {
    display: flex;
    flex-direction: column;
}
#details-form{
    width: 100%;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step 1 Specific Grid */
.booking-section .details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.booking-section .form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--label-color);
    font-weight: 400;
    font-size: 18px;
}

.booking-section .form-input {
    width: 100%;
    padding: 15px;
    background: #F3F3F5;
    border: none;
    border-radius: 8px;
    font-size: 18px !important;
    color: #333;
    font-family: "Nunito", sans-serif;
    height: auto;

}

.booking-section .form-input::placeholder {
    color: #B6B6B7;
    font-size: 18px;
    letter-spacing: normal;
}

.booking-section .form-input:focus {
    outline: 2px solid var(--primary-color);
    background: #fff;
}

/* OTP Split Input Styles */
.booking-section #otp-wrapper .form-group label {
    text-align: center;
}

.booking-section #otp-wrapper {
    margin-top: 30px;
}

.booking-section .otp-input-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.booking-section .otp-digit input {
    font-family: "Nunito", sans-serif;

}

.booking-section .otp-digit {
    font-family: "Nunito", sans-serif;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: 1px solid #DBDBDB;
    background: #fff;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.booking-section .otp-digit:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(204, 108, 230, 0.2);
    background: #fff;
    transform: translateY(-2px);
}


.booking-section .btn-next-container {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 10px;
}

/* Buttons */
.booking-section .btn {
    padding: 15px 15px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.booking-section .btn-primary {
    font-family: "Nunito", sans-serif;
    background: var(--primary-color);
    color: var(--white);
    min-width: 80px;
}

.booking-section .btn-primary:hover {
    filter: brightness(0.95);
}

.booking-section .btn-secondary {
    background: #e0e0e0;
    color: #333;
}

/* Step 2 Styles (Availability) */
.booking-section .availability-container {
    display: grid;
    grid-template-columns: 0.6fr 0.8fr;
    gap: 30px;
    margin-top: 30px;
}

/* Flatpickr Customization - Matching User Request */
.booking-section .calendar-section .flatpickr-calendar {
    box-shadow: none !important;
    border: 1px solid #E0E0E0 !important;
    border-radius: 16px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 20px;
    background: #fff;
}

.booking-section .flatpickr-months {
    margin-bottom: 20px;
}

.booking-section .flatpickr-current-month {
    padding-top: 0;
    font-size: 1.1rem;
    font-weight: 600;
}
.booking-section .flatpickr-months .flatpickr-prev-month, .booking-section .flatpickr-months .flatpickr-next-month{
    top: 12px;
}
.booking-section .flatpickr-current-month .flatpickr-monthDropdown-months, .booking-section .flatpickr-current-month input.cur-year, .booking-section .flatpickr-current-month input.cur-year[disabled], .booking-section .flatpickr-current-month input.cur-year[disabled]:hover{
    font-weight: 400;
    color: #0A0A0A;
    font-size: 20px;
}
.booking-section .flatpickr-weekday {
    color: #888;
    font-weight: 600;
}

.booking-section .flatpickr-day {
    border-radius: 8px !important;
    /* Soft rounded corners like image */
    margin-top: 5px;
    height: 38px;
    line-height: 38px;
    color: #333;
    font-weight: 500;
    border: 1px solid transparent;
    /* Prepare for borders */
}

/* Selected Date */
.booking-section .flatpickr-day.selected,
.booking-section .flatpickr-day.startRange,
.booking-section .flatpickr-day.endRange,
.booking-section .flatpickr-day.selected.inRange,
.booking-section .flatpickr-day.startRange.inRange,
.booking-section .flatpickr-day.endRange.inRange,
.booking-section .flatpickr-day.selected:focus,
.booking-section .flatpickr-day.startRange:focus,
.booking-section .flatpickr-day.endRange:focus,
.booking-section .flatpickr-day.selected:hover,
.booking-section .flatpickr-day.startRange:hover,
.booking-section .flatpickr-day.endRange:hover,
.booking-section .flatpickr-day.selected.prevMonthDay,
.booking-section .flatpickr-day.startRange.prevMonthDay,
.booking-section .flatpickr-day.endRange.prevMonthDay,
.booking-section .flatpickr-day.selected.nextMonthDay,
.booking-section .flatpickr-day.startRange.nextMonthDay,
.booking-section .flatpickr-day.endRange.nextMonthDay {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(204, 108, 230, 0.3);
}

/* Today Date */
.booking-section .flatpickr-day.today {
    border-color: var(--primary-color) !important;
    background: transparent;
    color: #333;
}

.booking-section .flatpickr-day.today:hover {
    background: #F0F0F0;
    color: #333;
}

.booking-section .flatpickr-day.today.selected {
    color: #fff !important;
    background: var(--primary-color) !important;
}

/* Disabled Dates (Unavailable/Booked/Past) */
.booking-section .flatpickr-day.flatpickr-disabled,
.booking-section .flatpickr-day.flatpickr-disabled:hover {

    cursor: not-allowed;
    color: #ccc !important;
    border-color: transparent;
}

/* Hover State for regular days */
.booking-section .flatpickr-day:hover {
    background: #F0F0F0;
    border-color: transparent;
}

/* Time Slots - Matching Admin Panel (.slot-choice style) */
/* Time Slots - Matching User Request (Radio Style) */
.booking-section .time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
}

.booking-section .slots-section {
    position: relative;
    min-height: 200px;
}

.booking-section .slots-loader {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 100;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}

.booking-section .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin-loader 1s linear infinite;
}

@keyframes spin-loader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.booking-section .slot-separator {
    grid-column: 1 / -1;
    width: 100%;
    height: 30px;
}

.booking-section .time-slot {
    padding: 12px 10px;
    border: 1px solid #CECECE;
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    text-align: left;
    font-size: 12px;
    color: #515050;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    transition: all 0.2s;
    font-weight: 700;
}

.booking-section .time-slot:hover {
    border-color: var(--primary-color);
    background: #FAF5FC;
}

/* Radio Circle Icon */
.booking-section .time-slot::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    border: 2px solid #5F5F61;
    border-radius: 50%;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
    background: transparent;
    box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 10px #5F5F61;
}

.booking-section .time-slot.selected {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.booking-section .time-slot.selected::before {
    border-color: var(--white);
    box-shadow: inset 0 0 0 3px var(--primary-color), inset 0 0 0 10px var(--white);
}

.booking-section .time-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #eee;
    border-color: #ddd;
    color: #999;
}

.booking-section .time-slot.disabled::before {
    border-color: #ccc;
    background-color: transparent;
    box-shadow: none;
}

/* Back Button */
.booking-section .btn.btn-secondary {
    background: #4E4D4E;
    /* Back button color */
    color: var(--white);
    padding: 15px 15px;
}

.booking-section .btn.btn-secondary:hover {
    background: #333;
}

.booking-section .actions.between {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    align-items: center;
    width: 100%;
}

.booking-section .step-3-active .booking-container {
    width: 50%;
    margin: auto;
}

/* Success Step Styling */
/* Success Step Styling */
.booking-section .success-message {
    padding: 0;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.booking-section .success-split-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 20px;
}

.booking-section .success-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Left align for desktop */
}

.booking-section .success-right {
    flex: 1.3;
    background: #FAFAFA;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #EAEAEA;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
}

.booking-section .icon-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.booking-section .icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.booking-section .success-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--label-color);
    margin-bottom: 15px;
    text-align: left;
    line-height: 1.2;
}

.booking-section .success-desc {
    color: #888;
    font-size: 18px;
    margin-bottom: 0;
    text-align: left;
    font-weight: 500;
}

.booking-section .success-divider {
    width: 100%;
    /* For optional horizontal divider */
    height: 1px;
    background: #EAEAEA;
    margin: 20px 0;
}

.booking-section .success-details-row {
    font-size: 16px;
    color: #444;
    font-weight: 500;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.booking-section .success-details-row:last-child {
    margin-bottom: 0;
}

.booking-section .detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
}

.booking-section .detail-value-text {
    font-weight: 700;
    color: #222;
}

.booking-section .separator {
    color: #ddd;
    font-weight: 300;
    font-size: 14px;
}

/* Validation Errors */
.booking-section .validation-error {
    color: #FF5F6D;
    font-size: 14px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}
.calendar-section span.arrowUp,.calendar-section span.arrowDown{
    display: none;
}
/* Responsive */
@media (max-width: 991px) {
    .booking-section .success-split-container {
        flex-direction: column;
        gap: 30px;
        padding: 0;
        text-align: center;
    }

    .booking-section .success-left {
        align-items: center;
        width: 100%;
    }

    .booking-section .success-title,
    .booking-section .success-desc {
        text-align: center;
    }

    .booking-section .success-right {
        width: 100%;
        padding: 20px;
    }

    .booking-section .success-details-row {
        justify-content: center;
    }
}

/* Responsive */

@media all and (min-width: 1025px) and (max-width: 1368px) {
    .booking-section .booking-container {
        width: 70%;
    }

    .booking-section .booking-container.wide {
        width: 85%;
    }

    .booking-section.step-2-active {
        background-position: center bottom, 2% 40%,
            /* Flower 1 - Falling and moving left */
            99% 5%,
            /* Flower 2 - Falling and moving right */
            4% 10%,
            /* Star 1 - Rising */
            95% 1%;
    }
}

@media (max-width: 1025px) {
    .booking-section .booking-container {
        width: 80%;
    }

    .booking-section .availability-container {
        grid-template-columns: 1fr;
        width: 100%;
            justify-content: center;
    align-items: center;
    }
.booking-section .step-content.active {
    justify-content: center;
    align-items: center;
}
    .booking-section .calendar-section .dayContainer {
        max-height: 220px;
        gap: 0;
    }

    .booking-section .booking-container.wide {
        width: 80%;
    }

    .booking-section .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .booking-section .calendar-section .flatpickr-calendar,
    .booking-section .calendar-section .flatpickr-innerContainer {
        width: min-content !important;
    }

    .booking-section .step-3-active .booking-container {
        width: 60%;
    }

}

@media (max-width: 996px) {

    .booking-section .booking-container.wide {
        width: 84%;
    }

    .booking-section .step-3-active .booking-container {
        width: 80%;
    }

}

@media (max-width: 768px) {

    .booking-section .booking-container,
    .booking-section .booking-container.wide {
        width: 95%;
    }

    .booking-section .step-3-active .booking-container {
        width: 90%;
    }

    .booking-section .calendar-section .dayContainer {
        max-height: 250px;
        gap: 5px;
    }

    .booking-section .availability-container {
        margin-top: 20px;
    }

    .booking-section .booking-card {
        padding: 20px;
    }

    .booking-section .step-circle {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .booking-section .steps-indicator {
        gap: 20px;
    }

    .booking-section .step-label {
        font-size: 15px;
    }

    .booking-section .title-container h2 {
        font-size: 18px;
    }

    .booking-section .details-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: 20px;
    }

    .booking-section .steps-indicator {
        padding-bottom: 20px;
    }

    /* Adjust background for mobile */
    .booking-section {
        background-position:
            center bottom,
            5% 5%,
            100% 0%,
            15% 15%,
            80% 0%;
        background-size:
            cover,
            40px,
            40px,
            20px,
            20px;
    }

    .booking-section.step-2-active {
        background-position:
            center bottom,
            5% 5%,
            100% 0%,
            15% 15%,
            80% 0%;
        background-size:
            cover,
            40px,
            40px,
            20px,
            20px;
    }
}