/* Calendar Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 20;
    color: var(--calendar-text);
}

.calendar-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.month-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--calendar-text);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.month-nav-btn:hover {
    background: var(--input-bg);
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    text-align: center;
}

.weekday-label {
    font-weight: bold;
    color: var(--calendar-text);
    opacity: 0.7;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.calendar-day {
    padding: 15px;
    border-radius: 8px;
    background: var(--glass-subtle);
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
    display: flex;
    font-weight: 500;
    color: var(--calendar-text);
}

.calendar-day:hover:not(.disabled) {
    background: var(--input-bg);
    transform: scale(1.05);
}

/* Date States */
.calendar-day.weekend {
    color: #fe5f55;
    background: rgba(40, 0, 0, 0.3);
    /* Dark red tint */
    opacity: 0.5;
    pointer-events: none;
    /* Lockout */
    border: 1px solid rgba(254, 95, 85, 0.1);
}

.calendar-day.weekday {
    color: #4caf50;
    /* Green for weekdays */
}

.calendar-day.booked {
    background: #d32f2f;
    /* Solid Red */
    color: white;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.calendar-day.past {
    opacity: 0.3;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
}

.calendar-day.selected {
    background: #007bff;
    color: white;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

/* Strict Selection States */
.calendar-day.is-start {
    background: #007bff;
    color: white;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
    border-radius: 12px 0 0 12px !important;
}

.calendar-day.is-end {
    background: #007bff;
    color: white;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
    border-radius: 0 12px 12px 0 !important;
}

.calendar-day.is-between {
    background: rgba(0, 123, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 0 !important;
    color: white;
}

/* Single Day selection (Start is also End) */
.calendar-day.is-start.is-end {
    border-radius: 12px !important;
}

/* Previous/Next Month Faded Days */
.calendar-day.other-month {
    opacity: 0.3;
}

/* Booking Details Reveal */
#booking-details-section {
    transition: all 0.5s ease;
    opacity: 1;
    transform: translateY(0);
}

#booking-details-section.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

/* Glass Select Dropdown */
.glass-select {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 40px 12px 15px;
    /* Right padding for arrow */
    border-radius: 8px;
    color: white;
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* White Arrow SVG */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

.glass-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.glass-select option {
    background: #333;
    /* Fallback for options */
    color: white;
}

/* Form Inputs */
.step-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-form label {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 5px;
    display: block;
}

.step-form input,
.step-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 8px;
    color: white;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
    font-family: inherit;
    line-height: 1.5;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #00c853, #64dd17);
    border: none;
    padding: 15px;
    border-radius: 50px;
    color: black;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.5;
}