:root {
    --sg-bg: #000000;
    --sg-surface: #141414;
    --sg-text: #ffffff;
    --sg-muted: #eeead7;
    --sg-accent: #7a6200;
    --sg-border: rgba(238, 234, 215, 0.12);
    --sg-border-strong: rgba(122, 98, 0, 0.34);
    --sg-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
    --sg-shadow-soft: 0 16px 48px rgba(0, 0, 0, 0.22);
    --sg-radius-xl: 28px;
    --sg-radius-lg: 22px;
    --sg-radius-md: 18px;
    --sg-radius-sm: 14px;
}

.salary-growth-page {
    background:
        radial-gradient(circle at top left, rgba(122, 98, 0, 0.16), transparent 28%),
        radial-gradient(circle at bottom right, rgba(238, 234, 215, 0.06), transparent 22%),
        var(--sg-bg);
}

.salary-growth-shell {
    width: min(calc(100% - 40px), 1120px);
    margin: 0 auto;
    padding: 34px 0 72px;
}

.salary-growth-hero {
    padding: 64px 0 32px;
}

.salary-growth-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 24px;
    align-items: end;
}

.salary-growth-hero__content,
.salary-growth-note,
.salary-growth-card,
.salary-growth-results,
.salary-growth-education,
.salary-growth-ctas {
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-xl);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.96), rgba(10, 10, 10, 0.98));
    box-shadow: var(--sg-shadow);
}

.salary-growth-hero__content {
    padding: 34px;
}

.salary-growth-note {
    padding: 28px;
    align-self: stretch;
    display: grid;
    align-content: center;
    gap: 14px;
}

.salary-growth-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(238, 234, 215, 0.12);
    background: rgba(255, 255, 255, 0.02);
    color: var(--sg-muted);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.salary-growth-title {
    margin: 22px 0 0;
    max-width: 680px;
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.salary-growth-subtitle {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--sg-muted);
    font-size: 1.16rem;
    line-height: 1.7;
}

.salary-growth-intro {
    max-width: 640px;
    margin: 18px 0 0;
    color: rgba(238, 234, 215, 0.72);
    line-height: 1.85;
}

.salary-growth-note__title {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sg-muted);
}

.salary-growth-note p {
    margin: 0;
    color: rgba(238, 234, 215, 0.76);
    line-height: 1.8;
}

.salary-growth-main {
    display: grid;
    gap: 28px;
}

.salary-growth-card {
    padding: 34px;
}

.salary-growth-section-header {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

.salary-growth-section-header h2,
.salary-growth-results h2,
.salary-growth-education h2,
.salary-growth-ctas h2 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 750;
    line-height: 1;
    letter-spacing: -0.04em;
}

.salary-growth-section-header p,
.salary-growth-results__lead,
.salary-growth-education__lead,
.salary-growth-ctas__lead {
    margin: 0;
    color: rgba(238, 234, 215, 0.72);
    line-height: 1.8;
}

.salary-growth-education h2,
.salary-growth-ctas h2 {
    margin-top: 14px;
}

.salary-growth-form {
    display: grid;
    gap: 28px;
}

.consent-box {
    display: grid;
    gap: 14px;
    padding: 22px;
    border-radius: var(--sg-radius-lg);
    border: 1px solid rgba(122, 98, 0, 0.22);
    background: linear-gradient(180deg, rgba(122, 98, 0, 0.08), rgba(255, 255, 255, 0.015));
}

.consent-box label {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 14px;
    align-items: start;
}

.consent-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--sg-accent);
}

.consent-box p {
    margin: 0;
    color: rgba(238, 234, 215, 0.78);
    line-height: 1.9;
}

.form-cluster {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: var(--sg-radius-lg);
    border: 1px solid rgba(238, 234, 215, 0.08);
    background: rgba(255, 255, 255, 0.015);
}

.form-cluster__header {
    display: grid;
    gap: 10px;
}

.form-cluster__header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 650;
    letter-spacing: -0.03em;
}

.form-cluster__header p {
    margin: 0;
    color: rgba(238, 234, 215, 0.64);
    line-height: 1.8;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    display: grid;
    gap: 10px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label,
.earnings-header__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.field small,
.field-hint {
    color: rgba(238, 234, 215, 0.62);
    line-height: 1.7;
}

.field input,
.field select {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(238, 234, 215, 0.12);
    border-radius: var(--sg-radius-sm);
    background: rgba(0, 0, 0, 0.28);
    color: var(--sg-text);
    font: inherit;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: rgba(122, 98, 0, 0.56);
    box-shadow: 0 0 0 4px rgba(122, 98, 0, 0.12);
}

.field.is-error input,
.field.is-error select {
    border-color: rgba(255, 255, 255, 0.28);
}

.field-error {
    min-height: 1.2rem;
    color: #eeead7;
    font-size: 0.84rem;
}

.tooltip {
    position: relative;
    display: inline-flex;
}

.tooltip__trigger {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(238, 234, 215, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    color: var(--sg-muted);
    cursor: pointer;
    padding: 0;
}

.tooltip__trigger svg {
    width: 11px;
    height: 11px;
}

.tooltip__panel {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    width: min(280px, 70vw);
    padding: 14px 16px;
    border: 1px solid rgba(238, 234, 215, 0.12);
    border-radius: 16px;
    background: #0b0b0b;
    color: rgba(238, 234, 215, 0.9);
    line-height: 1.7;
    box-shadow: var(--sg-shadow-soft);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 4;
}

.tooltip:hover .tooltip__panel,
.tooltip:focus-within .tooltip__panel,
.tooltip.is-open .tooltip__panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.earnings-block {
    display: grid;
    gap: 16px;
}

.earnings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.earnings-list {
    display: grid;
    gap: 14px;
}

.earning-item {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(160px, 0.7fr) minmax(160px, 0.7fr) auto;
    gap: 12px;
    align-items: end;
    padding: 18px;
    border: 1px solid rgba(238, 234, 215, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.015);
}

.earning-item__remove {
    min-height: 54px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(238, 234, 215, 0.12);
    background: transparent;
    color: rgba(238, 234, 215, 0.7);
    cursor: pointer;
}

.salary-growth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.salary-growth-button,
.salary-growth-button--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(238, 234, 215, 0.12);
    font: inherit;
    color: var(--sg-text);
    cursor: pointer;
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.salary-growth-button {
    background: linear-gradient(180deg, rgba(122, 98, 0, 0.34), rgba(122, 98, 0, 0.16));
    border-color: rgba(122, 98, 0, 0.42);
}

.salary-growth-button--ghost {
    background: rgba(255, 255, 255, 0.02);
    color: var(--sg-muted);
}

.salary-growth-button:hover,
.salary-growth-button--ghost:hover {
    transform: translateY(-2px);
}

.salary-growth-button.is-loading {
    pointer-events: none;
    opacity: 0.88;
}

.salary-growth-button__spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: #ffffff;
    animation: sg-spin 800ms linear infinite;
    display: none;
}

.salary-growth-button.is-loading .salary-growth-button__spinner {
    display: inline-block;
}

.salary-growth-button__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.salary-growth-form-message {
    min-height: 1.4rem;
    color: rgba(238, 234, 215, 0.82);
}

.salary-growth-results,
.salary-growth-education,
.salary-growth-ctas {
    padding: 42px;
}

.salary-growth-education,
.salary-growth-ctas {
    margin-top: 18px;
}

.salary-growth-results[hidden],
.salary-growth-education[hidden],
.salary-growth-ctas[hidden] {
    display: none;
}

.salary-growth-results__top {
    display: grid;
    gap: 22px;
    margin-bottom: 42px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.metric-card {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(238, 234, 215, 0.08);
    background: rgba(255, 255, 255, 0.015);
}

.metric-card__label {
    color: rgba(238, 234, 215, 0.66);
    font-size: 0.84rem;
    line-height: 1.6;
}

.metric-card__value {
    margin-top: 10px;
    font-size: 1.46rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.salary-growth-results__chart {
    margin-top: 12px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(238, 234, 215, 0.08);
    background: rgba(255, 255, 255, 0.015);
}

.salary-growth-results__interpretation {
    display: grid;
    gap: 24px;
    margin-top: 38px;
}

.salary-growth-results__interpretation h3 {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.salary-growth-results__interpretation p,
.salary-growth-result-note {
    margin: 0;
    color: rgba(238, 234, 215, 0.75);
    line-height: 1.85;
}

.education-grid,
.cta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 38px;
}

.salary-growth-education .salary-growth-kicker,
.salary-growth-ctas .salary-growth-kicker {
    margin-bottom: 10px;
}

.education-card,
.cta-card {
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(238, 234, 215, 0.08);
    background: rgba(255, 255, 255, 0.015);
    display: grid;
    gap: 22px;
}

.education-card h3,
.cta-card h3 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.education-card p,
.cta-card p {
    margin: 0;
    color: rgba(238, 234, 215, 0.72);
    line-height: 1.95;
}

.reveal-up {
    opacity: 0;
    transform: translateY(18px);
    animation: sg-reveal 850ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-up-delay {
    animation-delay: 130ms;
}

@keyframes sg-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sg-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 960px) {
    .salary-growth-hero__grid,
    .metrics-grid,
    .education-grid,
    .cta-grid {
        grid-template-columns: 1fr;
    }

    .form-grid,
    .earning-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .salary-growth-shell {
        width: min(calc(100% - 24px), 1120px);
        padding: 24px 0 56px;
    }

    .salary-growth-hero {
        padding-top: 48px;
    }

    .salary-growth-card,
    .salary-growth-results,
    .salary-growth-education,
    .salary-growth-ctas,
    .salary-growth-hero__content,
    .salary-growth-note {
        padding: 28px;
    }

    .salary-growth-actions,
    .earnings-header {
        flex-direction: column;
        align-items: stretch;
    }

    .salary-growth-button,
    .salary-growth-button--ghost {
        width: 100%;
    }
}
