﻿/* ===== Reservation/Create — Accordion & Step Continue Button ===== */

.accordion-step {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

    .accordion-step:last-of-type {
        border-bottom: none;
    }

    .accordion-step .form-section-title {
        cursor: pointer;
        user-select: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

        .accordion-step .form-section-title::after {
            content: '\F285';
            font-family: 'bootstrap-icons';
            font-size: 0.85rem;
            color: #999;
            transition: transform 0.25s ease;
            margin-left: auto;
        }

    .accordion-step.step-open .form-section-title::after {
        transform: rotate(180deg);
    }

    .accordion-step.step-locked .form-section-title {
        cursor: not-allowed;
        opacity: 0.55;
    }

.accordion-body {
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

    .accordion-body.collapsed {
        max-height: 0 !important;
        opacity: 0;
        pointer-events: none;
    }

.res-step {
    cursor: pointer;
}

.btn-step-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: linear-gradient(135deg, #1B2A4A 0%, #2C3E5C 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 1.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-top: 1.5rem;
    box-shadow: 0 3px 10px rgba(27, 42, 74, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .btn-step-continue i {
        transition: transform 0.2s ease;
    }

    .btn-step-continue:disabled {
        background: #e2e2e2;
        color: #999;
        box-shadow: none;
        cursor: not-allowed;
    }

    .btn-step-continue:not(:disabled):hover {
        background: linear-gradient(135deg, #C9A96E 0%, #B8945A 100%);
        box-shadow: 0 5px 16px rgba(201, 169, 110, 0.35);
        transform: translateY(-1px);
    }

        .btn-step-continue:not(:disabled):hover i {
            transform: translateX(3px);
        }

    .btn-step-continue:not(:disabled):active {
        transform: translateY(0);
    }

.suggested-date-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #FDF8F4;
    border: 1px solid #EAD8C8;
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
    color: #8A6A55;
}

    .suggested-date-hint strong {
        color: #4A3728;
    }


/* ===== EK HİZMETLER ===== */
.extra-services-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.extra-service-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1.5px solid var(--iva-border, #E8DDD0);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    background: var(--iva-surface, #fff);
    user-select: none;
}

    .extra-service-option:hover {
        border-color: var(--iva-accent, #C9A96E);
        background: #fdf8f4;
    }

    .extra-service-option.selected {
        border-color: var(--iva-primary, #1B2A4A);
        background: #f0f4fa;
        box-shadow: 0 2px 8px rgba(27, 42, 74, 0.1);
    }

.es-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--iva-bg, #FAF7F2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--iva-primary, #1B2A4A);
    flex-shrink: 0;
}

.extra-service-option.selected .es-icon {
    background: var(--iva-primary, #1B2A4A);
    color: #fff;
}

.es-label {
    flex: 1;
    min-width: 0;
}

.es-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--iva-text, #2C2411);
}

.es-desc {
    font-size: 0.8rem;
    color: var(--iva-text-muted, #7A6A55);
    margin-top: 0.15rem;
}

.es-price {
    font-size: 0.8rem;
    color: var(--iva-text-muted, #7A6A55);
    margin-top: 0.2rem;
}

.es-total {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--iva-primary, #1B2A4A);
    flex-shrink: 0;
    text-align: right;
}

.extra-service-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--iva-primary, #1B2A4A);
}

/* Flatpickr  */
/* Geçmiş günler — soluk, renksiz */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    background: transparent !important;
    color: #ccc !important;
    text-decoration: none !important;
    cursor: not-allowed !important;
}

/* Boş günler — yeşil */
.flatpickr-day.fp-day-available:not(.today):not(.selected):not(.flatpickr-disabled) {
    background: rgba(34, 197, 94, 0.10) !important;
}

    .flatpickr-day.fp-day-available:not(.today):not(.selected):not(.flatpickr-disabled):hover {
        background: rgba(34, 197, 94, 0.22) !important;
    }

/* Dolu günler — kırmızı + seçilemesin */
.flatpickr-day.fp-day-blocked {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #dc2626 !important;
    text-decoration: line-through !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Seçili gün rengi bozulmasın */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--iva-primary) !important;
    color: #fff !important;
    text-decoration: none !important;
    pointer-events: auto !important;
}

/* Bugün */
.flatpickr-day.today:not(.selected) {
    border-color: var(--iva-primary) !important;
}