/* Booking Wizard Styles */

/* Step indicators */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.step-indicator.active {
    color: #166534;
}

.step-indicator.completed {
    color: #16a34a;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    font-size: 0.75rem;
    font-weight: 700;
    transition: background 0.3s, color 0.3s;
}

.step-indicator.active .step-num {
    background: #166534;
    color: white;
}

.step-indicator.completed .step-num {
    background: #16a34a;
    color: white;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 0.25rem;
}

/* Calendar */
#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-header {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.cal-day {
    padding: 0.625rem 0.25rem;
    text-align: center;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    user-select: none;
}

.cal-day:hover:not(.disabled):not(.booked) {
    background: #dcfce7;
}

.cal-day.today {
    font-weight: 700;
    box-shadow: inset 0 0 0 2px #16a34a;
}

.cal-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

.cal-day.booked {
    background: #fecaca;
    color: #991b1b;
    cursor: not-allowed;
}

.cal-day.selected {
    background: #166534;
    color: white;
    font-weight: 600;
}

.cal-day.in-range {
    background: #bbf7d0;
    color: #166534;
}

.cal-day.check-in {
    background: #166534;
    color: white;
    border-radius: 0.5rem 0 0 0.5rem;
}

.cal-day.check-out {
    background: #166534;
    color: white;
    border-radius: 0 0.5rem 0.5rem 0;
}

.cal-day.empty {
    cursor: default;
}

/* Cottage selection in wizard */
.cottage-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cottage-option:hover {
    border-color: #86efac;
    background: #f0fdf4;
}

.cottage-option.selected {
    border-color: #166534;
    background: #f0fdf4;
    box-shadow: 0 0 0 1px #166534;
}

.cottage-option .cottage-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.cottage-option.selected .cottage-radio {
    border-color: #166534;
}

.cottage-option.selected .cottage-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #166534;
}

/* Payment option */
.payment-option {
    transition: all 0.2s;
}

.payment-option:has(input:checked) {
    border-color: #166534;
    background: #f0fdf4;
}

.payment-option:has(input:checked) .payment-radio div {
    display: block !important;
}

.payment-option:has(input:checked) .payment-radio {
    border-color: #166534;
}

/* Loading spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: #166534;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error message */
.booking-error {
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Responsive step indicators */
@media (max-width: 640px) {
    .step-indicator span:not(.step-num) {
        display: none;
    }
    .step-line {
        min-width: 12px;
    }
}
