.page-title
{
    font-size : 1.8rem;
    letter-spacing : -0.02em;
    margin-bottom : 4px;
}

.page-sub
{
    color : var(--muted);
    margin-bottom : 24px;
}

.section-title
{
    font-size : 1.05rem;
    margin-bottom : 14px;
}

.sub-title
{
    font-size : 0.95rem;
    margin : 18px 0 8px;
}

.alert
{
    display : flex;
    justify-content : space-between;
    align-items : flex-start;
    gap : 12px;
    padding : 12px 16px;
    margin-bottom : 20px;
    border : 1px solid;
    border-radius : 10px;
    font-size : 0.93rem;
}

.alert.success
{
    background : rgba(26, 127, 75, 0.1);
    border-color : var(--success);
    color : var(--success);
}

.alert.error
{
    background : rgba(180, 22, 31, 0.1);
    border-color : var(--danger);
    color : var(--danger);
}

.alert ul
{
    margin-left : 18px;
}

.alert a
{
    color : inherit;
    font-weight : 600;
}

.field
{
    display : flex;
    flex-direction : column;
    gap : 6px;
    margin-bottom : 16px;
}

.field label
{
    font-size : 0.88rem;
    font-weight : 600;
}

.field input,
.field select,
.field textarea
{
    width : 100%;
    padding : 10px 12px;
    font : inherit;
    font-size : 1rem;
    color : var(--text);
    background : var(--surface);
    border : 1px solid var(--border);
    border-radius : 8px;
    transition : border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus
{
    outline : none;
    border-color : var(--accent);
    box-shadow : 0 0 0 3px rgba(201, 168, 76, 0.45);
}

.field textarea
{
    min-height : 80px;
    resize : vertical;
}

.hint
{
    font-size : 0.8rem;
    font-weight : 400;
    color : var(--muted);
}

.hint.block
{
    display : block;
    margin-bottom : 14px;
}

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

.form-grid.three
{
    grid-template-columns : repeat(3, minmax(0, 1fr));
}

.form-actions
{
    display : flex;
    justify-content : flex-end;
    gap : 10px;
    margin-top : 8px;
}

.form-actions.spread
{
    justify-content : space-between;
    flex-wrap : wrap;
}

.show-pass
{
    display : flex;
    align-items : center;
    gap : 8px;
    margin-bottom : 16px;
    font-size : 0.9rem;
    color : var(--muted);
    cursor : pointer;
}

.show-pass input
{
    accent-color : var(--accent);
}

.btn.danger
{
    color : var(--danger);
}

.btn.danger:hover
{
    background : rgba(180, 22, 31, 0.1);
}

.btn[disabled]
{
    opacity : 0.55;
    cursor : default;
}

a.btn
{
    display : inline-block;
    color : var(--text);
    text-decoration : none;
}

a.btn.primary
{
    color : var(--on-accent);
}

.status
{
    display : inline-block;
    margin-top : 6px;
    padding : 2px 10px;
    border-radius : 999px;
    border : 1px solid var(--border);
    font-size : 0.75rem;
    font-weight : 700;
    letter-spacing : 0.02em;
    background : var(--bg);
    color : var(--muted);
}

.status.confirmed
{
    border-color : var(--success);
    color : var(--success);
}

.status.pending
{
    border-color : var(--warning);
    color : var(--warning);
}

.status.noshow
{
    border-color : var(--danger);
    color : var(--danger);
}

.status.cancelled
{
    text-decoration : line-through;
}

.public-page
{
    max-width : 860px;
}

.booking-card
{
    padding : 28px;
    margin-bottom : 24px;
}

.info-card
{
    padding : 24px 28px;
    margin-bottom : 24px;
}

.info-card p
{
    margin-bottom : 6px;
}

.info-card a
{
    color : var(--accent-text);
    font-weight : 600;
}

.progress
{
    display : flex;
    flex-wrap : wrap;
    gap : 8px;
    margin-bottom : 22px;
}

.progress-step
{
    padding : 5px 14px;
    border : 1px solid var(--border);
    border-radius : 999px;
    font-size : 0.82rem;
    font-weight : 600;
    color : var(--muted);
    transition : background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.progress-step.complete
{
    border-color : var(--accent);
    color : var(--accent-text);
}

.progress-step.active
{
    background : var(--accent);
    border-color : var(--accent);
    color : var(--on-accent);
}

.step
{
    animation : step-in 0.3s ease;
}

@keyframes step-in
{
    from
    {
        opacity : 0;
        transform : translateY(8px);
    }

    to
    {
        opacity : 1;
        transform : translateY(0);
    }
}

.step-head
{
    display : flex;
    align-items : flex-start;
    justify-content : space-between;
    gap : 12px;
    margin-bottom : 6px;
}

.resource-list
{
    display : grid;
    gap : 10px;
}

.resource-card
{
    display : block;
    cursor : pointer;
}

.resource-card input
{
    position : absolute;
    opacity : 0;
    width : 0;
    height : 0;
}

.resource-body
{
    display : grid;
    gap : 2px;
    padding : 14px 16px;
    border : 1px solid var(--border);
    border-radius : var(--radius);
    background : var(--surface);
    transition : border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.resource-card:hover .resource-body
{
    border-color : var(--accent);
    background : var(--bg);
}

.resource-card:active .resource-body
{
    transform : scale(0.99);
}

.resource-card input:focus-visible + .resource-body
{
    box-shadow : 0 0 0 3px rgba(201, 168, 76, 0.45);
    border-color : var(--accent);
}

.resource-name
{
    font-weight : 700;
}

.resource-meta
{
    font-size : 0.85rem;
    color : var(--accent-text);
    font-weight : 600;
}

.resource-desc
{
    font-size : 0.88rem;
    color : var(--muted);
}

.picker
{
    display : grid;
    grid-template-columns : minmax(0, 1.2fr) minmax(0, 1fr);
    gap : 24px;
    margin-top : 12px;
}

.mini-toolbar
{
    display : flex;
    align-items : center;
    justify-content : space-between;
    gap : 8px;
    margin-bottom : 10px;
}

.mini-toolbar h3
{
    font-size : 1rem;
}

.mini-weekdays, .mini-grid
{
    display : grid;
    grid-template-columns : repeat(7, minmax(0, 1fr));
    gap : 4px;
}

.mini-weekdays div
{
    text-align : center;
    font-size : 0.72rem;
    font-weight : 600;
    text-transform : uppercase;
    letter-spacing : 0.05em;
    color : var(--muted);
    padding-bottom : 4px;
}

.mini-grid.loading
{
    opacity : 0.5;
    min-height : 220px;
}

.mini-day
{
    aspect-ratio : 1 / 1;
    border : 1px solid transparent;
    border-radius : 8px;
    font-size : 0.9rem;
    color : var(--muted);
    opacity : 0.55;
    transition : background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.mini-day.blank
{
    border : 0;
}

.mini-day.available
{
    color : var(--text);
    opacity : 1;
    font-weight : 600;
    background : var(--surface);
    border-color : var(--border);
}

.mini-day.available:hover
{
    border-color : var(--accent);
    background : rgba(201, 168, 76, 0.2);
}

.mini-day.available:active
{
    transform : scale(0.95);
}

.mini-day.today
{
    box-shadow : inset 0 0 0 2px var(--accent);
}

.mini-day.selected
{
    background : var(--accent);
    border-color : var(--accent);
    color : var(--on-accent);
}

.mini-day.in-range
{
    background : rgba(201, 168, 76, 0.3);
    border-color : rgba(201, 168, 76, 0.5);
    color : var(--text);
    opacity : 1;
    border-radius : 0;
}

.mini-day.selected
{
    opacity : 1;
}

.mini-day[disabled]
{
    cursor : default;
}

.slot-panel h3
{
    font-size : 1rem;
    margin-bottom : 10px;
}

.slot-list
{
    display : grid;
    grid-template-columns : repeat(auto-fill, minmax(78px, 1fr));
    gap : 8px;
    margin-bottom : 12px;
}

.slot-list.loading
{
    opacity : 0.5;
    min-height : 60px;
}

.slot-list .hint
{
    grid-column : 1 / -1;
}

.slot
{
    padding : 9px 6px;
    border : 1px solid var(--border);
    border-radius : 8px;
    background : var(--surface);
    font-weight : 600;
    transition : background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.slot:hover
{
    border-color : var(--accent);
    background : var(--accent);
    color : var(--on-accent);
}

.slot:active
{
    transform : scale(0.96);
}

.summary
{
    padding : 12px 16px;
    margin-bottom : 18px;
    border : 1px solid var(--border);
    border-left : 4px solid var(--accent);
    border-radius : var(--radius);
    background : var(--bg);
    font-weight : 600;
}

.trap
{
    position : absolute;
    left : -9999px;
    width : 1px;
    height : 1px;
    overflow : hidden;
}

.done
{
    text-align : center;
    padding : 12px 0;
}

.done .summary
{
    display : inline-block;
    text-align : left;
    margin-top : 14px;
}

.done .form-actions
{
    justify-content : center;
}

.done-mark
{
    position : relative;
    width : 64px;
    height : 64px;
    margin : 0 auto 16px;
    border-radius : 50%;
    background : var(--success);
    animation : pop-in 0.4s ease;
}

.done-mark::after
{
    content : "";
    position : absolute;
    left : 22px;
    top : 12px;
    width : 16px;
    height : 30px;
    border-right : 5px solid #ffffff;
    border-bottom : 5px solid #ffffff;
    transform : rotate(45deg);
}

@keyframes pop-in
{
    from
    {
        transform : scale(0.4);
        opacity : 0;
    }

    to
    {
        transform : scale(1);
        opacity : 1;
    }
}

.hours-table
{
    width : 100%;
    border-collapse : collapse;
}

.hours-table th, .hours-table td
{
    padding : 8px 0;
    border-bottom : 1px solid var(--border);
    text-align : left;
    font-weight : 400;
}

.hours-table th
{
    font-weight : 600;
    width : 40%;
}

.closure-list
{
    margin-left : 20px;
}

.detail-list
{
    display : grid;
    gap : 10px;
    margin-bottom : 20px;
}

.detail-list div
{
    display : flex;
    gap : 12px;
}

.detail-list dt
{
    width : 90px;
    flex-shrink : 0;
    color : var(--muted);
}

.detail-list .status
{
    margin-top : 0;
}

@media (max-width : 760px)
{
    .brand
    {
        font-size : 1rem;
    }

    .booking-card, .info-card
    {
        padding : 20px 16px;
    }

    .picker
    {
        grid-template-columns : minmax(0, 1fr);
        gap : 18px;
    }

    .form-grid, .form-grid.three
    {
        grid-template-columns : minmax(0, 1fr);
    }

    .step-head .btn
    {
        flex-shrink : 0;
    }

    .page-title
    {
        font-size : 1.5rem;
    }
}

.guests-field
{
    max-width : 320px;
    margin-bottom : 18px;
}

.guests-field[hidden]
{
    display : none;
}
