.jona-so-form-shell,
.jona-so-neutral {
    max-width: 860px;
    margin: 18px auto;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid #d9e2e7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(18, 44, 58, 0.08);
    color: #17262d;
}

.jona-so-form-header {
    margin-bottom: 18px;
}

.jona-so-kicker {
    margin: 0 0 6px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #087b6f;
}

.jona-so-form-header h2,
.jona-so-neutral h2 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 2.45rem);
    line-height: 1.1;
}

.jona-so-security-note {
    margin: 14px 0 22px;
    padding: 12px 14px;
    border-left: 4px solid #087b6f;
    border-radius: 8px;
    background: #edf8f6;
}

.jona-so-form fieldset {
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid #d9e2e7;
    border-radius: 12px;
}

.jona-so-form legend {
    padding: 0 8px;
    font-weight: 700;
}

.jona-so-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.jona-so-fields label > span {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.25;
}

.jona-so-fields input {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #b9c7ce;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.35;
}

.jona-so-fields input::placeholder {
    font-size: 15px;
}

.jona-so-input-hint {
    display: block;
    margin-top: 6px;
    color: #53636b;
    font-size: 0.87rem;
    line-height: 1.35;
}


.jona-so-field-note {
    margin-top: 0;
    margin-bottom: 12px;
    color: #53636b;
    font-size: 0.96rem;
}

.jona-so-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    font-size: 0.98rem;
    line-height: 1.45;
}

.jona-so-checkbox input[type="checkbox"] {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: #087b6f;
}

.jona-so-checkbox > span {
    padding-top: 1px;
}

.jona-so-checkbox a {
    color: #087b6f;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.jona-so-checkbox a:hover,
.jona-so-checkbox a:focus {
    color: #055f57;
}

.jona-so-link-missing {
    color: #8a5b00;
    font-size: 0.92em;
}

.jona-so-submit {
    min-height: 46px;
    padding: 10px 18px;
    font-size: 15px;
    border: 0;
    border-radius: 9px;
    font-weight: 700;
}

@media (max-width: 720px) {
    .jona-so-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .jona-so-form-shell,
    .jona-so-neutral {
        max-width: 100%;
    }
}

.jona-so-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 108px;
    padding: 10px 12px;
    border: 1px solid #b9c7ce;
    border-radius: 8px;
    font: inherit;
    font-size: 16px;
    line-height: 1.45;
    resize: vertical;
}

.jona-so-textarea-label {
    display: block;
    margin-top: 14px;
}

.jona-so-textarea-label > span {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.98rem;
}

.jona-so-required {
    color: #b42318;
}

.jona-so-secure-explanation {
    padding: 12px 14px;
    border: 1px solid #b8d8ce;
    border-radius: 8px;
    background: #f0faf7;
}

.jona-so-form-status {
    margin: 14px 0 20px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.jona-so-form-status.is-info {
    border: 1px solid #9fc7d4;
    background: #eef8fb;
    color: #164e63;
}

.jona-so-form-status.is-success {
    border: 1px solid #83c69e;
    background: #edf9f1;
    color: #17603a;
}

.jona-so-form-status.is-warning {
    border: 1px solid #e3c675;
    background: #fff9e8;
    color: #72510a;
}

.jona-so-form-status.is-error {
    border: 1px solid #e2a7a3;
    background: #fff1f0;
    color: #8b1e17;
}

.jona-so-submit {
    cursor: pointer;
    background: #087b6f;
    color: #fff;
}

.jona-so-submit:hover,
.jona-so-submit:focus {
    background: #055f57;
}

.jona-so-submit:disabled {
    cursor: not-allowed;
    background: #c8cdcf;
    color: #73797c;
}

.jona-so-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


.jona-so-guidance {
    margin: 0 0 14px;
    padding: 11px 13px;
    border: 1px solid #cbd8de;
    border-radius: 8px;
    background: #f7fafb;
    color: #42545d;
    font-size: 0.96rem;
    line-height: 1.5;
}

.jona-so-guidance-main {
    margin: 0 0 16px;
    border-left: 4px solid #087b6f;
    background: #f3f9f8;
}

.jona-so-guidance code {
    padding: 1px 4px;
    border-radius: 4px;
    background: #e9f0f2;
    color: #24343b;
    font-size: 0.92em;
}

.jona-so-form input.is-invalid,
.jona-so-form textarea.is-invalid,
.jona-so-checkbox.has-error input[type="checkbox"] {
    border-color: #b42318;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
    background: #fff8f7;
}

.jona-so-form label.has-error > span:first-child,
.jona-so-checkbox.has-error > span {
    color: #8b1e17;
}

.jona-so-field-error {
    display: block;
    margin-top: 6px;
    color: #8b1e17;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}

.jona-so-form input,
.jona-so-form textarea,
.jona-so-form-status,
.jona-so-checkbox {
    scroll-margin-top: 28px;
}

.jona-so-toast {
    position: fixed;
    z-index: 100000;
    top: 22px;
    right: 22px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: min(440px, calc(100vw - 32px));
    padding: 15px 46px 15px 16px;
    border: 1px solid #9fc7d4;
    border-radius: 10px;
    background: #eef8fb;
    color: #164e63;
    box-shadow: 0 14px 45px rgba(18, 44, 58, 0.22);
    font-weight: 650;
    line-height: 1.45;
}

.jona-so-toast[hidden],
.jona-so-modal[hidden] {
    display: none !important;
}

.jona-so-toast.is-error {
    border-color: #e2a7a3;
    background: #fff1f0;
    color: #8b1e17;
}

.jona-so-toast.is-success {
    border-color: #83c69e;
    background: #edf9f1;
    color: #17603a;
}

.jona-so-toast-close {
    position: absolute;
    top: 7px;
    right: 9px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.jona-so-toast-close:hover,
.jona-so-toast-close:focus {
    background: rgba(0, 0, 0, 0.07);
}

.jona-so-modal {
    position: fixed;
    z-index: 100001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.jona-so-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 38, 47, 0.62);
    backdrop-filter: blur(3px);
}

.jona-so-modal-panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    padding: 30px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.jona-so-success-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #e6f7ed;
    color: #17603a;
    font-size: 32px;
    font-weight: 800;
}

.jona-so-modal-panel h2 {
    margin: 0 0 12px;
    font-size: 1.8rem;
}

.jona-so-success-text {
    color: #42545d;
    font-size: 1rem;
    line-height: 1.6;
}

.jona-so-modal-button {
    min-width: 150px;
    margin-top: 22px;
    padding: 11px 18px;
    border: 0;
    border-radius: 9px;
    background: #087b6f;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.jona-so-modal-button:hover,
.jona-so-modal-button:focus {
    background: #055f57;
}

body.jona-so-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .jona-so-toast {
        top: 12px;
        right: 16px;
        left: 16px;
        width: auto;
    }

    .jona-so-modal-panel {
        padding: 24px 20px;
    }
}

.jona-so-form-status,
.jona-so-success-text {
    white-space: pre-line;
}
