.goprofor-extra-modal {
    --extra-navy: #102d4e;
    --extra-blue: #117ca6;
    --extra-green: #2f8a63;
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: grid;
    place-items: center;
    padding: 22px;
    visibility: hidden;
    opacity: 0;
    font-family: "Montserrat", Arial, sans-serif;
    transition: opacity .2s ease, visibility .2s ease;
}

.goprofor-extra-modal.is-open { visibility: visible; opacity: 1; }
.goprofor-extra-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 26, 45, .82);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.goprofor-extra-modal__card {
    position: relative;
    width: min(1040px, 100%);
    max-height: calc(100vh - 44px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(3, 22, 38, .35);
    transform: translateY(16px) scale(.99);
    transition: transform .25s ease;
}
.goprofor-extra-modal.is-open .goprofor-extra-modal__card { transform: none; }
.goprofor-extra-modal__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    background: linear-gradient(90deg, var(--extra-navy), var(--extra-blue) 55%, var(--extra-green));
}

.goprofor-extra-modal__header {
    min-height: 92px;
    padding: 22px 34px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #e5eef0;
    background: linear-gradient(105deg, #f6fbfc, #ecf6f1);
}
.goprofor-extra-modal__header img { width: min(285px, 58%); height: auto; }
.goprofor-extra-modal__header span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #24734f;
    background: rgba(47, 138, 99, .1);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
}

.goprofor-extra-modal__form { padding: 30px 34px 34px; }
.goprofor-extra-modal__intro { margin-bottom: 25px; }
.goprofor-extra-modal__eyebrow {
    margin: 0 0 8px;
    color: var(--extra-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.goprofor-extra-modal__intro h2 {
    margin: 0 0 9px;
    color: var(--extra-navy);
    font-size: clamp(25px, 3.3vw, 37px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.03em;
}
.goprofor-extra-modal__intro > p:last-child { margin: 0; color: #576c7d; line-height: 1.6; }

.goprofor-extra-grid { display: grid; gap: 17px; margin-bottom: 21px; }
.goprofor-extra-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.goprofor-extra-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.goprofor-extra-field { display: block; min-width: 0; }
.goprofor-extra-field > span,
.goprofor-extra-field > label > span,
.goprofor-extra-other label {
    display: block;
    margin-bottom: 7px;
    color: #263f58;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
}
.goprofor-extra-field b,
.goprofor-extra-choice b,
.goprofor-extra-section b { color: #c34b45; }
.goprofor-extra-field input,
.goprofor-extra-field select {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #cfdce1;
    border-radius: 11px;
    color: #17334e;
    background: #fff;
    font: 500 13px "Montserrat", Arial, sans-serif;
    box-sizing: border-box;
}
.goprofor-extra-field input:focus,
.goprofor-extra-field select:focus {
    border-color: var(--extra-blue);
    box-shadow: 0 0 0 3px rgba(17, 124, 166, .12);
    outline: none;
}
.goprofor-extra-other { margin-top: 10px; }

.goprofor-extra-section,
.goprofor-extra-choice {
    min-width: 0;
    margin: 0 0 22px;
    padding: 19px;
    border: 1px solid #dce7ea;
    border-radius: 15px;
    background: #f8fbfc;
}
.goprofor-extra-section legend,
.goprofor-extra-choice legend {
    padding: 0 7px;
    color: var(--extra-navy);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 800;
}
.goprofor-extra-section > p { margin: -2px 0 16px; color: #667a89; font-size: 12px; }
.goprofor-extra-section .goprofor-extra-grid { margin-bottom: 0; }
.goprofor-extra-choice { margin-bottom: 0; }
.goprofor-extra-choice label { margin: 8px 18px 0 0; display: inline-flex; align-items: center; gap: 6px; color: #304a60; font-size: 13px; }

.goprofor-extra-scale__labels { display: flex; justify-content: space-between; color: #6a7d8b; font-size: 11px; }
.goprofor-extra-scale__options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 8px; }
.goprofor-extra-scale__options label { cursor: pointer; }
.goprofor-extra-scale__options input { position: absolute; opacity: 0; }
.goprofor-extra-scale__options span {
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #cbdadf;
    border-radius: 10px;
    color: var(--extra-navy);
    background: #fff;
    font-weight: 800;
}
.goprofor-extra-scale__options input:checked + span { border-color: var(--extra-green); color: #fff; background: var(--extra-green); }

.goprofor-extra-modal__error { display: none; margin: 12px 0; padding: 12px 14px; border-radius: 10px; color: #96362f; background: #fff0ef; font-size: 12px; font-weight: 700; }
.goprofor-extra-modal__error.is-visible { display: block; }
.goprofor-extra-modal__privacy { margin: 17px 0 0; color: #617584; font-size: 11px; line-height: 1.5; }
.goprofor-extra-modal__privacy i { margin-right: 6px; color: var(--extra-green); }
.goprofor-extra-modal__actions { margin-top: 18px; display: flex; justify-content: flex-end; }
.goprofor-extra-modal__actions button {
    min-width: 205px;
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--extra-blue), var(--extra-green));
    box-shadow: 0 12px 25px rgba(24, 120, 126, .22);
    font: 800 12px "Montserrat", Arial, sans-serif;
    cursor: pointer;
}
.goprofor-extra-modal__actions button i { margin-left: 8px; }
.goprofor-extra-modal__actions button[disabled] { opacity: .7; cursor: wait; }
body.goprofor-extra-modal-open { overflow: hidden; }

@media (max-width: 760px) {
    .goprofor-extra-modal { padding: 10px; }
    .goprofor-extra-modal__card { max-height: calc(100vh - 20px); border-radius: 18px; }
    .goprofor-extra-modal__header { padding: 20px 21px 16px; align-items: flex-start; flex-direction: column; gap: 10px; }
    .goprofor-extra-modal__header img { width: min(250px, 88%); }
    .goprofor-extra-modal__form { padding: 24px 20px 27px; }
    .goprofor-extra-grid--three,
    .goprofor-extra-grid--two { grid-template-columns: 1fr; }
    .goprofor-extra-modal__actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .goprofor-extra-modal,
    .goprofor-extra-modal__card { transition: none; }
}
