/* ==================================================
   Lab Sharikov Core — формы
================================================== */

.lab-form-section {
    width: 100%;
    margin: 70px 0 40px;
    clear: both;
}

.lab-form-card,
.lab-product-form {
    box-sizing: border-box;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, .06);
}

.lab-form-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 34px;
}

.lab-product-form {
    margin-top: 22px;
    padding: 22px;
}

.lab-product-form--quick {
    border-color: #dcecff;
    background: #fbfdff;
}

.lab-product-form--stock {
    border-color: #f0e3d6;
    background: #fffdf9;
}

.lab-form-heading,
.lab-product-form__heading {
    margin-bottom: 22px;
}

.lab-form-heading {
    text-align: center;
}

.lab-form-heading h2,
.lab-product-form__heading h3 {
    margin: 0 0 8px;
    line-height: 1.2;
}

.lab-form-heading h2 {
    font-size: clamp(27px, 3vw, 38px);
}

.lab-product-form__heading h3 {
    font-size: 22px;
}

.lab-form-heading p,
.lab-product-form__heading p {
    margin: 0;
    color: #667085;
    line-height: 1.55;
}

.lab-form-grid {
    display: grid;
    gap: 14px;
}

.lab-form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lab-field {
    display: block;
    margin-bottom: 14px;
}

.lab-field > span {
    display: block;
    margin-bottom: 6px;
    color: #343942;
    font-size: 14px;
    font-weight: 600;
}

.lab-field small {
    color: #8a9099;
    font-weight: 400;
}

.lab-field input,
.lab-field textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #d7dbe1;
    border-radius: 11px;
    background: #fff;
    color: #24272d;
    font: inherit;
    line-height: 1.35;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.lab-field textarea {
    min-height: 96px;
    resize: vertical;
}

.lab-field input:focus,
.lab-field textarea:focus {
    border-color: #4b8fff;
    box-shadow: 0 0 0 3px rgba(75, 143, 255, .12);
}

.lab-privacy {
    display: flex;
    margin: 4px 0 16px;
    align-items: flex-start;
    gap: 9px;
    color: #5f6670;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}

.lab-privacy input {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    flex: 0 0 17px;
}

.lab-privacy a {
    color: #286fdb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lab-turnstile-wrap {
    display: flex;
    margin: 0 0 16px;
    justify-content: flex-start;
}

.lab-form-card .lab-turnstile-wrap {
    justify-content: center;
}

.lab-form-submit {
    display: inline-flex;
    min-height: 48px;
    padding: 12px 22px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    background: #0a7cff;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.lab-form-card .lab-form-submit {
    width: 100%;
}

.lab-form-submit:hover,
.lab-form-submit:focus-visible {
    background: #086bdc;
    color: #fff;
    box-shadow: 0 7px 18px rgba(10, 124, 255, .18);
    transform: translateY(-1px);
}

.lab-form-notice {
    margin: 0 0 18px;
    padding: 13px 15px;
    border-radius: 10px;
    line-height: 1.45;
}

.lab-form-notice--success {
    border: 1px solid #9bd5aa;
    background: #ebf8ef;
    color: #176a2f;
}

.lab-form-notice--error {
    border: 1px solid #f0b8b8;
    background: #fff1f1;
    color: #8d2626;
}

/* Форма категории должна начинаться после каталога, не прилипая к карточкам. */
.tax-product_cat .lab-form-section {
    padding-right: 20px;
    padding-left: 20px;
}

@media (max-width: 768px) {
    .lab-form-section {
        margin: 48px 0 28px;
    }

    .lab-form-card,
    .lab-product-form {
        border-radius: 14px;
    }

    .lab-form-card {
        padding: 22px 17px;
    }

    .lab-product-form {
        padding: 18px 15px;
    }

    .lab-form-grid--two {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lab-turnstile-wrap,
    .lab-form-card .lab-turnstile-wrap {
        justify-content: center;
        overflow-x: auto;
    }

    .lab-form-submit {
        width: 100%;
    }
}

/* ==================================================
   Телефон: компактный фиксированный +7 + 10 цифр
================================================== */
.lab-field > .lab-phone-control {
    display: flex;
    width: 100%;
    min-height: 48px;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    align-items: center;
    border: 1px solid #d7dbe1;
    border-radius: 11px;
    background: #fff;
    color: #24272d;
    font-size: inherit;
    font-weight: inherit;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.lab-field > .lab-phone-control:focus-within {
    border-color: #4b8fff;
    box-shadow: 0 0 0 3px rgba(75, 143, 255, .12);
}

.lab-phone-prefix {
    display: inline-flex;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 14px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #6f7680;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    user-select: none;
}

.lab-field .lab-phone-input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    flex: 1;
    padding: 12px 14px 12px 7px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none !important;
    outline: none;
}

.lab-field .lab-phone-input::placeholder {
    color: #a0a6af;
    opacity: 1;
}

.lab-turnstile-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.lab-form-card .lab-turnstile-wrap {
    align-items: center;
}

.lab-turnstile-message {
    margin: 0;
    color: #9b2c2c;
    font-size: 13px;
    line-height: 1.4;
}
