/**
 * Room Booking Off-Canvas Styles
 * Version: 1.2.25
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Dusit Text", Sans-serif;
    /* background: #f5f5f5; */
    color: #333;
}

.rbo-trigger-btn {
    background-color: #00000000;
    font-family: "Dusit Text", Sans-serif;
    font-size: 1em;
    font-weight: 600;
    fill: #FFFFFF;
    color: #FFFFFF;
    transition-duration: 0.3s;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #FFFFFF;
    border-radius: 0px 0px 0px 0px;
    padding: 12px 24px;
    cursor: pointer;
}

.rbo-trigger-btn:hover {
    background-color: #FFFFFF70;
    color: #FFFFFF;
    border-color: #FFFFFF70;
}

.rbo-trigger-btn:focus {
    background-color: #FFFFFF70;
    color: #FFFFFF;
    border-color: #FFFFFF70;
}

/* Off-canvas overlay */
.rbo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.rbo-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Off-canvas panel */
.rbo-offcanvas {
    position: fixed;
    top: 0;
    right: -370px;
    width: 370px;
    height: 100%;
    background: linear-gradient(180deg, #f8f6f4 0%, #ffffff 100%);
    z-index: 999999;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.rbo-offcanvas.active {
    right: 0;
}

/* Close button */
.rbo-close {
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #888;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rbo-close:hover {
    background: white;
    color: #333;
    transform: scale(1.1);
}

/* Header section */
.rbo-header {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: row;
    padding: 20px 30px 10px 30px;
}

.rbo-resort-name {
    font-size: 22px;
    font-weight: 300;
    color: #888;
    letter-spacing: 1px;
    width: 90%;
}

/* Form styles */
.rbo-form {
    padding: 0 30px 40px;
}

/* Date section */

.rbo-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.rbo-date-group {
    text-align: center;
}

.rbo-date-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: left;
    width: 100%;
}

.rbo-date-number {
    font-size: 36px;
    font-weight: 300;
    color: #333;
    line-height: 1;
    margin-bottom: 5px;
}

.rbo-date-month {
    font-size: 14px;
    color: #888;
    margin-bottom: 2px;
}

.rbo-date-day {
    font-size: 12px;
    color: #aaa;
    letter-spacing: 0.5px;
}

.rbo-dropdown-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ccc;
}

/* Counter sections */
.rbo-counter-section {
    background: white;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rbo-counter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f5f5f5;
}

.rbo-counter-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rbo-counter-info h4 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.rbo-counter-info p {
    font-size: 12px;
    color: #888;
}

.rbo-counter-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rbo-counter-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e8e8e8;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #888;
    transition: all 0.3s ease;
    font-weight: 300;
}

.rbo-counter-btn:hover:not(:disabled) {
    border-color: #32323f;
    color: #32323f;
    background: rgba(184, 152, 138, 0.05);
}

.rbo-counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.rbo-counter-value {
    min-width: 35px;
    text-align: center;
    font-weight: 400;
    font-size: 18px;
    color: #333;
}

/* Promo code section */
.rbo-promo-section {
    margin: 30px 0;
}

.rbo-promo-link {
    color: #888;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.rbo-promo-link:hover {
    color: #32323f;
}

/* Submit button */
.rbo-submit {
    width: 100%;
    background: #32323f;
    color: white;
    border: none;
    padding: 18px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(184, 152, 138, 0.3);
    text-align: center;
}

.rbo-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 152, 138, 0.4);
}

.rbo-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .rbo-offcanvas {
        width: 100%;
        right: -100%;
    }

    .rbo-header {
        padding: 20px 20px 20px;
    }

    .rbo-form {
        padding: 0 20px 30px;
    }

    .rbo-date-row {
        gap: 15px;
    }

    .rbo-counter-section {
        padding: 0px;
        background: transparent;
        box-shadow: none;
    }

    .rbo-submit {
        margin-top: 10px;
    }
}

/* Demo styling */
.demo-container {
    padding: 50px;
    text-align: center;
    background: linear-gradient(135deg, #f8f6f4, #ffffff);
    min-height: 100vh;
}

.demo-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 300;
}

.rbo-date-display {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    padding: 20px 15px;
    transition: all 0.3s ease;
    position: relative;
    text-align: left;
    cursor: pointer;
    border: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rbo-date-display:hover {
    border-color: #32323f;
    box-shadow: 0 4px 15px rgba(175, 137, 93, 0.15) !important;
}

.rbo-date-display.error {
    border-color: #e74c3c !important;
    background-color: #fdf2f2 !important;
}

#rbo-dates-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    flex: 1;
}

.rbo-dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ccc;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.rbo-date-display:hover .rbo-dropdown-arrow {
    border-top-color: #32323f;
    transform: translateY(-1px);
}

/* Error styles */
.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}