/* ==========================================================
   PRCO Forms — unified site design system
   v1.2.0
========================================================== */

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

.prco-form {
    --prco-deep: #22304F;
    --prco-blue: #495883;
    --prco-yellow: #FFB600;
    --prco-yellow-soft: #FFF6D8;
    --prco-muted: #68738A;
    --prco-border: #DFE5EE;
    --prco-page: #FBFCFE;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    font-family: "Montserrat", sans-serif;
    color: var(--prco-deep);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

.prco-form button,
.prco-form input,
.prco-form textarea {
    box-sizing: border-box !important;
}

.prco-form__layout,
.prco-form__head,
.prco-form__form,
.prco-form__fields,
.prco-form__simple-row {
    min-width: 0;
}

/* ==========================================================
   ACCESSIBILITY / ANTISPAM
========================================================== */

.prco-form__honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Fallback if the active theme does not ship WordPress screen-reader styles. */
.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__honeypot input {
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* ==========================================================
   TYPOGRAPHY
   Intentionally not H1/H2/H3 elements so Elementor/theme
   heading rules cannot distort the form.
========================================================== */

.prco-form__line {
    display: block;
    width: 38px;
    height: 4px;
    margin: 0 0 15px;
    border-radius: 999px;
    background: var(--prco-yellow);
}

.prco-form__title {
    display: block;
    margin: 0 !important;
    padding: 0 !important;

    color: var(--prco-deep) !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.025em !important;
    text-transform: none !important;
}

.prco-form__text {
    display: block;
    max-width: 680px;
    margin: 11px 0 0 !important;
    padding: 0 !important;

    color: var(--prco-muted) !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.58 !important;
    letter-spacing: 0 !important;
}

/* ==========================================================
   FIELDS
========================================================== */

.prco-form__field {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.prco-form__field input,
.prco-form__field textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;

    border: 1px solid #D9E1EC !important;
    border-radius: 10px !important;
    outline: 0 !important;

    background: #FFFFFF !important;
    color: var(--prco-deep) !important;

    font-family: "Montserrat", sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;

    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.prco-form__field input {
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 16px 0 50px !important;
}

.prco-form__field textarea {
    min-height: 124px !important;
    padding: 15px 16px 15px 50px !important;
    resize: vertical;
}

.prco-form__field input::placeholder,
.prco-form__field textarea::placeholder {
    color: #8A93A7 !important;
    opacity: 1 !important;
}

.prco-form__field input:focus,
.prco-form__field textarea:focus {
    border-color: rgba(73, 88, 131, .58) !important;
    box-shadow: 0 0 0 3px rgba(73, 88, 131, .075) !important;
}

.prco-form__field.has-error input,
.prco-form__field.has-error textarea {
    border-color: rgba(180, 35, 24, .55) !important;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .06) !important;
}

/* crisp outline icons */
.prco-form__field-icon {
    position: absolute;
    z-index: 2;
    left: 17px;
    top: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    color: var(--prco-blue);
    transform: translateY(-50%);
    pointer-events: none;
}

.prco-form__field-icon svg {
    display: block;
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;

    shape-rendering: geometricPrecision;
    vector-effect: non-scaling-stroke;
}

.prco-form__field--message .prco-form__field-icon {
    top: 17px;
    transform: none;
}

/* ==========================================================
   BUTTON
========================================================== */

.prco-form__submit {
    position: relative;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-height: 54px;
    margin: 0;
    padding: 14px 24px;

    border: 1px solid var(--prco-yellow) !important;
    border-radius: 9px !important;

    background: var(--prco-yellow) !important;
    color: var(--prco-deep) !important;

    font-family: "Montserrat", sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;

    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 182, 0, .12) !important;

    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

@media (hover: hover) and (pointer: fine) {
    .prco-form__submit:hover {
        background: #FFC329 !important;
        border-color: #FFC329 !important;
        color: var(--prco-deep) !important;
        box-shadow: 0 10px 22px rgba(255, 182, 0, .18) !important;
    }
}

.prco-form__submit:active {
    transform: translateY(1px);
}

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

.prco-form__submit:disabled {
    cursor: wait;
    opacity: .78;
}

.prco-form__spinner {
    display: none;
    width: 17px;
    height: 17px;
    margin-left: 9px;
    border: 2px solid rgba(34, 48, 79, .25);
    border-top-color: var(--prco-deep);
    border-radius: 50%;
    animation: prcoSpin .7s linear infinite;
}

.prco-form__submit.is-loading .prco-form__spinner {
    display: inline-block;
}

@keyframes prcoSpin {
    to { transform: rotate(360deg); }
}

/* ==========================================================
   STATUS
========================================================== */

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

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

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

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

/* ==========================================================
   1. SIMPLE — section CTA
========================================================== */

.prco-form--simple {
    position: relative;

    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 34px clamp(28px, 3.2vw, 52px);

    overflow: hidden;
    border-radius: 15px;

    background:
        linear-gradient(135deg, #1E2946 0%, #243354 52%, #223150 100%);

    color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(34, 48, 79, .07);
}

.prco-form--simple::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 26px;
    right: 34px;

    width: 116px;
    height: 74px;

    opacity: .18;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.32) 1.25px, transparent 1.5px);
    background-size: 17px 17px;
    pointer-events: none;
}

.prco-form--simple .prco-form__layout {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: minmax(320px, .82fr) minmax(430px, 1.18fr);
    align-items: center;
    gap: clamp(42px, 5vw, 82px);
}

.prco-form--simple .prco-form__head {
    max-width: 560px;
}

.prco-form--simple .prco-form__line {
    margin-bottom: 15px;
}

.prco-form--simple .prco-form__title {
    color: #FFFFFF !important;
    font-size: 32px !important;
    line-height: 1.12 !important;
    letter-spacing: -0.025em !important;
}

.prco-form--simple .prco-form__text {
    max-width: 590px;
    margin-top: 12px !important;
    color: rgba(255, 255, 255, .78) !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

.prco-form--simple .prco-form__form {
    width: 100%;
    min-width: 0;
}

.prco-form__simple-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.prco-form--simple .prco-form__field input {
    height: 58px !important;
    min-height: 58px !important;

    border-color: rgba(255,255,255,.98) !important;
    border-radius: 10px 0 0 10px !important;

    background: #FFFFFF !important;
    font-size: 15px !important;
}

.prco-form--simple .prco-form__submit {
    min-width: 170px;
    height: 58px;
    min-height: 58px;
    border-radius: 0 10px 10px 0 !important;
}

.prco-form--simple .prco-form__status {
    color: #FFFFFF;
}

.prco-form--simple .prco-form__status.is-success {
    color: #DFF7E7;
}

.prco-form--simple .prco-form__status.is-error {
    color: #FFD7D4;
}

/* ==========================================================
   2. POPUP — visually same family as page form
========================================================== */

.prco-form--popup {
    position: relative;

    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 30px;

    overflow: hidden;
    border: 1px solid rgba(73, 88, 131, .11);
    border-radius: 15px;

    background: #FFFFFF;
    box-shadow: 0 16px 42px rgba(34, 48, 79, .11);
}

.prco-form--popup::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 22px;
    right: 22px;

    width: 76px;
    height: 56px;

    opacity: .22;
    background-image:
        radial-gradient(circle, rgba(73,88,131,.28) 1.2px, transparent 1.5px);
    background-size: 14px 14px;
    pointer-events: none;
}

.prco-form--popup .prco-form__head,
.prco-form--popup .prco-form__form {
    position: relative;
    z-index: 1;
}

.prco-form--popup .prco-form__head {
    max-width: 455px;
    margin-bottom: 22px;
}

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

.prco-form--popup .prco-form__fields {
    display: grid;
    gap: 10px;
}

.prco-form--popup .prco-form__submit {
    width: 100%;
    margin-top: 12px;
}

/* ==========================================================
   3. PAGE — clean page form
========================================================== */

.prco-form--page {
    position: relative;

    width: 100%;
    margin: 0;
    padding: 32px;

    overflow: hidden;
    border: 1px solid rgba(73, 88, 131, .11);
    border-radius: 15px;

    background: #FFFFFF;
    box-shadow: 0 8px 26px rgba(34, 48, 79, .05);
}

.prco-form--page::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 22px;
    right: 22px;

    width: 82px;
    height: 62px;

    opacity: .22;
    background-image:
        radial-gradient(circle, rgba(73,88,131,.30) 1.2px, transparent 1.5px);
    background-size: 15px 15px;
    pointer-events: none;
}

.prco-form--page .prco-form__head,
.prco-form--page .prco-form__form {
    position: relative;
    z-index: 1;
}

.prco-form--page .prco-form__head {
    max-width: 720px;
    margin-bottom: 23px;
}

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

.prco-form--page .prco-form__fields {
    display: grid;
    gap: 10px;
}

.prco-form--page .prco-form__submit {
    width: 100%;
    margin-top: 12px;
}

/* ==========================================================
   CALCULATOR CONTEXT INSIDE POPUP/PAGE
========================================================== */

.prco-form__calc-context {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;

    margin: 0 0 12px;
    padding: 11px 13px;

    border: 1px solid rgba(255, 182, 0, .24);
    border-radius: 10px;

    background: #FFFAF0;
    color: var(--prco-deep);
}

.prco-form__calc-context[hidden] {
    display: none !important;
}

.prco-form__calc-context span {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8A7450;
}

.prco-form__calc-context strong {
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--prco-deep);
}

.prco-form__calc-context em {
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    color: var(--prco-blue);
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 980px) {
    .prco-form--simple .prco-form__layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .prco-form--simple .prco-form__head {
        max-width: 680px;
    }

    .prco-form--simple .prco-form__form {
        max-width: 720px;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {
    .prco-form--simple {
        padding: 30px 20px;
        border-radius: 14px;
    }

    .prco-form--simple::after {
        top: 18px;
        right: -12px;
        width: 78px;
        height: 54px;
        opacity: .13;
        background-size: 13px 13px;
    }

    .prco-form--simple .prco-form__layout {
        gap: 22px;
    }

    .prco-form--simple .prco-form__title {
        font-size: 29px !important;
        line-height: 1.13 !important;
    }

    .prco-form--popup .prco-form__title,
    .prco-form--page .prco-form__title {
        font-size: 28px !important;
        line-height: 1.14 !important;
    }

    .prco-form--simple .prco-form__text,
    .prco-form--popup .prco-form__text,
    .prco-form--page .prco-form__text {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }

    .prco-form__simple-row {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .prco-form--simple .prco-form__field input {
        height: 54px !important;
        min-height: 54px !important;
        border-radius: 10px !important;
    }

    .prco-form--simple .prco-form__submit {
        width: 100%;
        min-width: 0;
        height: 54px;
        min-height: 54px;
        margin: 0;
        border-radius: 10px !important;
    }

    .prco-form--popup,
    .prco-form--page {
        padding: 25px 20px;
        border-radius: 14px;
    }

    .prco-form--popup::after,
    .prco-form--page::after {
        opacity: .14;
    }

    .prco-form__field input {
        height: 52px !important;
        min-height: 52px !important;
        font-size: 16px !important;
    }

    .prco-form__field textarea {
        min-height: 112px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .prco-form__calc-context {
        grid-template-columns: 1fr;
    }

    .prco-form__calc-context em {
        white-space: normal;
    }
}

@media (max-width: 390px) {
    .prco-form--simple {
        padding-left: 16px;
        padding-right: 16px;
    }

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

@media (prefers-reduced-motion: reduce) {
    .prco-form__submit,
    .prco-form__field input,
    .prco-form__field textarea {
        transition: none;
    }

    .prco-form__spinner {
        animation-duration: 1.2s;
    }
}
