/* Service Booking Form – form.css */
.sbf-wrap {
    background: #7dd3f7;
    min-height: 100vh;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Language switcher */
.sbf-lang-switcher {
    position: absolute;
    top: 16px;
    right: 16px;
}

.sbf-wrap[dir="rtl"] .sbf-lang-switcher {
    right: auto;
    left: 16px;
}

.sbf-lang-select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,.15);
    background: #fff;
    font-size: .9rem;
    cursor: pointer;
}

/* RTL support */
.sbf-wrap[dir="rtl"] {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

.sbf-wrap[dir="rtl"] .sbf-back {
    margin-right: 0;
    margin-left: auto;
}

.sbf-step {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

/* ── Heading ── */
.sbf-step h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 32px;
    line-height: 1.25;
}

.sbf-step p {
    text-align: center;
    color: #222;
    font-size: 1.05rem;
    margin-bottom: 22px;
}

.sbf-subtitle {
    font-size: .9rem !important;
    color: #555 !important;
    margin-bottom: 20px !important;
}

/* ── Category cards ── */
.sbf-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
}

.sbf-cards .sbf-card:last-child {
    grid-column: 1 / -1;
    max-width: 58%;
    margin: 0 auto;
    width: 100%;
}

.sbf-card {
    background: #fff;
    border: 3px solid transparent;
    border-radius: 18px;
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

.sbf-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,.12);
}

.sbf-card.selected {
    border-color: #6a9de0;
    box-shadow: 0 4px 18px rgba(106,157,224,.35);
}

.sbf-card-title {
    display: block;
    font-weight: 800;
    font-size: 1.05rem;
    color: #111;
    margin-bottom: 8px;
    line-height: 1.3;
}

.sbf-card-sub {
    display: block;
    font-size: .78rem;
    color: #666;
}

/* ── Service radio list ── */
.sbf-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.sbf-list label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 14px;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #222;
    transition: background .15s;
}

.sbf-list label.selected {
    background: #b0c9f0;
    font-weight: 700;
}

.sbf-list input[type="radio"] {
    display: none;
}

.sbf-radio-indicator {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sbf-list label.selected .sbf-radio-indicator {
    background: #4a7fd4;
}

.sbf-list label.selected .sbf-radio-indicator::after {
    content: '✓';
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
}

/* ── Email input ── */
.sbf-email-input,
#sbf-email {
    display: block;
    width: 100%;
    padding: 18px 20px;
    border-radius: 14px;
    border: none;
    font-size: 1rem;
    margin-bottom: 20px;
    box-sizing: border-box;
    outline: none;
}

.sbf-email-input:focus,
#sbf-email:focus {
    box-shadow: 0 0 0 3px rgba(74,127,212,.4);
}

/* ── Buttons ── */
.sbf-btn {
    display: block;
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 50px;
    background: #a8bff0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, opacity .2s;
}

.sbf-btn:hover:not(:disabled) {
    background: #8aaae8;
}

.sbf-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* ── Back button ── */
.sbf-back {
    background: none;
    border: none;
    cursor: pointer;
    font-size: .95rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
}

/* ── Error ── */
.sbf-error {
    color: #c0392b;
    text-align: center;
    font-size: .9rem;
    margin-top: 8px;
}

/* ── Thank you ── */
.sbf-thankyou {
    text-align: center;
    padding: 40px 20px;
}

.sbf-ty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 16px;
}

/* ── Language flag (top-left) ── */
.sbf-wrap::before {
    content: none; /* handled externally if needed */
}

@media (max-width: 480px) {
    .sbf-step h2 { font-size: 1.6rem; }
    .sbf-cards   { grid-template-columns: 1fr; }
    .sbf-cards .sbf-card:last-child { max-width: 100%; }
}