.notice-calculator {
    padding-top: 18px;
}

.notice-header {
    max-width: 980px;
    margin: 36px 0 38px;
}

.notice-kicker,
.notice-feedback-label {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.notice-header h1 {
    max-width: 960px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(50px, 7vw, 78px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.notice-lead {
    max-width: 790px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: clamp(17px, 1.8vw, 20px);
    line-height: 1.6;
}

.notice-scope {
    margin-bottom: 24px;
    padding: 18px 22px;
    border: 1px solid rgba(31, 95, 74, 0.18);
    border-radius: var(--radius-md);
    background: rgba(237, 247, 242, 0.78);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: var(--muted);
    line-height: 1.6;
}

.notice-scope strong {
    color: var(--accent-hover);
}

.notice-form {
    margin: 0;
}

.notice-panel,
.notice-feedback {
    min-width: 0;
    padding: clamp(26px, 3.2vw, 40px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
}

.notice-panel-heading {
    margin-bottom: 28px;
}

.notice-panel h2,
.notice-panel h3,
.notice-feedback h2,
.notice-feedback h3 {
    margin: 0;
}

.notice-panel h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.notice-panel-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.notice-primary-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.notice-panel .form-group {
    min-width: 0;
    margin: 0;
}

.notice-panel .form-group label {
    font-size: 14px;
}

.notice-panel input,
.notice-panel select {
    min-height: 52px;
    font-size: 16px;
}

.notice-panel small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.notice-conditional {
    min-width: 0;
    margin: 24px 0 0;
    padding: 22px;
    border: 1px solid rgba(31, 95, 74, 0.16);
    border-radius: var(--radius-md);
    background: rgba(248, 251, 249, 0.84);
}

.notice-conditional legend {
    padding: 0 8px;
    color: var(--accent-hover);
    font-size: 13px;
    font-weight: 800;
}

.notice-conditional > .form-group {
    max-width: 620px;
}

.notice-additional-seniority {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(31, 95, 74, 0.14);
}

.notice-additional-seniority h3 {
    font-size: 17px;
    line-height: 1.4;
}

.notice-additional-seniority > p {
    max-width: 720px;
    margin: 7px 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.notice-seniority-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.notice-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 20px;
    font-size: 15px;
}

.notice-feedback {
    margin-top: 24px;
    scroll-margin-top: 100px;
}

.notice-feedback:focus-visible {
    outline: 3px solid rgba(31, 95, 74, 0.24);
    outline-offset: 4px;
}

.notice-error {
    border-color: var(--danger-border);
    background: var(--danger-bg);
}

.notice-error .notice-feedback-label,
.notice-error h2,
.notice-error > p:not(.notice-feedback-label) {
    color: var(--danger-text);
}

.notice-error h2,
.notice-result > h2 {
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.notice-error > p:last-child {
    margin: 18px 0 0;
    line-height: 1.7;
}

.notice-result {
    background: linear-gradient(145deg, rgba(232, 243, 237, 0.94), rgba(248, 251, 249, 0.96));
}

.notice-summary-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.notice-summary-grid > div {
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(31, 95, 74, 0.16);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.68);
}

.notice-summary-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.notice-summary-grid strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: clamp(20px, 2.2vw, 27px);
    line-height: 1.3;
}

.notice-result-summary {
    margin: 24px 0 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
}

.notice-threshold-note {
    margin-top: 18px;
    padding: 20px 22px;
    border: 1px solid rgba(31, 95, 74, 0.16);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.58);
}

.notice-threshold-note p,
.notice-explanation {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.notice-explanation {
    margin-top: 20px;
}

.notice-note {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.notice-download {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(31, 95, 74, 0.16);
    display: flex;
    flex-wrap: wrap;
    gap: 14px 12px;
    align-items: center;
}

.notice-download h3 {
    flex-basis: 100%;
    font-size: 18px;
}

.notice-download .pdf-brand-option {
    width: fit-content;
    min-height: 42px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(31, 95, 74, 0.16);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.68);
    gap: 10px;
    cursor: pointer;
}

.notice-download .pdf-brand-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.notice-calculator > .related-articles {
    margin-top: 34px;
}

.only-print {
    display: none;
}

@media (max-width: 760px) {
    .notice-calculator {
        padding-top: 0;
    }

    .notice-header {
        margin: 28px 0 30px;
    }

    .notice-header h1 {
        font-size: clamp(46px, 13vw, 62px);
    }

    .notice-primary-fields,
    .notice-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .notice-header h1 {
        font-size: clamp(40px, 12vw, 50px);
    }

    .notice-panel,
    .notice-feedback {
        padding: 24px 20px;
        border-radius: var(--radius-md);
    }

    .notice-conditional {
        padding: 18px 16px;
    }

    .notice-seniority-grid {
        grid-template-columns: 1fr;
    }

    .notice-download button,
    .notice-download .pdf-brand-option {
        width: 100%;
    }
}

@media print {
    @page {
        size: A4;
        margin: 14mm;
    }

    .site-header,
    .site-footer,
    .back-link,
    .no-print {
        display: none !important;
    }

    .only-print {
        display: block;
    }

    .site-main,
    .notice-feedback {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        background: #ffffff;
        box-shadow: none;
    }

    .print-heading {
        margin-bottom: 18px;
        text-align: center;
    }

    .print-heading h1 {
        margin: 0;
        font-size: 22px;
    }

    .notice-summary-grid > div,
    .notice-threshold-note {
        background: #ffffff;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notice-calculator *,
    .notice-calculator *::before,
    .notice-calculator *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
