
:root {
    --booking-bg: #f5efe7;
    --booking-card: #fcf9f5;
    --booking-text: #171717;
    --booking-muted: #66615d;
    --booking-border: #e4ddd3;

    --booking-gold: #b5964d;
    --booking-gold-light: #d3b675;
    --booking-gold-soft: #f7efdf;

    --booking-red: #a95655;
    --booking-red-soft: #f6e5e3;
}

/* Alap */

.booking-page,
.booking-page * {
    box-sizing: border-box;
}

.booking-page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 12px 0 20px;
    color: var(--booking-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.booking-page button {
    font-family: inherit;
    cursor: pointer;
}

.booking-service,
.booking-calendar-panel,
.booking-summary {
    background: var(--booking-card);
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .065);
}

/* Szolgáltatás fejléc */

.booking-service {
    border-top: 4px solid var(--booking-gold);
    padding: 20px 16px 15px;
}

.service-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.service-heading h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.service-price {
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.payment-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    background: #f0eae2;
    border: 1px solid #e3d9cc;
    border-radius: 20px;
    color: #49443f;
    font-size: 12px;
}

.payment-icon {
    font-size: 15px;
    line-height: 1;
}

/* Lépések */

.booking-steps {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 28px 4px;
}

.booking-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #514c47;
    font-size: 14px;
    white-space: nowrap;
}

.booking-step.active {
    font-weight: 600;
    color: var(--booking-text);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--booking-card);
    border: 1px solid var(--booking-border);
    font-size: 14px;
    font-weight: 400;
}

.booking-step.active .step-number {
    background: var(--booking-gold);
    border-color: var(--booking-gold);
    color: #30270e;
}

.step-line {
    width: 38px;
    height: 1px;
    background: #d9d0c5;
}

/* Fő elrendezés */

.booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.booking-calendar-panel {
    min-width: 0;
    padding: 24px;
}

.booking-calendar-panel h2 {
    margin: 0 0 25px;
    font-size: 22px;
    font-weight: 500;
}

/* Naptár fejléc */

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.calendar-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.calendar-arrow {
    width: 40px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #292929;
    font-size: 28px;
    line-height: 1;
}

.calendar-arrow:hover {
    color: var(--booking-gold);
}

/* Naptár rács */

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: 44px;
    justify-items: center;
    align-items: center;
}

.calendar-weekday {
    color: #55504b;
    font-size: 12px;
}

.calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    max-width: 100%;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: #4b4743;
    font-size: 14px;
    font-weight: 400;
    transition: background .15s, color .15s;
}

.calendar-day:hover {
    background: #efe6d7;
}

/* Foglalható nap */

.calendar-day.available {
    background: var(--booking-gold-soft);
    color: #6c5423;
}

.calendar-day.available:hover {
    background: #e8d8b4;
}

/* Kiválasztott nap */

.calendar-day.selected,
.calendar-day.available.selected {
    background: var(--booking-gold-light);
    color: #fff;
    font-weight: 600;
}

.calendar-day.selected:hover {
    background: #c8a864;
}

/* Nem foglalható nap */

.calendar-day.unavailable {
    background: var(--booking-red-soft);
    border-color: #e9c6c2;
    color: var(--booking-red);
    cursor: not-allowed;
}

.calendar-day.unavailable:hover {
    background: var(--booking-red-soft);
}

/* Mai nap */

.calendar-day.today:not(.selected) {
    border: 2px solid var(--booking-gold);
}

/* Jelmagyarázat */

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 15px;
    margin-top: 12px;
    padding-bottom: 24px;
    color: var(--booking-muted);
    font-size: 12px;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    border-radius: 50%;
}

.legend-dot.available {
    width: 7px;
    height: 7px;
    background: #d5bd83;
}

.legend-dot.selected {
    background: var(--booking-gold-light);
}

.legend-dot.today {
    border: 2px solid var(--booking-gold);
}

.legend-dot.unavailable {
    background: var(--booking-red-soft);
    border: 1px solid var(--booking-red);
}

/* Orvos */

.doctor-section {
    border-top: 1px solid var(--booking-border);
    padding-top: 24px;
}

.doctor-profile {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.doctor-avatar {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.doctor-info {
    min-width: 0;
}

.doctor-info h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 500;
}

.doctor-info p {
    margin: 0 0 8px;
    color: var(--booking-muted);
    font-size: 12px;
}

.doctor-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    color: #514c47;
    font-size: 12px;
}

/* Időpontok */

.appointment-group {
    margin-top: 20px;
}

.appointment-group h4 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 500;
}

.appointment-times {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.time-slot {
    min-width: 100px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #dcc28d;
    border-radius: 6px;
    background: var(--booking-gold-soft);
    color: #171717;
    font-size: 14px;
}

.time-slot:hover {
    background: #ecdfc2;
}

.time-slot.selected {
    background: var(--booking-gold-light);
    border-color: var(--booking-gold-light);
    color: #3c3015;
}

/* Jobb oldali összegzés */

.booking-summary {
    border-top: 4px solid var(--booking-gold);
    padding: 23px 20px;
}

.booking-summary h2 {
    margin: 0 0 20px;
    font-size: 19px;
    font-weight: 500;
}

.summary-item {
    border-bottom: 1px solid var(--booking-border);
    padding: 14px 0;
}

.summary-label {
    display: block;
    margin-bottom: 6px;
    color: var(--booking-muted);
    font-size: 12px;
}

.summary-value {
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.summary-row .summary-value {
    min-width: 0;
}

.summary-edit {
    flex-shrink: 0;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--booking-gold);
    font-size: 13px;
}

.summary-edit:hover {
    text-decoration: underline;
}

.summary-price {
    border-bottom: 0;
}

.summary-price .summary-value {
    font-weight: 600;
}

/* Tovább gomb */

.booking-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
    padding-right: calc((100% - 22px) / 3.05 + 22px);
}

.booking-next {
    padding: 13px 24px;
    border: 0;
    border-radius: 10px;
    background: var(--booking-gold-light);
    color: #3d3016;
    font-size: 16px;
}

.booking-next:hover {
    background: #c7a760;
}

/* Tablet: összegzés elrejtése */

@media (max-width: 760px) {
    .booking-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .booking-summary {
        display: none;
    }

    .booking-actions {
        padding-right: 0;
    }
}

/* Mobil */

@media (max-width: 520px) {
    .booking-page {
        padding: 10px;
    }

    .booking-service {
        padding: 17px 14px 14px;
    }

    .service-heading h1 {
        font-size: 14px;
    }

    .service-price {
        font-size: 15px;
    }

    .payment-pill {
        padding: 5px 9px;
        font-size: 11px;
    }

    .booking-steps {
        gap: 7px;
        padding: 23px 0;
    }

    .booking-step {
        gap: 5px;
        font-size: 11px;
    }

    .step-number {
        width: 27px;
        height: 27px;
        font-size: 12px;
    }

    .step-line {
        flex: 1;
        width: auto;
        min-width: 4px;
    }

    .booking-calendar-panel {
        padding: 20px 12px;
    }

    .booking-calendar-panel h2 {
        font-size: 19px;
        margin-bottom: 20px;
    }

    .calendar-header h3 {
        font-size: 15px;
    }

    .calendar-grid {
        grid-auto-rows: 40px;
    }

    .calendar-day {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .calendar-weekday {
        font-size: 11px;
    }

    .calendar-legend {
        font-size: 11px;
        gap: 8px 12px;
    }

    .doctor-info h3 {
        font-size: 16px;
    }

    .doctor-specialties {
        font-size: 11px;
    }

    .time-slot {
        min-width: 90px;
        min-height: 40px;
        font-size: 13px;
    }

    .booking-next {
        padding: 12px 22px;
        font-size: 15px;
    }
}
