/* Copyright 10-04-2026 - R24k */
/* Public booking widget -- self-contained, prefixed classes, neutral
   clean styling that works with any theme. Responsive. */

.r24k-ba-pub {
    max-width: 560px;
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.5;
    color: #1e1e1e;
}

.r24k-ba-pub *,
.r24k-ba-pub *::before,
.r24k-ba-pub *::after {
    box-sizing: border-box;
}

/* ---- Steps ------------------------------------------------------------ */

.r24k-ba-pub-step {
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 14px 16px 16px;
    margin: 0 0 14px;
    background: #fff;
}

.r24k-ba-pub-step legend {
    font-weight: 600;
    font-size: 14px;
    padding: 0 6px;
    color: #2c3338;
}

.r24k-ba-pub-step legend span {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    background: #2271b1;
    color: #fff;
    text-align: center;
    font-size: 12px;
    margin-right: 2px;
}

.r24k-ba-pub-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.r24k-ba-pub-row:last-child {
    margin-bottom: 0;
}

.r24k-ba-pub-row label {
    flex: 1 1 160px;
    font-size: 13px;
    color: #50575e;
}

.r24k-ba-pub-input {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    color: #1e1e1e;
}

.r24k-ba-pub-input:focus {
    border-color: #2271b1;
    outline: 2px solid rgba(35, 113, 177, .25);
    outline-offset: 0;
}

/* ---- Preview ---------------------------------------------------------- */

.r24k-ba-pub-preview {
    margin-top: 10px;
    padding: 10px 12px;
    border-left: 3px solid #2271b1;
    background: #f0f6fb;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    color: #1d4f73;
}

/* ---- Error + submit ---------------------------------------------------- */

.r24k-ba-pub-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-left: 3px solid #d63638;
    background: #fcf0f1;
    border-radius: 0 4px 4px 0;
    color: #b32d2e;
    font-size: 14px;
}

.r24k-ba-pub-submit {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    border: 0;
    border-radius: 6px;
    background: #2271b1;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.r24k-ba-pub-submit:hover {
    background: #135e96;
}

.r24k-ba-pub-submit:disabled {
    opacity: .6;
    cursor: default;
}

/* ---- Honeypot ---------------------------------------------------------- */

.r24k-ba-pub-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    overflow: hidden;
}

/* ---- Confirmation ------------------------------------------------------ */

.r24k-ba-pub-confirm {
    border: 1px solid #00a32a;
    border-radius: 6px;
    background: #f0faf1;
    padding: 24px 20px;
    text-align: center;
}

.r24k-ba-pub-confirm-icon {
    width: 44px;
    height: 44px;
    line-height: 44px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #00a32a;
    color: #fff;
    font-size: 22px;
}

.r24k-ba-pub-confirm-title {
    margin: 0 0 8px;
    font-size: 18px;
    color: #1e1e1e;
}

.r24k-ba-pub-ref {
    display: inline-block;
    font-size: 22px;
    letter-spacing: .5px;
    color: #135e96;
}

.r24k-ba-pub-confirm-summary {
    color: #50575e;
    font-size: 14px;
}

.r24k-ba-pub-confirm-note {
    margin-bottom: 0;
    font-size: 14px;
    color: #2c3338;
}

/* ---- Small screens ------------------------------------------------------ */

@media (max-width: 480px) {
    .r24k-ba-pub-row {
        flex-direction: column;
        gap: 8px;
    }
}

/* Locked (single-type) widget title + unavailable notice */
.r24k-ba-pub-locked {
    font-size: 1.15em;
    font-weight: 600;
    padding: 4px 0;
}
.r24k-ba-pub-unavailable {
    color: #646970;
    font-style: italic;
}
