/* ── Base ──────────────────────────────────────────────────────────────── */

.srb-form-wrap {
    max-width: 640px;
    margin: 1.5em auto;
    font: inherit;
    color: inherit;
}

.srb-form-title {
    margin: 0 0 1em;
    font-weight: 600;
}

.srb-form {
    display: grid;
    gap: 1.25em;
}

.srb-form > *,
.srb-step > *,
.srb-row-2 > * {
    min-width: 0;
}

/* ── Two-step slide ──────────────────────────────────────────────────────*/

.srb-steps-wrapper {
    overflow: hidden;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.srb-steps-track {
    display: flex;
    width: 300%;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.srb-step {
    width: calc(100% / 3);
    box-sizing: border-box;
    display: grid;
    gap: 1.25em;
}

.srb-step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    margin-top: 0.25em;
}

.srb-step-dots {
    display: flex;
    align-items: center;
    gap: 0.45em;
}

.srb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c0b8ac;
    transition: background 0.2s ease;
}

.srb-dot-active {
    background: #3e6a85;
}

.srb-step-next {
    appearance: none;
    border: none;
    cursor: pointer;
    background: #3e6a85;
    color: #fff;
    font: inherit;
    font-weight: 600;
    padding: 0.85em 1.8em;
    border-radius: 6px;
    transition: background 0.18s ease;
}

.srb-step-next:hover,
.srb-step-next:focus {
    background: #2d526a;
    outline: none;
}

.srb-step-back {
    appearance: none;
    border: none;
    background: transparent;
    color: #6b5f50;
    font: inherit;
    font-size: 0.9em;
    cursor: pointer;
    padding: 0.5em 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.srb-step-back:hover {
    color: #2a251f;
}

.srb-step-summary {
    background: #efece4;
    border-radius: 8px;
    padding: 0.65em 1em;
    font-size: 0.88em;
    color: #6b5f50;
    font-weight: 500;
    line-height: 1.4;
    min-height: 1em;
}

/* ── Weather bar ─────────────────────────────────────────────────────────*/

.srb-weather-bar {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.65em 1em;
    background: #efece4;
    border-radius: 10px;
    font-size: 0.9em;
    color: #6b5f50;
}

.srb-weather-slot {
    display: flex;
    align-items: center;
    gap: 0.4em;
    flex: 1;
}

.srb-weather-slot + .srb-weather-slot {
    border-left: 1px solid #c0b8ac;
    padding-left: 1em;
    margin-left: 0.5em;
}

.srb-weather-slot-label {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b5f50;
    white-space: nowrap;
}

.srb-weather-icon {
    font-size: 1.1em;
    flex-shrink: 0;
    line-height: 1;
}

.srb-weather-temp {
    font-weight: 700;
    white-space: nowrap;
}

.srb-weather-desc {
    font-size: 0.85em;
    color: #6b5f50;
}

/* Section wrapper used for tile groups */
.srb-section {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.srb-section-label {
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b5f50;
}

/* Regular labelled field */
.srb-field {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
}

.srb-label {
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #6b5f50;
}

.srb-row {
    display: grid;
    gap: 1em;
}

.srb-row-2 {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 540px) {
    .srb-row-2 {
        grid-template-columns: 1fr;
    }
}

/* ── Native inputs (area select, name, email, tel, textarea) ──────────── */

.srb-form input[type="text"],
.srb-form input[type="email"],
.srb-form input[type="tel"],
.srb-form select,
.srb-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65em 0.8em;
    font: inherit;
    color: inherit;
    background: #efece4;
    border: 1px solid #c0b8ac;
    border-radius: 6px;
    line-height: 1.3;
}

.srb-form input:focus,
.srb-form select:focus,
.srb-form textarea:focus {
    outline: none;
    border-color: #3e6a85;
    box-shadow: 0 0 0 3px rgba(62, 106, 133, 0.2);
}

.srb-form textarea {
    resize: vertical;
    min-height: 4em;
}

/* ── Date strip ──────────────────────────────────────────────────────────*/

.srb-date-strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
    padding-bottom: 0.6em;
}

.srb-strip-month-label {
    flex: 1;
    text-align: center;
    font-size: 0.87em;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #2a251f;
}

.srb-strip-prev,
.srb-strip-next {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #efece4;
    border: 1px solid #c0b8ac;
    border-radius: 4px;
    color: #3e6a85;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.srb-strip-prev:hover:not(:disabled),
.srb-strip-next:hover:not(:disabled) {
    background: #3e6a85;
    border-color: #3e6a85;
    color: #fff;
}

.srb-strip-prev:disabled,
.srb-strip-next:disabled {
    opacity: 0.3;
    cursor: default;
}

.srb-date-strip-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px; /* space for focus ring */
}

.srb-date-strip {
    display: flex;
    gap: 0.5em;
    padding: 2px 0;
    width: max-content;
}

.srb-date-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15em;
    min-width: 58px;
    padding: 0.5em 0.45em;
    border: 1px solid #c0b8ac;
    border-radius: 10px;
    background: #efece4;
    color: inherit;
    cursor: pointer;
    font: inherit;
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    line-height: 1;
}

.srb-date-tile:hover {
    border-color: #3e6a85;
    background: #e4e0d7;
}

.srb-date-tile:focus {
    outline: none;
    border-color: #3e6a85;
    box-shadow: 0 0 0 3px rgba(62, 106, 133, 0.2);
}

.srb-date-tile.srb-selected {
    background: #3e6a85;
    border-color: #3e6a85;
    color: #fff;
}

.srb-dt-day {
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.75;
}

.srb-date-tile.srb-selected .srb-dt-day {
    opacity: 0.85;
}

.srb-dt-num {
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1;
}

.srb-dt-mon {
    font-size: 0.65em;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #6b5f50;
    line-height: 1;
}

.srb-date-tile.srb-selected .srb-dt-mon {
    color: rgba(255,255,255,0.8);
}

.srb-date-tile-closed {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

.srb-date-tile-full {
    opacity: 0.4;
    cursor: not-allowed;
}

.srb-date-tile-full .srb-dt-num,
.srb-date-tile-full .srb-dt-day {
    text-decoration: line-through;
}

.srb-dt-hint {
    display: inline-block;
    margin-top: 0.2em;
    padding: 0.1em 0.45em;
    border-radius: 20px;
    font-size: 0.58em;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    line-height: 1.4;
    background: #d4780a;
    color: #fff;
}

.srb-date-tile.srb-selected .srb-dt-hint {
    background: rgba(255,255,255,0.85);
    color: #2a251f;
}

.srb-dt-hint-empty {
    visibility: hidden;
    background: transparent;
}

/* ── Time tiles ──────────────────────────────────────────────────────────*/

.srb-time-tiles {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.srb-time-group {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

.srb-time-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.srb-time-tile {
    padding: 0.6em 1.1em;
    border: 1px solid #c0b8ac;
    border-radius: 6px;
    background: #efece4;
    color: inherit;
    font: inherit;
    font-size: 0.95em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    line-height: 1;
}

.srb-time-tile:hover {
    border-color: #3e6a85;
    background: #e4e0d7;
}

.srb-time-tile:focus {
    outline: none;
    border-color: #3e6a85;
    box-shadow: 0 0 0 3px rgba(62, 106, 133, 0.2);
}

.srb-time-tile.srb-selected {
    background: #3e6a85;
    border-color: #3e6a85;
    color: #fff;
}

.srb-time-tile:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Party stepper ───────────────────────────────────────────────────────*/

.srb-stepper {
    display: flex;
    align-items: center;
    gap: 0.75em;
}

.srb-stepper-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #c0b8ac;
    background: #efece4;
    color: inherit;
    font-size: 1.2em;
    font-weight: 400;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

.srb-stepper-btn:hover:not(:disabled) {
    background: #3e6a85;
    border-color: #3e6a85;
    color: #fff;
}

.srb-stepper-btn:focus {
    outline: none;
    border-color: #3e6a85;
    box-shadow: 0 0 0 3px rgba(62, 106, 133, 0.2);
}

.srb-stepper-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.srb-stepper-display {
    display: flex;
    align-items: baseline;
    gap: 0.3em;
}

.srb-stepper-val {
    font-size: 1.4em;
    font-weight: 700;
    min-width: 1.2em;
    text-align: center;
}

.srb-stepper-unit {
    font-size: 0.9em;
    color: #6b5f50;
}

.srb-party-hint {
    display: block;
    font-size: 0.8em;
    color: #6b5f50;
}

/* ── Checkbox ────────────────────────────────────────────────────────────*/

.srb-field-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.6em;
    font-size: 0.92em;
    line-height: 1.4;
}

.srb-field-checkbox input[type="checkbox"] {
    margin-top: 0.2em;
    flex-shrink: 0;
}

.srb-field-checkbox a {
    color: inherit;
    text-decoration: underline;
}

/* ── Honeypot ────────────────────────────────────────────────────────────*/

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

/* ── Actions / Submit ────────────────────────────────────────────────────*/

.srb-actions {
    margin-top: 0.25em;
}

.srb-submit {
    appearance: none;
    border: none;
    cursor: pointer;
    background: #3e6a85;
    color: #fff;
    font: inherit;
    font-weight: 600;
    padding: 0.85em 1.8em;
    border-radius: 6px;
    transition: background 0.18s ease, opacity 0.18s ease;
}

.srb-submit:hover,
.srb-submit:focus {
    background: #2d526a;
    outline: none;
}

.srb-submit[disabled] {
    opacity: 0.6;
    cursor: progress;
}

/* ── Validation states ───────────────────────────────────────────────────*/

.srb-field-error {
    color: #c96442;
    font-size: 0.85em;
    margin-top: 0.25em;
}

.srb-has-error input,
.srb-has-error select,
.srb-has-error textarea {
    border-color: #c96442;
}

.srb-has-error .srb-date-strip-section,
.srb-has-error .srb-time-tiles,
.srb-has-error .srb-stepper {
    outline: 2px solid #c96442;
    border-radius: 6px;
}

/* ── Success / Error messages ────────────────────────────────────────────*/

.srb-message {
    margin-top: 0.5em;
    padding: 0.75em 1em;
    border-radius: 6px;
    display: none;
}

.srb-message-success {
    display: block;
    background: #e3f5e8;
    color: #1a5d2a;
    border: 1px solid #b3dcc0;
}

.srb-message-error {
    display: block;
    background: #fce8ec;
    color: #800020;
    border: 1px solid #f0c0ca;
}

/* ── Thank-you slide (Step 3) ────────────────────────────────────────────*/

.srb-thankyou {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85em;
    padding: 1.5em 1em 1em;
    text-align: center;
}

.srb-thankyou-logo img {
    max-height: 56px;
    width: auto;
    opacity: 0.85;
}

.srb-thankyou-icon {
    font-size: 2em;
    color: #4a7c59;
    width: 1.75em;
    height: 1.75em;
    border-radius: 50%;
    background: #d1f0da;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
}

.srb-thankyou-title {
    margin: 0;
    font-size: 1.25em;
    font-weight: 700;
    color: #2a251f;
}

.srb-thankyou-text {
    margin: 0;
    color: #6b5f50;
    font-size: 0.92em;
    line-height: 1.55;
    max-width: 320px;
}

.srb-thankyou-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65em;
    justify-content: center;
    margin-top: 0.5em;
}

.srb-thankyou-link {
    display: inline-block;
    padding: 0.75em 1.6em;
    border-radius: 6px;
    font: inherit;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: #3e6a85;
    color: #fff;
    border: 2px solid #3e6a85;
    transition: background 0.18s ease, color 0.18s ease;
}

.srb-thankyou-link:hover,
.srb-thankyou-link:focus {
    background: #2d526a;
    border-color: #2d526a;
    color: #fff;
    outline: none;
}

.srb-thankyou-link-secondary {
    background: transparent;
    color: #3e6a85;
}

.srb-thankyou-link-secondary:hover,
.srb-thankyou-link-secondary:focus {
    background: #3e6a85;
    color: #fff;
}

/* ── Kassier view ────────────────────────────────────────────────────────*/

.srb-kassier-wrap {
    max-width: 960px;
    margin: 1.5rem auto;
    font-size: 1rem;
}

.srb-kassier-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.srb-kassier-nav a {
    color: #3e6a85;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2em;
    line-height: 1;
}

.srb-kassier-nav a:hover {
    color: #2d526a;
}

.srb-kassier-date {
    font-weight: 700;
    font-size: 1.1em;
}

.srb-kassier-empty {
    padding: 2rem;
    text-align: center;
    color: #6b5f50;
    font-size: 1.05em;
}

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

.srb-kassier-table th {
    text-align: left;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #6b5f50;
    padding: 0.6em 1em;
    border-bottom: 2px solid #efece4;
}

.srb-kassier-table td {
    padding: 0.85em 1em;
    border-bottom: 1px solid #efece4;
    vertical-align: middle;
}

.srb-kassier-table tr:last-child td {
    border-bottom: none;
}

.srb-kassier-time {
    font-size: 1.35em;
    font-weight: 700;
    white-space: nowrap;
    color: #2a251f;
}

.srb-kassier-party {
    font-size: 1.1em;
    font-weight: 600;
    color: #2a251f;
    white-space: nowrap;
}

.srb-kassier-phone a {
    color: #3e6a85;
    text-decoration: none;
    white-space: nowrap;
}

.srb-kassier-notes {
    font-size: 0.85em;
    color: #6b5f50;
    max-width: 200px;
}

.srb-status-badge {
    display: inline-block;
    padding: 0.25em 0.7em;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 700;
    white-space: nowrap;
}

.srb-status-pending  { background: #fff3cd; color: #7a5c00; }
.srb-status-confirmed { background: #d1f0da; color: #1a5d2a; }
.srb-status-declined  { background: #e8e8e8; color: #555; }
.srb-status-cancelled { background: #e8e8e8; color: #555; }

@media (max-width: 600px) {
    .srb-kassier-table thead { display: none; }
    .srb-kassier-table tr {
        display: block;
        padding: 0.75em 0;
        border-bottom: 1px solid #efece4;
    }
    .srb-kassier-table td {
        display: inline;
        padding: 0.1em 0.4em;
        border: none;
    }
}
