/* 
 * booking.css
 * Purpose: Styling for the booking widget and checkout modal
 */

/* Widget in Sidebar */
.booking-widget {
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px; /* Sticky sidebar */
}

.widget-header {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-bg);
    padding-bottom: 1rem;
}

.room-item {
    margin-bottom: 1.5rem;
}

.room-item h4 {
    margin-bottom: 0.25rem;
    color: var(--color-primary);
}

.room-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.room-price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: #7f8c8d;
}

.room-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Modal Overlay */
.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.booking-modal.active {
    display: flex;
}

/* Modal Content */
.booking-modal-content {
    background: var(--color-white);
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: var(--color-primary);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* Price Breakdown */
.price-breakdown {
    background: var(--color-bg);
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.price-breakdown .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.price-breakdown .total-row {
    border-top: 1px solid #ddd;
    padding-top: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.fee-note {
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}