/* =========================================================
   SIGNATURE — Login, reservation & survey pages
   ========================================================= */

/* ── Login refinements ── */
.flr-page-login .flr-mo-top__text .sg-kicker {
    display: inline-block;
    margin: 0 0 0.35rem;
}

.flr-page-survey .flr-mo-top__text .sg-kicker {
    margin-bottom: 0.35rem;
}

.flr-page-survey .flr-mo-form .form-label {
    font-weight: 700;
    color: var(--sg-charcoal);
}

.flr-page-survey .flr-mo-form .form-select,
.flr-page-survey .flr-mo-form .form-control {
    border-radius: var(--sg-radius-md);
    border-color: var(--sg-border-strong);
    background: var(--sg-surface-elevated);
}

.flr-page-survey .flr-mo-form label.d-block {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--sg-text-secondary);
}

.flr-page-survey .flr-mo-form label.d-block input {
    margin-inline-end: 0.4rem;
    accent-color: var(--sg-green);
}

/* ── Reservation form ── */
.np-reservation {
    --sg-page-muted: var(--sg-text-muted);
    --sg-page-line: var(--sg-border-strong);
    --sg-page-surface: var(--sg-ivory);
    --sg-page-ink: var(--sg-charcoal);
    --sg-page-accent: var(--sg-green);
    --sg-page-accent-deep: var(--sg-charcoal);
    --sg-page-accent-soft: var(--sg-green-soft);
}

.np-reservation__form {
    display: grid;
    gap: 0.35rem;
}

.np-reservation__form .form-label {
    margin-top: 0.55rem;
    font-weight: 600;
    color: var(--sg-charcoal);
}

.np-reservation__datetime {
    position: relative;
    margin-bottom: 0.5rem;
}

.np-reservation__datetime > i {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    color: var(--sg-walnut);
    pointer-events: none;
    z-index: 1;
}

.np-reservation__datetime .form-control,
.np-reservation__datetime .np-input {
    padding-right: 2.4rem !important;
    cursor: pointer;
    text-align: left;
    min-height: 3rem;
    font-size: 1.05rem;
}

.np-reservation__date-hint {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    color: var(--sg-page-muted);
    line-height: 1.5;
}

.np-reservation__empty-tables {
    margin: 0.35rem 0 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px dashed var(--sg-page-line);
    border-radius: var(--sg-radius-md);
    font-size: 0.85rem;
    color: var(--sg-page-muted);
    background: var(--sg-surface-elevated);
}

.np-reservation__tables {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.25rem;
}

@media (min-width: 480px) {
    .np-reservation__tables {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.np-reservation__table {
    position: relative;
    display: grid;
    gap: 0.15rem;
    padding: 0.85rem 0.7rem;
    min-height: 4.5rem;
    border: 1px solid var(--sg-page-line);
    border-radius: var(--sg-radius-md);
    background: var(--sg-page-surface);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.np-reservation__table:active {
    transform: scale(0.98);
}

.np-reservation__table input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.np-reservation__table.is-selected,
.np-reservation__table:has(input:checked) {
    border-color: var(--sg-green);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--sg-malachite) 35%, transparent);
    background: var(--sg-page-accent-soft);
}

.np-reservation__table.is-disabled,
.np-reservation__table.is-pending {
    opacity: 0.45;
    pointer-events: none;
}

.np-reservation__table.is-busy {
    opacity: 0.55;
    pointer-events: none;
    border-style: dashed;
}

.np-reservation__table-num {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--sg-green);
}

.np-reservation__table-cap,
.np-reservation__table-title,
.np-reservation__table-status {
    font-size: 0.72rem;
    color: var(--sg-page-muted);
}

.np-reservation__table-status {
    font-weight: 600;
}

.np-reservation__hours {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.35rem;
    max-height: 14rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.15rem;
    scroll-snap-type: y proximity;
}

@media (min-width: 480px) {
    .np-reservation__hours {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        max-height: none;
    }
}

.np-reservation__hour {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.55rem 0.25rem;
    border: 1px solid var(--sg-page-line);
    border-radius: var(--sg-radius-md);
    background: var(--sg-page-surface);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    scroll-snap-align: start;
    transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.np-reservation__hour:active {
    transform: scale(0.96);
}

.np-reservation__hour input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.np-reservation__hour.is-selected,
.np-reservation__hour:has(input:checked) {
    border-color: var(--sg-green);
    background: var(--sg-green);
    color: var(--sg-white);
    box-shadow: 0 4px 12px rgba(0, 128, 0, 0.22);
}

.np-reservation__hint {
    margin: 0.85rem 0 0.35rem;
    font-size: 0.78rem;
    color: var(--sg-page-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    line-height: 1.6;
    padding: 0.75rem 0.9rem;
    border-radius: var(--sg-radius-md);
    background: var(--sg-ivory);
    border: 1px dashed var(--sg-page-line);
}

.np-reservation__hint i {
    margin-top: 0.15rem;
    color: var(--sg-malachite);
}

.np-reservation__success {
    margin-bottom: 1rem;
}

.np-reservation__success .flr-mo-auth__icon {
    background: var(--sg-green-soft);
    color: var(--sg-green);
}

.flr-page-reservation .flr-mo-alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid color-mix(in srgb, var(--sg-status-danger) 35%, var(--sg-page-line));
    border-radius: var(--sg-radius-md);
    background: color-mix(in srgb, var(--sg-status-danger) 8%, transparent);
    color: var(--sg-status-danger);
    font-size: 0.85rem;
}

.flr-page-reservation .flr-mo-alert ul {
    padding-right: 1.1rem;
    margin: 0;
}

.datepicker-plot-area,
.datepicker-container {
    z-index: 4000 !important;
}

@media (max-width: 640px) {
    .datepicker-plot-area {
        width: min(100vw - 1.25rem, 22rem) !important;
        font-size: 1rem !important;
        border-radius: var(--sg-radius-lg) !important;
        box-shadow: var(--sg-shadow-lift) !important;
    }

    .datepicker-plot-area .datepicker-day-view .table-days td {
        height: 2.75rem !important;
    }

    .datepicker-plot-area .datepicker-day-view .table-days td span {
        width: 2.4rem !important;
        height: 2.4rem !important;
        line-height: 2.4rem !important;
        font-size: 0.95rem !important;
        border-radius: var(--sg-radius-md) !important;
    }

    .datepicker-plot-area .toolbox {
        padding: 0.55rem !important;
    }

    .datepicker-plot-area .toolbox .pwt-btn-submit,
    .datepicker-plot-area .toolbox .pwt-btn-today {
        min-height: 2.75rem !important;
        font-size: 0.95rem !important;
        border-radius: var(--sg-radius-md) !important;
    }
}