.r_cont {
    --rez-primary: #43321F;
    --rez-primary-hover: #302315;
    --rez-secondary: #DFBC98;
    --rez-secondary-soft: #F8EBDD;
    --rez-secondary-light: #FDF8F2;
    --rez-border: #E7D6C3;
    --rez-border-strong: #D4B08D;
    --rez-text: #2A2118;
    --rez-muted: #7B6A58;
    --rez-panel: #fff;
    --rez-danger: #9c2a10;
    --rez-danger-soft: #fff4ed;
}

.r_cont {
    width: 100%;
    min-height: 620px;
    box-sizing: border-box;
    padding: 42px 16px;
    color: var(--rez-text);
}

.reservation {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 120px auto;
    padding: 34px;
    background: #fff;
    border: 1px solid var(--rez-border);
    border-radius: 8px;
    box-shadow: rgba(67, 50, 31, .12) 0 18px 44px;
    box-sizing: border-box;
    
}

.r_steps {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--rez-secondary-soft);
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.steps {
    width: 0;
    height: 8px;
    background: var(--rez-primary);
    transition: width .28s ease;
}

.r_topbar {
    display: flex;
    align-items: center;
    min-height: 36px;
    margin-bottom: 16px;
}

.r_header {
    margin-bottom: 24px;
}

.step-label {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    margin-left: auto;
    background: var(--rez-secondary-soft);
    color: var(--rez-primary);
    border-radius: 20px;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
}

.r_cont h1 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 30px;
    line-height: 36px;
    letter-spacing: 0;
    color: var(--rez-text);
}

.intro-copy {
    margin-top: 10px;
    color: var(--rez-muted);
    font-size: 16px;
    line-height: 24px;
}

.intro_s.is-compact .intro-copy {
    display: none;
}

.form_notice {
    display: none;
    margin: 0 0 18px 0;
    padding: 12px 14px;
    background: var(--rez-danger-soft);
    border: 1px solid #F0C59B;
    color: var(--rez-danger);
    border-radius: 8px;
    font-weight: 700;
    line-height: 20px;
}

.form_notice.show {
    display: block;
}

.res_section {
    width: 100%;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease;
}

.s_sec {
    height: auto;
    opacity: 1;
    overflow: visible;
    transform: translateY(0);
}

.res_section h2 {
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
    color: var(--rez-primary);
    font-size: 18px;
    line-height: 26px;
    font-weight: 800;
}

.s_osebe {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 10px;
    width: 100%;
}

.zapis_min {
    min-height: 76px;
    border: 1px solid var(--rez-border);
    background: #fff;
    color: var(--rez-text);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.zapis_min strong,
.zapis_min span {
    display: block;
}

.zapis_min strong {
    font-size: 24px;
    line-height: 28px;
}

.zapis_min span {
    margin-top: 2px;
    color: var(--rez-muted);
    font-size: 12px;
    font-weight: 700;
}

.zapis_min:hover,
.zapis_min:focus {
    border-color: var(--rez-primary);
    background: var(--rez-secondary-soft);
    outline: none;
}

.storitve {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zapis {
    position: relative;
    width: 100%;
    padding: 12px 42px 12px 14px;
    border: 1px solid var(--rez-border);
    border-left: 4px solid var(--rez-secondary);
    border-radius: 8px;
    background: #fff;
    color: var(--rez-text);
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.zapis:hover,
.zapis:focus {
    border-color: var(--rez-primary);
    border-left-color: var(--rez-primary);
    background: var(--rez-secondary-light);
    outline: none;
    transform: translateY(-1px);
}

.zapis h3 {
    margin: 0;
    font-size: 15px;
    line-height: 21px;
    font-weight: 800;
}

.btn_info {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: var(--rez-secondary-soft);
    color: var(--rez-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: background .18s ease, transform .18s ease;
    z-index: 1;
}

.btn_info:hover {
    background: #EAD7C2;
}

.zapis.is-open .btn_info {
    transform: rotate(15deg);
    background: var(--rez-secondary);
}

.service_desc {
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease, margin-top .28s ease;
    margin-top: 0;
    font-size: 13px;
    color: var(--rez-muted);
    line-height: 20px;
}

.zapis.is-open .service_desc {
    max-height: 400px;
    margin-top: 8px;
}

.times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 10px;
    width: 100%;
}

.time,
.past {
    min-height: 58px;
    border: 1px solid var(--rez-border);
    border-radius: 8px;
    background: #fff;
    color: var(--rez-text);
    text-align: center;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-sizing: border-box;
}

.time {
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.time strong,
.past strong {
    font-size: 18px;
    line-height: 22px;
}

.time span,
.past span {
    color: var(--rez-muted);
    font-size: 11px;
    line-height: 15px;
    font-weight: 700;
}

.time:hover,
.time:focus {
    border-color: var(--rez-primary);
    background: var(--rez-primary);
    color: #fff;
    outline: none;
}

.time:hover span,
.time:focus span {
    color: #F4DEC9;
}

.past {
    background: #F6EFE8;
    color: #A69482;
}

.past span {
    color: #A69482;
}

.back {
    display: none;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px 0 10px;
    border: 0;
    border-radius: 20px;
    background: #D97316;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.back:hover {
    background: #C2670E;
}

.res_info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.res_info label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--rez-primary);
    font-size: 13px;
    font-weight: 800;
}

input,
textarea,
select,
button {
    font-family: inherit;
}

.inputF,
.area-field {
    width: 100%;
    border: 1px solid var(--rez-border);
    background: #fff;
    color: var(--rez-text);
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px !important;
    outline: none;
}

.inputF {
    height: 48px;
    padding: 0 12px;
}

.area-field {
    min-height: 104px;
    resize: vertical;
    padding: 12px;
}

.inputF:focus,
.area-field:focus {
    border-color: var(--rez-primary);
    box-shadow: 0 0 0 3px rgba(223, 188, 152, .42);
}

::placeholder {
    color: #A69482;
    opacity: 1;
}

.full_r {
    grid-column: 1 / -1;
}

.summary {
    background: var(--rez-secondary-light);
    border: 1px solid var(--rez-border);
    border-radius: 8px;
    padding: 14px !important;
    font-size: 14px;
    font-weight: 700;
}

.summary_info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0;
    line-height: 20px;
}

.summary_info:first-child {
    margin-top: 0;
}

.summary_info:last-child {
    margin-bottom: 0;
}

.summary_info p {
    margin: 0;
    color: var(--rez-primary);
}

.summary span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    color: var(--rez-primary) !important;
}

.rezBtn {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    background: var(--rez-primary);
    color: #fff !important;
    cursor: pointer;
    font-size: 17px !important;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color .18s ease;
}

.rezBtn:hover {
    background: var(--rez-primary-hover);
}

.rezBtn:disabled {
    opacity: .75;
    cursor: wait;
}

.section_success {
    text-align: center;
}

.section_success .main_cont {
    padding: 8px 0 0 0;
}

.success_icon {
    color: var(--rez-primary);
    font-size: 42px;
    margin-bottom: 14px;
}

.btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--rez-primary);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.btn:hover {
    background: var(--rez-primary-hover);
}

.loading-inline,
.res_empty {
    width: 100%;
    grid-column: 1 / -1;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 8px;
    background: var(--rez-secondary-light);
    border: 1px solid var(--rez-border);
    color: var(--rez-muted);
    font-weight: 800;
    box-sizing: border-box;
    text-align: center;
}

/* ── Summary bar ─────────────────────────────────────── */
.r_summary_bar {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.r_summary_bar.has-items {
    display: flex;
}

.r_summary_tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--rez-secondary-soft);
    border: 1px solid var(--rez-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--rez-primary);
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Selected state (person / service) ───────────────── */
.zapis_min.is-selected {
    border-color: var(--rez-primary);
    background: var(--rez-secondary-soft);
    color: var(--rez-primary);
}

.zapis.is-selected {
    border-color: var(--rez-primary);
    border-left-color: var(--rez-primary);
    background: var(--rez-secondary-light);
}

/* ── Time slot stagger animation ─────────────────────── */
@keyframes rezIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.times .time,
.times .past {
    animation: rezIn .18s ease both;
}

.times > :nth-child(1)  { animation-delay: .03s }
.times > :nth-child(2)  { animation-delay: .06s }
.times > :nth-child(3)  { animation-delay: .09s }
.times > :nth-child(4)  { animation-delay: .12s }
.times > :nth-child(5)  { animation-delay: .15s }
.times > :nth-child(6)  { animation-delay: .18s }
.times > :nth-child(7)  { animation-delay: .21s }
.times > :nth-child(8)  { animation-delay: .24s }
.times > :nth-child(9)  { animation-delay: .27s }
.times > :nth-child(n+10) { animation-delay: .30s }

/* ── Time button click/loading state ─────────────────── */
.time.is-clicked {
    border-color: var(--rez-primary) !important;
    background: var(--rez-primary) !important;
    color: #fff !important;
    opacity: .75;
    cursor: wait;
    pointer-events: none;
}

/* ── Separator between date and time sections ────────── */
.section_time.s_sec {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--rez-border);
}

/* ── intl-tel-input ──────────────────────────────────── */
.iti {
    width: 100%;
}

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .r_cont {
        padding: 75px 10px 18px;
    }

    .reservation {
        margin: 12px auto;
        padding: 26px 16px;
    }

    /* Center header + section titles */
    .r_header {
        text-align: center;
    }

    .r_summary_bar {
        justify-content: center;
    }

    .r_cont h1 {
        font-size: 22px;
        line-height: 28px;
    }

    .intro-copy {
        text-align: center;
    }

    .res_section h2 {
        text-align: center;
    }

    /* 4 person buttons per row, more compact */
    .s_osebe {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .zapis_min {
        min-height: 62px;
    }

    .zapis_min strong {
        font-size: 20px;
        line-height: 24px;
    }

    .zapis_min span {
        font-size: 11px;
    }

    .res_info {
        gap: 10px;
    }

    .res_info label {
        font-size: 12px;
        gap: 4px;
    }

    .inputF {
        height: 42px;
        font-size: 15px !important;
    }

    .area-field {
        min-height: 80px;
    }

    .rezBtn {
        min-height: 46px;
        font-size: 15px !important;
    }
}
