.prco-form,
.prco-form *,
.prco-form *::before,
.prco-form *::after {
    box-sizing: border-box;
}

.prco-form,
.prco-form input,
.prco-form textarea,
.prco-form button {
    font-family: "Montserrat", sans-serif !important;
}

.prco-form {
    --prco-navy: #22304F;
    --prco-navy-dark: #1E2946;
    --prco-blue: #495883;
    --prco-yellow: #FFB600;
    --prco-yellow-hover: #FFC229;
    --prco-white: #FFFFFF;
    --prco-muted: #68738A;
    --prco-border: #DFE5EE;

    width: 100%;
    color: var(--prco-navy);
}


.prco-form .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.prco-form__hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.prco-form__field {
    display: block;
    margin: 0;
}

.prco-form__input {
    width: 100%;
    min-width: 0;
    height: 56px;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 1px solid var(--prco-border) !important;
    border-radius: 12px !important;
    outline: 0 !important;
    background: var(--prco-white) !important;
    color: var(--prco-navy-dark) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
}

.prco-form__input::placeholder {
    color: #8B94A6 !important;
    opacity: 1;
}

.prco-form__input:focus {
    border-color: var(--prco-yellow) !important;
    box-shadow: 0 0 0 3px rgba(255, 182, 0, 0.13) !important;
}

.prco-form__textarea {
    height: auto;
    min-height: 132px;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    resize: vertical;
}

.prco-form__submit {
    min-height: 56px;
    margin: 0 !important;
    padding: 0 24px !important;
    border: 1px solid var(--prco-yellow) !important;
    border-radius: 12px !important;
    outline: 0 !important;
    background: var(--prco-yellow) !important;
    color: var(--prco-navy-dark) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.prco-form__submit::before,
.prco-form__submit::after {
    content: none !important;
    display: none !important;
}

.prco-form__submit:hover,
.prco-form__submit:focus {
    background: var(--prco-yellow-hover) !important;
    border-color: var(--prco-yellow-hover) !important;
    color: var(--prco-navy-dark) !important;
}

.prco-form__submit:focus-visible {
    outline: 3px solid rgba(255, 182, 0, .30) !important;
    outline-offset: 3px !important;
}

.prco-form__submit[disabled] {
    cursor: wait;
    opacity: .7;
}

.prco-form__status {
    min-height: 0;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
}

.prco-form__status:empty {
    display: none;
}

.prco-form__status.is-success {
    color: #2D7A46;
}

.prco-form__status.is-error {
    color: #B42318;
}

/* Основная форма на тёмном фоне */
.prco-form--consultation {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(330px, 540px) minmax(420px, 620px);
    justify-content: space-between;
    align-items: center;
    gap: clamp(40px, 5vw, 78px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 38px 50px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 82% 100%, rgba(73, 88, 131, .22), transparent 30%),
        linear-gradient(135deg, #22304F 0%, #1E2946 100%);
    color: var(--prco-white);
    box-shadow: 0 16px 38px rgba(30, 41, 70, .12);
}

.prco-form--consultation::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 20px;
    right: 28px;
    width: 100px;
    height: 58px;
    opacity: .16;
    background-image: radial-gradient(circle, #fff 1.5px, transparent 1.6px);
    background-size: 14px 14px;
}

.prco-form__decor {
    position: absolute;
    z-index: -1;
    right: 19%;
    bottom: -220px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 50%;
}

.prco-form--consultation .prco-form__intro {
    min-width: 0;
}

.prco-form__accent {
    display: block;
    width: 38px;
    height: 4px;
    margin-bottom: 16px;
    border-radius: 99px;
    background: var(--prco-yellow);
}

.prco-form--consultation .prco-form__title {
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: var(--prco-white) !important;
    font-size: clamp(30px, 2.5vw, 40px) !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    letter-spacing: -.03em !important;
}

.prco-form--consultation .prco-form__text {
    max-width: 520px;
    margin: 0 !important;
    color: rgba(255, 255, 255, .86) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
}

.prco-form--consultation .prco-form__form {
    width: 100%;
    max-width: 620px;
    justify-self: end;
    min-width: 0;
}

.prco-form__inline-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    width: 100%;
    min-width: 0;
}

.prco-form__phone-shell {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
}

.prco-form__phone-shell .prco-form__input {
    height: 58px;
    padding-left: 52px !important;
    border-radius: 12px 0 0 12px !important;
    border-right: 0 !important;
}

.prco-form__phone-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 17px;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #60739B;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translateY(-50%);
    pointer-events: none;
}

.prco-form--consultation .prco-form__submit {
    height: 58px;
    border-radius: 0 12px 12px 0 !important;
}

.prco-form--consultation .prco-form__status.is-success {
    color: #D7F5DF;
}

.prco-form--consultation .prco-form__status.is-error {
    color: #FFD5D2;
}

/* Форма для Popup */
.prco-form--popup {
    width: 100%;
    max-width: 590px;
    margin: 0 auto;
    padding: 38px 34px 32px;
    border-radius: 18px;
    background: #F6F4FB;
    text-align: center;
}

.prco-form--popup .prco-form__title {
    margin: 0 0 14px !important;
    color: var(--prco-navy) !important;
    font-size: clamp(28px, 5vw, 38px) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

.prco-form--popup .prco-form__text {
    max-width: 500px;
    margin: 0 auto 26px !important;
    color: #44506A !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

.prco-form--popup .prco-form__form,
.prco-form--feedback .prco-form__form {
    display: grid;
    gap: 12px;
}

.prco-form--popup .prco-form__submit,
.prco-form--feedback .prco-form__submit {
    width: 100%;
}

.prco-form__consent {
    margin: 8px 0 0 !important;
    color: #59627A !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.prco-form__phone-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--prco-navy) !important;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none !important;
}

/* Форма обратной связи */
.prco-form--feedback {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
}

.prco-form--feedback .prco-form__title {
    margin: 0 0 24px !important;
    color: var(--prco-navy) !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
}

@media (max-width: 1100px) {
    .prco-form--consultation {
        grid-template-columns: minmax(280px, 1fr) minmax(400px, 560px);
        gap: 36px;
        padding: 36px 38px;
    }

    .prco-form--consultation .prco-form__form {
        max-width: 560px;
    }

    .prco-form__inline-row {
        grid-template-columns: minmax(0, 1fr) 160px;
    }
}

@media (max-width: 900px) {
    .prco-form--consultation {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .prco-form--consultation .prco-form__form {
        max-width: 620px;
        justify-self: start;
    }
}

@media (max-width: 767px) {
    .prco-form--consultation {
        display: block;
        padding: 27px 18px 18px;
        border-radius: 17px;
    }

    .prco-form--consultation::after {
        top: 12px;
        right: 12px;
        width: 72px;
        height: 50px;
        background-size: 12px 12px;
    }

    .prco-form__decor {
        right: -100px;
        bottom: -235px;
        width: 320px;
        height: 320px;
    }

    .prco-form__accent {
        width: 32px;
        height: 3px;
        margin-bottom: 13px;
    }

    .prco-form--consultation .prco-form__title {
        max-width: 280px;
        margin-bottom: 12px !important;
        font-size: 30px !important;
        line-height: 1.05 !important;
    }

    .prco-form--consultation .prco-form__text {
        max-width: 390px;
        font-size: 14px !important;
        line-height: 1.58 !important;
    }

    .prco-form--consultation .prco-form__form {
        max-width: none;
        margin-top: 24px;
    }

    .prco-form__inline-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .prco-form__phone-shell .prco-form__input {
        height: 54px;
        border-right: 1px solid var(--prco-border) !important;
        border-radius: 12px !important;
    }

    .prco-form--consultation .prco-form__submit {
        width: 100%;
        height: 54px;
        border-radius: 12px !important;
    }

    .prco-form--popup {
        padding: 30px 20px 24px;
        border-radius: 16px;
    }

    .prco-form--popup .prco-form__title {
        font-size: 30px !important;
    }

    .prco-form__input,
    .prco-form__submit {
        min-height: 54px;
    }

    .prco-form__phone-link {
        font-size: 24px;
    }

    .prco-form--feedback .prco-form__title {
        margin-bottom: 20px !important;
        font-size: 25px !important;
    }
}

@media (max-width: 390px) {
    .prco-form--consultation {
        padding: 25px 16px 16px;
    }

    .prco-form--consultation .prco-form__title {
        font-size: 28px !important;
    }

    .prco-form--consultation .prco-form__text {
        font-size: 13.5px !important;
    }

    .prco-form--popup {
        padding-left: 16px;
        padding-right: 16px;
    }
}
