@font-face {
    font-family: 'Silk Serif';
    src: url('font/SilkSerif-LightItalic.woff2') format('woff2'),
        url('font/SilkSerif-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Silk Serif';
    src: url('font/SilkSerif-ExtraLight.woff2') format('woff2'),
        url('font/SilkSerif-ExtraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Silk Serif';
    src: url('font/SilkSerif-MediumItalic.woff2') format('woff2'),
        url('font/SilkSerif-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Silk Serif';
    src: url('font/SilkSerif-BlackItalic.woff2') format('woff2'),
        url('font/SilkSerif-BlackItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Silk Serif';
    src: url('font/SilkSerif-Medium.woff2') format('woff2'),
        url('font/SilkSerif-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Silk Serif';
    src: url('font/SilkSerif-SemiBoldItalic.woff2') format('woff2'),
        url('font/SilkSerif-SemiBoldItalic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Silk Serif';
    src: url('font/SilkSerif-BoldItalic.woff2') format('woff2'),
        url('font/SilkSerif-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Silk Serif';
    src: url('font/SilkSerif-Regular.woff2') format('woff2'),
        url('font/SilkSerif-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Silk Serif';
    src: url('font/SilkSerif-Italic.woff2') format('woff2'),
        url('font/SilkSerif-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Silk Serif';
    src: url('font/SilkSerif-SemiBold.woff2') format('woff2'),
        url('font/SilkSerif-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Silk Serif';
    src: url('font/SilkSerif-Light.woff2') format('woff2'),
        url('font/SilkSerif-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Silk Serif';
    src: url('font/SilkSerif-Black.woff2') format('woff2'),
        url('font/SilkSerif-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Silk Serif';
    src: url('font/SilkSerif-ExtraLightItalic.woff2') format('woff2'),
        url('font/SilkSerif-ExtraLightItalic.woff') format('woff');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Silk Serif';
    src: url('font/SilkSerif-Bold.woff2') format('woff2'),
        url('font/SilkSerif-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Badiya LT';
    src: url('font/Badiya/BadiyaLT-Regular.woff2') format('woff2'),
        url('font/Badiya/BadiyaLT-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Badiya LT';
    src: url('font/Badiya/BadiyaLT-Bold.woff2') format('woff2'),
        url('font/Badiya/BadiyaLT-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

body {
    background: #f5f5f5;
    font-family: 'Montserrat', sans-serif;
}

.rsb-head-ar {
    /* Arabic font using Badiya LT */
    font-family: 'Badiya LT', sans-serif;
    margin-left: 10px;
}

.rsb-head-en {
    font-family: 'Silk Serif', serif;
    font-weight: 900;
    text-transform: uppercase;
}

.rsb-label-ar {
    /* Arabic label styling with Badiya LT */
    font-family: 'Badiya LT', sans-serif;
    margin-left: 8px;
}

.rsb-label-en {
    /* English label styling */
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
}

.p-en {
    font-weight: 400;
}

/* Submit Button Styling - Enforced for overrides */
#rsbForm button[type="submit"] {
    background-color: #000 !important;
    color: #fff !important;
}

#rsbForm button[type="submit"]:hover {
    background-color: #D69A2D !important;
    color: #fff !important;
}

/* New Booking Button Hover Effect */
.rsb-new-booking-btn:hover {
    background-color: black !important;
    color: white !important;
    border: 2px solid #D69A2D;
}

/* Increase Flatpickr Size */
.flatpickr-calendar {
    width: 90vw !important;
    /* Fluid width */
    max-width: 600px !important;
    /* Cap width to control height */
    max-height: 85vh !important;
    /* Prevent vertical overflow */
    overflow-y: auto !important;
    /* Allow scrolling */
    font-size: 1.1rem !important;

    /* Centered Modal Style */
    padding: 20px !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 99999 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 1000px rgba(0, 0, 0, 0.5) !important;
}

.flatpickr-days {
    width: 100% !important;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-around !important;
}

.flatpickr-day {
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    flex-basis: 14.28% !important;
    max-width: 14.28% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    border-radius: 8px !important;
    /* Square shape */
    margin: 0 !important;
    box-sizing: border-box !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day:hover,
.flatpickr-day:focus {
    border-radius: 8px !important;
}

.flatpickr-current-month {
    font-size: 1.5rem !important;
    padding-top: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    left: 0 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    margin: 0 !important;
}

.flatpickr-month {
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
    display: none !important;
}

.flatpickr-weekday {
    font-size: 1.2rem !important;
    font-family: 'Badiya LT', sans-serif !important;
}

/* Form Validation Styles */
.rsb-invalid {
    border-color: #ef4444 !important;
    /* text-red-500 */
    background-color: #fef2f2 !important;
    /* bg-red-50 */
}

.rsb-error-text {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.rsb-error-text.show {
    display: block;
}

[type=button],
[type=submit],
button {
    border: unset !important;
}

/* Intl Tel Input Styling */
.iti {
    width: 100%;
    direction: ltr !important;
}

.iti__country-list {
    text-align: left;
    z-index: 99 !important;
}

/* Force flag/arrow container to the left */
.iti__flag-container {
    left: 0 !important;
    right: auto !important;
}

#rsb_phone_input {
    text-align: left;
    direction: ltr !important;
    /* Ensure padding accommodates the flag on the left */
    padding-left: 100px !important;
    padding-right: 12px !important;
}

/* Language Toggle Styling */
.rsb-lang-toggle-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.rsb-lang-toggle {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 20px;
    padding: 0;
    position: relative;
    cursor: pointer;
    width: 80px;
    height: 36px;
    border: 1px solid #e5e7eb;
}

.rsb-lang-toggle input {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    cursor: pointer;
    margin: 0;
}

.rsb-lang-btn {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
    transition: color 0.3s;
    user-select: none;
    line-height: 36px;
    color: #6b7280;
    pointer-events: none;
    /* Let clicks pass to input */
}

.rsb-lang-btn.active {
    color: #000;
}

/* Toggle Slider Positioning */
.rsb-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 36px;
    height: 30px;
    background: #D69A2D;
    border-radius: 16px;
    transition: transform 0.3s ease;
    z-index: 1;
}

/* When checkbox is checked (EN selected) */
.rsb-lang-toggle input:checked+.rsb-slider {
    transform: translateX(38px);
}

/* RTL Mode: Slider starts on RIGHT (AR), moves LEFT when checked (EN) */
.rsb-form-ar .rsb-slider {
    left: auto;
    right: 2px;
}

.rsb-form-ar .rsb-lang-toggle input:checked+.rsb-slider {
    transform: translateX(-38px);
}

/* Make sure label is clickable */
.rsb-lang-toggle {
    cursor: pointer;
    position: relative;
    z-index: 0;
}

/* Ensure input is on top */
.rsb-lang-toggle input {
    z-index: 10;
    cursor: pointer;
}

/* Select Dropdown Arrow Alignment */
/* In LTR (English), move arrow to the right */
.rsb-form-en select {
    background-position: left 12px center !important;
    padding-left: 40px !important;
    padding-right: 12px !important;
}

/* In RTL (Arabic), keep arrow on right (default) */
.rsb-form-ar select {
    background-position: right 12px center !important;
    padding-right: 40px !important;
    padding-left: 12px !important;
}

/* Helper classes */
.rsb-hidden {
    display: none !important;
}

/* Ensure text alignment follows direction */
.rsb-form-ar {
    direction: rtl;
    text-align: right;
}

.rsb-form-en {
    direction: ltr;
    text-align: left;
}

.rsb-form-en .rsb-head-en {
    display: block;
}

.rsb-form-en .rsb-head-ar {
    display: none;
}

.rsb-form-ar .rsb-head-en {
    display: none;
}

.rsb-form-ar .rsb-head-ar {
    display: block;
}

/* Font Utilities */
.rsb-font-badiya {
    font-family: 'Badiya LT', sans-serif !important;
}

.rsb-font-montserrat {
    font-family: 'Montserrat', sans-serif !important;
}