.validation-page {
    overflow: hidden;
}

.form-trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.preview-shell,
.simple-shell {
    min-height: 100vh;
    background: #f4f1e9;
}

.preview-head {
    max-width: 1160px;
    margin: 42px auto 36px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
}

.preview-head h1,
.simple-card h1 {
    margin: 0 0 12px;
    font: 700 clamp(38px, 5vw, 58px)/1 "Space Grotesk", sans-serif;
    letter-spacing: -2.5px;
}

.preview-head p:last-child,
.simple-card > p {
    color: #67695f;
}

.preview-layout {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px 90px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr);
    gap: 24px;
    align-items: start;
}

.preview-layout > input[type="hidden"] {
    display: none;
}

.editor-card,
.preview-card,
.simple-card {
    background: #fff;
    border: 1px solid #deddd5;
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(31, 35, 22, .08);
}

.editor-card {
    padding: 30px;
}

.editor-card > label,
.benefit-editor label,
.simple-card form label {
    display: block;
    margin-bottom: 20px;
    font: 700 12px "Space Grotesk", sans-serif;
    letter-spacing: .2px;
}

.editor-card input,
.editor-card textarea,
.simple-card input {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 13px 14px;
    color: #171813;
    background: #fbfaf6;
    border: 1px solid #cfcec6;
    border-radius: 9px;
    outline: 0;
    resize: vertical;
}

.editor-card input:focus,
.editor-card textarea:focus,
.simple-card input:focus {
    border-color: #171813;
    box-shadow: 0 0 0 3px rgba(201, 246, 74, .45);
}

.editor-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.editor-card fieldset {
    margin: 5px 0 24px;
    padding: 0;
    border: 0;
}

.editor-card legend {
    margin-bottom: 14px;
    font: 700 15px "Space Grotesk", sans-serif;
}

.benefit-editor {
    display: grid;
    grid-template-columns: 35px .72fr 1.28fr;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid #ecebe5;
}

.benefit-editor > span {
    padding-top: 14px;
    color: #a0a298;
    font: 700 11px "Space Grotesk", sans-serif;
}

.benefit-editor label {
    margin: 0;
}

.owner-field small {
    display: block;
    margin-top: 5px;
    color: #898b82;
    font: 400 12px "DM Sans", sans-serif;
}

.publish-button {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #171813;
    border-radius: 9px;
    color: #171813;
    background: #c9f64a;
    box-shadow: 3px 3px 0 #171813;
    font-weight: 800;
    cursor: pointer;
}

.publish-button:hover {
    background: #b5e62b;
    transform: translateY(-1px);
}

.editor-error,
.delivery-note {
    padding: 12px 14px;
    border: 1px solid #f0b8a3;
    border-radius: 9px;
    color: #92361f;
    background: #fff0e9;
    font-size: 13px;
}

.delivery-note.good {
    border-color: #b8d779;
    color: #416313;
    background: #effbd1;
}

.preview-card {
    position: sticky;
    top: 20px;
    padding: 20px;
}

.preview-label {
    margin: 0 0 14px;
    color: #85877e;
    font: 700 10px "Space Grotesk", sans-serif;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.mini-page {
    min-height: 520px;
    padding: 38px 30px;
    border-radius: 12px;
    background: #f9f8f4;
    overflow: hidden;
}

.mini-name {
    font: 700 15px "Space Grotesk", sans-serif;
}

.mini-name::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 3px;
    border-radius: 50%;
    background: #7c5cff;
}

.mini-page h2 {
    margin: 80px 0 14px;
    font: 700 37px/1.02 "Space Grotesk", sans-serif;
    letter-spacing: -2px;
}

.mini-page > p {
    min-height: 54px;
    color: #67695f;
    line-height: 1.5;
}

.mini-email {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding: 5px 5px 5px 13px;
    border: 1px solid #d4d3cc;
    border-radius: 8px;
    background: #fff;
    color: #aaa;
    font-size: 10px;
}

.mini-email b {
    padding: 10px;
    border-radius: 6px;
    background: #7c5cff;
    color: #fff;
    font-size: 9px;
}

.mini-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 62px;
}

.mini-benefits i {
    height: 70px;
    border-radius: 7px;
    background: #1b1c18;
}

.preview-note {
    margin: 14px 0 0;
    text-align: center;
    color: #999b92;
    font-size: 11px;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 3px 0;
    color: #777970;
    font-size: 11px;
    line-height: 1.4;
}

.consent-row input {
    margin-top: 2px;
}

.consent-row a {
    color: #5d3ee0;
    text-decoration: underline;
}

.simple-card {
    width: min(620px, calc(100% - 40px));
    margin: 70px auto;
    padding: 42px;
}

.simple-card form {
    margin-top: 28px;
}

.simple-card .form-success {
    margin: 24px 0;
}

.privacy-copy h2 {
    margin: 30px 0 8px;
    font: 700 20px "Space Grotesk", sans-serif;
}

.privacy-copy p {
    line-height: 1.7;
}

@media (max-width: 800px) {
    .preview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .preview-layout {
        grid-template-columns: 1fr;
    }

    .preview-card {
        position: static;
        order: 0;
    }

    .mini-page {
        min-height: 400px;
    }

    .mini-page h2 {
        margin-top: 45px;
    }

    .benefit-editor {
        grid-template-columns: 28px 1fr;
    }

    .benefit-editor label:last-child {
        grid-column: 2;
    }
}

@media (max-width: 520px) {
    .nav-actions .nav-link {
        display: none;
    }

    .nav-actions {
        gap: 12px;
    }

    .preview-head {
        margin-top: 25px;
    }

    .preview-layout {
        padding-left: 14px;
        padding-right: 14px;
    }

    .editor-card {
        padding: 20px;
    }

    .editor-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .simple-card {
        padding: 28px 22px;
    }
}
