/* Форма «Записатися» (#service-booking) і кнопки у прайсі. */

.sb-booking {
    scroll-margin-top: 20px;
    font-family: 'Montserrat', sans-serif;
}

.sb-booking .sb-title {
    margin-bottom: 30px;
}

.sb-form {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding: 30px 32px;
    background: #EDF4FC;
    border-left: 4px solid #2EC4B6;
    box-sizing: border-box;
}

.sb-form .sb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
}

.sb-form .sb-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sb-form .sb-field--wide {
    grid-column: 1 / -1;
}

/* Перекриваємо глобальні form label / form label span / input[type=tel] теми. */
.sb-form .sb-label {
    display: block;
    width: auto;
    vertical-align: baseline;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    color: #1F2937;
}

.sb-form .sb-req {
    padding-left: 0;
    color: #E53935;
}

.sb-form .sb-optional {
    padding-left: 0;
    font-weight: 400;
    color: #6B7280;
}

/* Перекриваємо глобальне form input {width:400px} теми. */
.sb-form .sb-input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
    text-indent: 0;
    background: #fff;
    border: 1px solid #CBD5E1;
    border-radius: 3px;
    box-sizing: border-box;
    font-family: inherit;
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    color: #111827;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.sb-form .sb-input::placeholder {
    color: #9CA3AF;
    opacity: 1;
}

.sb-form .sb-input:focus {
    outline: none;
    border-color: #1774D9;
    box-shadow: 0 0 0 3px rgba(23, 116, 217, .2);
}

.sb-form .sb-select {
    padding-right: 40px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236B7280' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.sb-form .sb-select optgroup {
    font-weight: 700;
    color: #111827;
}

.sb-form .sb-textarea {
    min-height: 96px;
    resize: vertical;
}

.sb-form .sb-field--error .sb-input {
    border-color: #E53935;
}

.sb-form .sb-field--error .sb-input:focus {
    box-shadow: 0 0 0 3px rgba(229, 57, 53, .2);
}

.sb-form .sb-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 17px;
    color: #C62828;
}

.sb-form .sb-error:empty {
    display: none;
}

.sb-form .sb-tariff {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 17px;
    color: #1774D9;
}

.sb-form .sb-tariff[hidden] {
    display: none;
}

.sb-form .sb-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
}

.sb-form .sb-consent {
    max-width: 320px;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 16px;
    color: #6B7280;
}

.sb-form .sb-submit {
    flex: 0 0 auto;
    width: auto;
    min-width: 200px;
    min-height: 44px;
    margin: 0;
    padding: 12px 28px;
    background: #1774D9;
    border: 0;
    border-radius: 3px;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    color: #fff;
    cursor: pointer;
    transition: background .15s ease;
}

.sb-form .sb-submit:hover {
    background: #125DB0;
}

.sb-form .sb-submit:focus-visible {
    outline: 3px solid rgba(23, 116, 217, .35);
    outline-offset: 2px;
}

.sb-form .sb-submit:disabled {
    background: #8DB5E5;
    cursor: wait;
}

.sb-form .sb-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 3px;
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
}

.sb-form .sb-status:empty {
    display: none;
}

.sb-form .sb-status:focus {
    outline: none;
}

.sb-form .sb-status--success {
    background: #E6F7F2;
    border: 1px solid #2EC4B6;
    color: #0F5132;
}

.sb-form .sb-status--error {
    background: #FDECEC;
    border: 1px solid #E53935;
    color: #8B1D1B;
}

.sb-form .sb-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Кнопка «Записатися» у рядку прайсу ---------- */

.sb-price-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

.sb-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 18px;
    background: #1774D9;
    border-radius: 3px;
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
    color: #fff !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .15s ease;
}

.sb-book-btn:hover {
    background: #125DB0;
}

.sb-book-btn:focus-visible {
    outline: 3px solid rgba(23, 116, 217, .35);
    outline-offset: 2px;
}

@media only screen and (max-width: 1279px) {
    .sb-price-cell {
        gap: 8px 12px;
    }

    .sb-book-btn {
        padding: 6px 14px;
    }
}

@media only screen and (max-width: 767px) {
    .sb-booking {
        scroll-margin-top: 80px;
    }

    .sb-form {
        padding: 20px 16px;
    }

    .sb-form .sb-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sb-form .sb-input {
        font-size: 16px; /* без авто-зуму iOS */
    }

    .sb-form .sb-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .sb-form .sb-consent {
        max-width: none;
    }

    .sb-form .sb-submit {
        width: 100%;
        min-width: 0;
        min-height: 48px;
    }

    /* У мобільному прайсі ціна з кнопкою — окремим рядком під назвою тарифу. */
    .price_block .inner_price_block .row .column.sb-price-col {
        display: block;
        width: 100%;
        margin-top: 6px;
    }

    .price_block .inner_price_block .row .column.sb-price-col::before {
        display: none;
    }

    .sb-book-btn {
        min-height: 44px;
        padding: 8px 18px;
    }
}
