.ipsp-form-wrap {
    --ipsp-yellow: #f6c900;
    --ipsp-yellow-deep: #e1b600;
    --ipsp-charcoal: #292929;
    --ipsp-muted: #686868;
    --ipsp-paper: #f7f7f4;
    max-width: 1040px;
    padding-top: 54px;
}

.ipsp-form-head {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 48px 52px 42px;
    border: 1px solid rgba(70, 60, 0, .12);
    border-radius: 32px;
    background: linear-gradient(135deg, #ffd91f 0%, var(--ipsp-yellow) 68%, #efbd00 100%);
    color: var(--ipsp-charcoal);
    box-shadow: 0 24px 60px rgba(86, 70, 0, .20);
}

.ipsp-form-head::before,
.ipsp-form-head::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .23);
}

.ipsp-form-head::before {
    width: 330px;
    height: 330px;
    right: -105px;
    top: -150px;
    border: 46px solid rgba(255, 255, 255, .17);
    background: transparent;
}

.ipsp-form-head::after {
    width: 170px;
    height: 170px;
    right: 145px;
    bottom: -118px;
}

.ipsp-form-head .ipsp-kicker {
    display: block;
    color: #514400;
}

.ipsp-form-head h2 {
    max-width: 760px;
    margin: 10px 0 14px;
    color: var(--ipsp-charcoal);
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -.045em;
}

.ipsp-form-head > p {
    max-width: 720px;
    margin: 0;
    color: #49420f;
    font-size: 1.08rem;
    line-height: 1.65;
}

.ipsp-form-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.ipsp-form-steps span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 9px;
    border: 1px solid rgba(48, 43, 0, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: #343100;
    font-size: .9rem;
    font-weight: 750;
    backdrop-filter: blur(6px);
}

.ipsp-form-steps b {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    background: var(--ipsp-charcoal);
    color: #fff;
    font-size: .75rem;
}

.ipsp-form {
    counter-reset: ipsp-section;
    gap: 26px;
    padding: 4px;
}

.ipsp-form section {
    position: relative;
    overflow: hidden;
    padding: 34px 34px 32px;
    border: 1px solid #e4e1d9;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(45, 40, 25, .075);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ipsp-form section::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--ipsp-yellow), #ffdc2d 62%, transparent);
}

.ipsp-form section:focus-within {
    border-color: #d9ba20;
    box-shadow: 0 18px 44px rgba(73, 61, 0, .12);
    transform: translateY(-1px);
}

.ipsp-form h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    color: var(--ipsp-charcoal);
    font-size: 1.42rem;
}

.ipsp-form h2::before {
    counter-increment: ipsp-section;
    content: counter(ipsp-section, decimal-leading-zero);
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 12px;
    background: var(--ipsp-yellow);
    color: #282500;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .04em;
    box-shadow: 0 7px 16px rgba(111, 90, 0, .15);
}

.ipsp-section-intro {
    max-width: 850px;
    margin: -10px 0 26px;
    color: var(--ipsp-muted);
    font-size: .98rem;
    line-height: 1.65;
}

.ipsp-image-guide {
    position: relative;
    margin: -4px 0 26px;
    padding: 20px 22px 20px 62px;
    border: 1px solid #ead36b;
    border-radius: 16px;
    background: linear-gradient(135deg, #fffceb, #fff8ce);
    color: #3d370d;
}

.ipsp-image-guide::before {
    content: "★";
    position: absolute;
    top: 20px;
    left: 20px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--ipsp-yellow);
    color: #2d2900;
    font-size: .9rem;
}

.ipsp-image-guide strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.03rem;
}

.ipsp-image-guide p {
    margin: 0;
    line-height: 1.55;
}

.ipsp-format-note {
    margin: 22px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f4f4f1;
}

.ipsp-field small {
    display: block;
    color: #706d66;
    line-height: 1.48;
}

.ipsp-field {
    gap: 8px;
}

.ipsp-field > span {
    color: #373737;
    font-size: .92rem;
    letter-spacing: .005em;
}

.ipsp-field input,
.ipsp-field select,
.ipsp-field textarea {
    min-height: 49px;
    border: 1px solid #d9d7d0;
    border-radius: 12px;
    background: var(--ipsp-paper);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .02);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ipsp-field textarea {
    min-height: 122px;
    resize: vertical;
}

.ipsp-field input:hover,
.ipsp-field select:hover,
.ipsp-field textarea:hover {
    background: #fff;
    border-color: #bbb7ab;
}

.ipsp-field input:focus,
.ipsp-field select:focus,
.ipsp-field textarea:focus {
    background: #fff;
    border-color: var(--ipsp-yellow-deep);
    outline: 4px solid rgba(246, 201, 0, .17);
}

.ipsp-field input[type="file"] {
    min-height: 78px;
    padding: 20px;
    border: 2px dashed #d4bd4d;
    background: #fffdf2;
}

.ipsp-check {
    padding: 13px 15px;
    border-radius: 12px;
    background: #f8f7f2;
    line-height: 1.45;
}

.ipsp-check input {
    accent-color: #d5ae00;
}

.ipsp-consent-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ipsp-consent-line input {
    flex: 0 0 auto;
    margin-top: .27em;
}

.ipsp-privacy-open {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 2px solid #d5ae00;
    background: transparent;
    color: #3d3500;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.ipsp-privacy-open:hover,
.ipsp-privacy-open:focus {
    border-color: #282500;
    outline: none;
}

.ipsp-privacy-dialog {
    width: min(760px, calc(100% - 28px));
    max-height: min(88vh, 850px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 26px;
    background: #fff;
    color: var(--ipsp-charcoal);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
}

.ipsp-privacy-dialog::backdrop {
    background: rgba(24, 24, 20, .68);
    backdrop-filter: blur(5px);
}

.ipsp-privacy-modal {
    position: relative;
    padding: 38px;
}

.ipsp-privacy-close-x {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f1f1ed;
    color: #333;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.ipsp-modal-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--ipsp-yellow);
    color: #342f00;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ipsp-privacy-modal h2 {
    max-width: 620px;
    margin: 0 50px 12px 0;
    font-size: clamp(1.75rem, 4vw, 2.45rem);
    line-height: 1.08;
}

.ipsp-modal-lead {
    margin: 0 0 24px;
    color: var(--ipsp-muted);
    line-height: 1.6;
}

.ipsp-privacy-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ipsp-privacy-points > div {
    padding: 17px;
    border: 1px solid #e7e4da;
    border-radius: 14px;
    background: #faf9f5;
}

.ipsp-privacy-points strong {
    display: block;
    margin-bottom: 5px;
    color: #353000;
}

.ipsp-privacy-points p {
    margin: 0;
    color: #625f58;
    font-size: .91rem;
    line-height: 1.52;
}

.ipsp-privacy-points a {
    color: #6d5800;
    font-weight: 700;
}

.ipsp-privacy-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.ipsp-privacy-actions button,
.ipsp-privacy-full {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 11px 17px;
    border: 1px solid #2b2b2b;
    border-radius: 999px;
    background: #2b2b2b;
    color: #fff;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.ipsp-privacy-full {
    border-color: #dfb700;
    background: var(--ipsp-yellow);
    color: #2d2900;
}

.ipsp-submit {
    min-height: 56px;
    padding: 15px 28px;
    border: 2px solid var(--ipsp-charcoal);
    background: var(--ipsp-charcoal);
    box-shadow: 0 12px 26px rgba(30, 30, 30, .18);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.ipsp-submit:hover,
.ipsp-submit:focus {
    background: #000;
    box-shadow: 0 16px 32px rgba(30, 30, 30, .24);
    transform: translateY(-2px);
}

.ipsp-success {
    border-left: 6px solid #21854b;
    box-shadow: 0 10px 26px rgba(21, 93, 49, .1);
}

.ipsp-error {
    border-left: 6px solid #b63820;
    box-shadow: 0 10px 26px rgba(141, 39, 24, .1);
}

@media (max-width: 800px) {
    .ipsp-form-wrap {
        width: min(100% - 24px, 1040px);
        padding-top: 26px;
    }

    .ipsp-form-head {
        padding: 30px 24px;
        border-radius: 24px;
    }

    .ipsp-form-head h2 {
        font-size: clamp(2.35rem, 12vw, 3.55rem);
    }

    .ipsp-form-head::before {
        opacity: .55;
    }

    .ipsp-form section {
        padding: 28px 20px 24px;
        border-radius: 20px;
    }

    .ipsp-image-guide {
        padding: 54px 18px 18px;
    }

    .ipsp-image-guide::before {
        top: 16px;
        left: 18px;
    }

    .ipsp-form-steps {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
    }

    .ipsp-form-steps span {
        width: fit-content;
    }

    .ipsp-privacy-modal {
        padding: 28px 20px 22px;
    }

    .ipsp-privacy-points {
        grid-template-columns: 1fr;
    }

    .ipsp-privacy-actions {
        align-items: stretch;
        flex-direction: column;
    }
}
