/* =========================================================
   ARTHVEDAM — RETIREMENT GOAL PLANNER
   ========================================================= */

.retirement-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.retirement-hero {
    padding: 76px 0 70px;
    background:
        linear-gradient(135deg, #062d3e 0%, #087f8c 52%, #10a88a 100%);
    color: #ffffff;
}

.retirement-hero .retirement-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    align-items: center;
}

.retirement-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    color: #63e6be;
}

.retirement-hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.04;
    letter-spacing: -1.8px;
    color: rgba(255,255,255,0.78);
}

.retirement-hero p {
    max-width: 700px;
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    opacity: .92;
    color: #63e6be;
}

.retirement-hero-panel {
    padding: 30px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 22px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}

.retirement-hero-panel span {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.retirement-hero-panel strong {
    display: block;
    margin-bottom: 12px;
    font-size: 24px;
}

.retirement-hero-panel small {
    display: block;
    line-height: 1.6;
    opacity: .8;
}

.retirement-page {
    padding: 60px 0 90px;
    background: #f5f8fa;
}


/* =========================================================
   FORM
   ========================================================= */

.retirement-form {
    display: grid;
    gap: 24px;
}

.retirement-input-section {
    padding: 34px;
    border: 1px solid #e3eaee;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(16,43,56,.06);
}

.retirement-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.retirement-section-heading h2 {
    margin: 0;
    font-size: 25px;
    color: #12313d;
}

.retirement-section-heading p {
    max-width: 370px;
    margin: 20px 0 0;
    color: #667781;
    line-height: 1.6;
}

.retirement-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.retirement-field-wide {
    grid-column: span 2;
}

.retirement-field label {
    display: block;
    margin-bottom: 8px;
    color: #173743;
    font-size: 14px;
    font-weight: 700;
}

.retirement-field input {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    border: 1px solid #d5e0e5;
    border-radius: 11px;
    background: #fbfdfe;
    color: #173743;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
    transition: .2s ease;
}

.retirement-field input:focus {
    border-color: #0a9a91;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(10,154,145,.10);
}

.retirement-field small {
    display: block;
    margin-top: 7px;
    color: #7a8990;
    line-height: 1.45;
}

.retirement-input-suffix {
    position: relative;
}

.retirement-input-suffix input {
    padding-right: 45px;
}

.retirement-input-suffix span {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #718189;
    font-weight: 700;
}

.retirement-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 28px 30px;
    border-radius: 20px;
    background: #082f3e;
    color: #ffffff;
}

.retirement-form-footer strong,
.retirement-form-footer span {
    display: block;
}

.retirement-form-footer strong {
    margin-bottom: 7px;
    font-size: 17px;
}

.retirement-form-footer span {
    color: rgba(255,255,255,.72);
    font-size: 13px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.retirement-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: 0 23px;
    border: 0;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.retirement-btn:hover {
    transform: translateY(-2px);
}

.retirement-btn-primary {
    background: #16b89b;
    color: #ffffff;
    box-shadow: 0 9px 24px rgba(22,184,155,.25);
}

.retirement-btn-secondary {
    background: #ffffff;
    color: #123743;
    border: 1px solid #d9e3e7;
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.retirement-dashboard-header {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 30px;
    align-items: center;
    margin-bottom: 25px;
}

.retirement-dashboard-header h2 {
    max-width: 720px;
    margin: 0 0 12px;
    color: #12313d;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.retirement-dashboard-header p {
    margin: 0;
    color: #687982;
    line-height: 1.6;
}

.retirement-coverage {
    padding: 25px;
    border-radius: 20px;
    background: #073446;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(7,52,70,.14);
}

.retirement-coverage span,
.retirement-coverage small {
    display: block;
}

.retirement-coverage span {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.retirement-coverage strong {
    display: block;
    font-size: 40px;
    color: #45d8b6;
}

.retirement-coverage small {
    margin-top: 5px;
    color: rgba(255,255,255,.7);
}


/* =========================================================
   METRICS
   ========================================================= */

.retirement-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.retirement-metric {
    min-height: 145px;
    padding: 23px;
    border: 1px solid #e1e9ed;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(15,46,58,.05);
}

.retirement-metric-highlight {
    border-color: #beece0;
    background: linear-gradient(145deg, #ffffff, #ecfbf7);
}

.retirement-metric span,
.retirement-metric small {
    display: block;
}

.retirement-metric span {
    color: #687a82;
    font-size: 13px;
}

.retirement-metric strong {
    display: block;
    margin: 14px 0 7px;
    color: #123743;
    font-size: 25px;
}

.retirement-metric small {
    color: #829097;
    font-size: 12px;
}


/* =========================================================
   FUNDING CARD
   ========================================================= */

.retirement-funding-card {
    margin-bottom: 20px;
    padding: 30px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15,46,58,.06);
}

.retirement-funding-header,
.retirement-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.retirement-funding-header h2,
.retirement-card-heading h2 {
    margin: 0;
    color: #123743;
    font-size: 24px;
}

.retirement-funding-header > strong {
    color: #0a9b87;
    font-size: 30px;
}

.retirement-bar {
    height: 18px;
    margin-top: 28px;
    overflow: hidden;
    border-radius: 20px;
    background: #e5edef;
}

.retirement-bar-fill {
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
    background: linear-gradient(90deg, #0a9b87, #36d4a9);
}

.retirement-bar-labels {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 11px;
    color: #697b83;
    font-size: 12px;
}


/* =========================================================
   TWO COLUMN DASHBOARD
   ========================================================= */

.retirement-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.retirement-dashboard-card {
    padding: 30px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15,46,58,.06);
}

.retirement-dashboard-card h2 {
    margin: 0 0 25px;
    color: #123743;
    font-size: 23px;
}

.retirement-timeline {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
}

.retirement-timeline > div:not(.retirement-timeline-line) span,
.retirement-timeline > div:not(.retirement-timeline-line) small {
    display: block;
    color: #77878e;
    font-size: 12px;
}

.retirement-timeline strong {
    display: block;
    margin: 7px 0;
    color: #123743;
    font-size: 30px;
}

.retirement-timeline-line {
    position: relative;
    height: 4px;
    border-radius: 10px;
    background: linear-gradient(90deg, #0a9b87, #49cdb1);
}

.retirement-timeline-line span {
    position: absolute;
    left: 50%;
    top: -27px;
    transform: translateX(-50%);
    white-space: nowrap;
    color: #718188;
    font-size: 11px;
}

.retirement-income-number {
    margin: 15px 0;
    color: #0a9b87;
    font-size: 38px;
    font-weight: 800;
}

.retirement-dashboard-card p {
    margin: 0;
    color: #718087;
    line-height: 1.65;
}


/* =========================================================
   RESOURCES
   ========================================================= */

.retirement-assets-card {
    margin-bottom: 20px;
}

.retirement-card-heading {
    margin-bottom: 25px;
}

.retirement-card-heading > strong {
    color: #123743;
    font-size: 28px;
}

.retirement-resource-grid,
.retirement-assumption-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.retirement-resource-grid > div,
.retirement-assumption-grid > div {
    padding: 18px;
    border-radius: 13px;
    background: #f5f8f9;
}

.retirement-resource-grid span,
.retirement-assumption-grid span {
    display: block;
    color: #718087;
    font-size: 12px;
}

.retirement-resource-grid strong,
.retirement-assumption-grid strong {
    display: block;
    margin-top: 9px;
    color: #173a47;
    font-size: 18px;
}


/* =========================================================
   ACTION PANEL
   ========================================================= */

.retirement-action-panel {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: center;
    margin-bottom: 20px;
    padding: 32px;
    border-radius: 21px;
    background: linear-gradient(135deg, #073447, #075c69);
    color: #ffffff;
}

.retirement-action-panel h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.retirement-action-panel p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.78);
    line-height: 1.65;
}

.retirement-action-number {
    padding: 22px;
    border-radius: 16px;
    background: rgba(255,255,255,.10);
}

.retirement-action-number span,
.retirement-action-number small {
    display: block;
}

.retirement-action-number span {
    font-size: 12px;
    color: rgba(255,255,255,.7);
}

.retirement-action-number strong {
    display: block;
    margin: 8px 0;
    color: #4fe0bd;
    font-size: 31px;
}

.retirement-action-number small {
    color: rgba(255,255,255,.65);
    line-height: 1.5;
}


/* =========================================================
   ASSUMPTIONS
   ========================================================= */

.retirement-assumptions {
    margin-bottom: 20px;
    padding: 30px;
    border: 1px solid #e0e8ec;
    border-radius: 20px;
    background: #ffffff;
}


/* =========================================================
   NOTE
   ========================================================= */

.retirement-note {
    display: flex;
    gap: 17px;
    margin-bottom: 25px;
    padding: 22px;
    border: 1px solid #d9e8eb;
    border-radius: 16px;
    background: #f2f8f9;
}

.retirement-note-icon {
    display: flex;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #0a9b87;
    color: #ffffff;
    font-weight: 800;
}

.retirement-note strong {
    color: #123743;
}

.retirement-note p {
    margin: 6px 0 0;
    color: #687980;
    line-height: 1.65;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.retirement-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .retirement-hero .retirement-container,
    .retirement-dashboard-header,
    .retirement-action-panel {
        grid-template-columns: 1fr;
    }

    .retirement-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .retirement-resource-grid,
    .retirement-assumption-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 680px) {

    .retirement-container {
        width: min(100% - 26px, 1180px);
    }

    .retirement-hero {
        padding: 50px 0;
    }

    .retirement-hero h1 {
        font-size: 38px;
    }

    .retirement-page {
        padding: 35px 0 60px;
    }

    .retirement-input-section,
    .retirement-dashboard-card,
    .retirement-funding-card,
    .retirement-assumptions {
        padding: 22px;
    }

    .retirement-section-heading {
        display: block;
    }

    .retirement-fields,
    .retirement-metrics,
    .retirement-dashboard-grid,
    .retirement-resource-grid,
    .retirement-assumption-grid {
        grid-template-columns: 1fr;
    }

    .retirement-field-wide {
        grid-column: span 1;
    }

    .retirement-form-footer {
        display: block;
    }

    .retirement-form-footer .retirement-btn {
        width: 100%;
        margin-top: 18px;
    }

    .retirement-funding-header,
    .retirement-card-heading {
        display: block;
    }

    .retirement-funding-header > strong,
    .retirement-card-heading > strong {
        display: block;
        margin-top: 15px;
    }

    .retirement-bar-labels {
        display: block;
    }

    .retirement-bar-labels span {
        display: block;
        margin-bottom: 5px;
    }

    .retirement-timeline {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .retirement-timeline-line {
        width: 80%;
        margin: 18px auto;
    }

    .retirement-timeline-line span {
        top: -25px;
    }

    .retirement-action-panel {
        padding: 25px;
    }

    .retirement-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .retirement-actions .retirement-btn {
        width: 100%;
    }

}