/* ===========================================================
   Időpontfoglalás oldal — a fő style.css változóira épül
   =========================================================== */

.active-link {
    color: var(--accent-color) !important;
}

/* --- Kis hero a foglalás oldalhoz --- */
.booking-hero {
    /* Fekete-fehérre konvertált, 16:9-re vágott íróasztalos fotó
       a korábbi, oda nem illő körömfestős stockfotó helyett */
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.7)),
                url('../img/booking-hero.webp') center/cover no-repeat;
    padding: 110px 0 90px;
    text-align: center;
    color: #fff;
}

.booking-hero .eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 14px;
    font-weight: 600;
}

.booking-hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-style: italic;
    margin-bottom: 14px;
}

.booking-hero p {
    font-weight: 300;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

/* --- Szekció keret --- */
.booking-section {
    background-color: #fff;
    padding: 90px 0 110px;
}

.booking-layout {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.step-heading {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 28px;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent-color);
    letter-spacing: 1px;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 2px;
}

.step-heading h2 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: var(--primary-color);
}

/* --- 01: Szolgáltatás választó --- */
.step-heading-centered {
    justify-content: center;
}

.booking-step-centered {
    text-align: center;
}

/* - Egy kategória (pl. "Festés & Szín") összes szolgáltatás-gombja
     ebbe a wrapper-be kerül, hogy áttekinthető, csoportosított legyen
     a sok szolgáltatás - lásd foglalas.php szolgaltatas_feltoltes() */
.service-groups {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.service-group-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.service-options {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.service-options-centered {
    justify-content: center;
    text-align: center;
}

.service-pill {
    font-family: var(--font-main);
    background: var(--secondary-color);
    border: 1px solid transparent;
    color: var(--text-color);
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.service-pill:hover {
    border-color: var(--accent-color);
}

.service-pill-selected {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.service-pill-selected::before {
    content: "✓ ";
    color: var(--accent-color);
}

/* --- 02+03: Naptár és időpontok egymás mellett --- */
.calendar-time-columns {
    display: grid;
    grid-template-columns: minmax(320px, 480px) 1fr;
    gap: 50px;
    align-items: start;
}

.calendar-col,
.time-col {
    min-width: 0;
}

.calendar-card {
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 30px;
    max-width: 480px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-color);
    text-transform: capitalize;
}

.cal-nav {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.cal-nav:hover {
    background: var(--primary-color);
    color: #fff;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 8px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

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

.cal-day-open:hover {
    background: #f1e9d2;
}

.cal-day-disabled {
    color: #ccc;
    background: transparent;
    cursor: not-allowed;
    text-decoration: line-through;
}

.cal-day-today {
    font-weight: 700;
    color: var(--accent-color);
}

.cal-day-selected {
    background: var(--accent-color) !important;
    color: #fff !important;
    font-weight: 600;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #777;
}

.calendar-legend .dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot-open { background: #fff; border: 1px solid var(--primary-color); }
.dot-closed { background: #ddd; }
.dot-selected { background: var(--accent-color); }

/* --- 03: Időpontok (30 perces slotok) --- */
.time-hint {
    color: #888;
    font-size: 0.95rem;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}

.time-slot {
    font-family: var(--font-main);
    background: #fff;
    border: 1px solid #e2ddd0;
    color: var(--text-color);
    padding: 12px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot:hover:not(:disabled) {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.time-slot-selected {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff !important;
    font-weight: 600;
}

.time-slot-taken {
    background: #f4f4f4;
    color: #ccc;
    text-decoration: line-through;
    cursor: not-allowed;
}

/* --- 04: Adatok / összegzés / megerősítés --- */
.details-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.details-col {
    min-width: 0;
}

.booking-summary {
    background: var(--secondary-color);
    border-left: 3px solid var(--accent-color);
    padding: 20px 24px;
    border-radius: 4px;
    margin-bottom: 30px;
    max-width: 500px;
    font-size: 0.95rem;
}

.booking-summary p {
    margin-bottom: 6px;
}

.booking-form {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
}

.form-row input,
.form-row textarea {
    font-family: var(--font-main);
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--text-color);
    background: #fff;
    resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* - A booking.js ide írja ki, ha a szerver elutasítja a foglalást
     (pl. mert időközben más már lefoglalta ugyanazt az időpontot) */
.form-error {
    color: #b3261e;
    background: #fdecea;
    border-left: 3px solid #b3261e;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-submit {
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    align-self: flex-start;
}

.btn-submit:disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.booking-form-locked .form-row input,
.booking-form-locked .form-row textarea {
    background: #f6f6f4;
    color: #aaa;
}

.booking-form-locked .btn-submit {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.booking-confirmation {
    max-width: 500px;
    background: var(--primary-color);
    color: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    position: sticky;
    top: 110px;
}

.confirm-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-size: 1.3rem;
    margin: 0 auto 18px;
}

.booking-confirmation h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.booking-confirmation p {
    margin-bottom: 14px;
    color: #ddd;
    font-size: 0.95rem;
}

.confirm-note strong {
    color: var(--accent-color);
}

.btn-outline {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: #fff;
}

/* --- Reszponzivitás --- */
@media (max-width: 768px) {
    .booking-hero h1 {
        font-size: 2.2rem;
    }
    .calendar-card {
        max-width: 100%;
    }
    .time-grid {
        grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    }
    .details-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .calendar-time-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .booking-confirmation {
        position: static;
        max-width: 100%;
    }
}