.first-year-calculator {
    padding-top: 18px;
}

.first-year-header {
    max-width: 960px;
    margin: 36px 0 38px;
}

.first-year-kicker,
.first-year-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;
}

.first-year-header h1 {
    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;
}

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

.first-year-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;
}

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

.first-year-form {
    margin: 0;
}

.first-year-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.first-year-panel,
.first-year-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);
}

.first-year-panel-heading {
    margin-bottom: 28px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.first-year-panel-number {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: var(--accent-hover);
    font-size: 12px;
    font-weight: 800;
}

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

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

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

.first-year-panel .form-group {
    margin: 20px 0 0;
}

.first-year-panel .form-group label {
    font-size: 15px;
}

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

.first-year-number-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.first-year-input-with-unit {
    position: relative;
}

.first-year-input-with-unit input {
    padding-right: 70px;
}

.first-year-input-with-unit > span {
    position: absolute;
    top: 50%;
    right: 16px;
    color: var(--muted);
    font-size: 14px;
    transform: translateY(-50%);
    pointer-events: none;
}

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

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

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

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

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

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

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

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

.first-year-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);
}

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

.first-year-summary-grid strong {
    display: block;
    font-size: clamp(21px, 2.4vw, 30px);
    line-height: 1.2;
}

.first-year-context-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.first-year-context-card,
.first-year-next-year {
    padding: 22px;
    border: 1px solid rgba(31, 95, 74, 0.16);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.58);
}

.first-year-context-card h3,
.first-year-download h3,
.first-year-schedule h3 {
    font-size: 18px;
}

.first-year-context-card p,
.first-year-next-year p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.first-year-next > strong {
    display: block;
    font-size: 24px;
    line-height: 1.25;
}

.first-year-next-year {
    margin-top: 14px;
}

.first-year-next-year p {
    margin-top: 0;
}

.first-year-schedule {
    margin-top: 30px;
}

.first-year-table-wrapper {
    margin-top: 14px;
    overflow-x: auto;
    border: 1px solid rgba(31, 95, 74, 0.16);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.58);
}

.first-year-table-wrapper:focus-visible {
    outline: 3px solid rgba(31, 95, 74, 0.24);
    outline-offset: 3px;
}

.first-year-schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.first-year-schedule-table th,
.first-year-schedule-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(31, 95, 74, 0.12);
    text-align: left;
    vertical-align: top;
}

.first-year-schedule-table th {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.first-year-schedule-table tbody tr:last-child td {
    border-bottom: 0;
}

.first-year-schedule-table small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

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

.first-year-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;
}

.first-year-download h3 {
    flex-basis: 100%;
}

.first-year-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;
}

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

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

@media (max-width: 860px) {
    .first-year-calculator {
        padding-top: 0;
    }

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

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

    .first-year-input-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 620px) {
    .first-year-header h1 {
        font-size: clamp(40px, 12.5vw, 52px);
    }

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

    .first-year-number-grid,
    .first-year-summary-grid,
    .first-year-context-grid {
        grid-template-columns: 1fr;
    }

    .first-year-table-wrapper {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .first-year-schedule-table,
    .first-year-schedule-table tbody,
    .first-year-schedule-table tr,
    .first-year-schedule-table td {
        display: block;
        width: 100%;
    }

    .first-year-schedule-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }

    .first-year-schedule-table tr {
        margin-bottom: 12px;
        padding: 10px 14px;
        border: 1px solid rgba(31, 95, 74, 0.16);
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.64);
    }

    .first-year-schedule-table td,
    .first-year-schedule-table tbody tr:last-child td {
        padding: 8px 0;
        border-bottom: 1px solid rgba(31, 95, 74, 0.1);
        display: grid;
        grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.2fr);
        gap: 12px;
    }

    .first-year-schedule-table td:last-child,
    .first-year-schedule-table tbody tr:last-child td:last-child {
        border-bottom: 0;
    }

    .first-year-schedule-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .first-year-schedule-table td small {
        grid-column: 2;
        margin-top: -4px;
    }

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

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