﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: white;
    color: #333;
}

.header-container {
    text-align: center;
    background-image: url('/portals/0/_page-assets/kiwisaver/2025/pie_wealth_marble.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    height: 417px;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: 30px;
    padding-right: 30px;
}

    .tool-title {
        color: #474A47;
        font-size: 64px;
        font-weight: 500;
        font-style: normal;
        margin: 0;
        line-height: normal;
        text-align: center;
        padding-top: 208px;
    }

    .tool-subtitle {
        color: #474a47;
        font-size: 16px;
        margin: 8px 0 0 0;
        font-style: normal;
        font-weight: 300;
        line-height: 137%;
    }

@media (min-width: 992px) and (max-width: 1231px) {
    .header-container {
        height: 370px; 
    }

    .tool-title {
        padding-top: 120px;
        font-size: 56px; 
    }
}
@media (min-width: 1232px) and (max-width: 1292px) {
    .header-container {
        height: 400px; 
    }

    .tool-title {
        padding-top: 120px; 
    }
}

@media (max-width: 991px) and (min-width: 769px) {
    .header-container {
        height: 300px; 
    }

    .tool-title {
        padding-top: 80px;
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: auto;
        padding: 40px 20px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        left: 0;
        right: 0;
    }

    .tool-title {
        font-size: 32px;
        padding-top: 0;
    }

    .tool-subtitle {
        font-size: 14px;
    }

    .fund-questions {
        font-size: 24px; 
    }
}

.wizard-container {
    max-width: 1032px;
    margin: -30px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.wizard-step {
    display: block;
    text-align: center;
    margin-bottom: 64px;
}

    .wizard-step:last-child {
        margin-bottom: 0;
    }

@media (max-width: 768px) {
    .wizard-step {
        margin-bottom: 32px; 
    }
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.intro-text {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 20px;
    text-align: center;
    max-width: 697px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 64px;
    padding-bottom: 24px;
    color: black;
}
@media (max-width: 768px){
    .intro-text {
        padding-top: 16px;
    }
}

input[type="number"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.fund-questions {
    color: #474A47;
    text-align: center;
    margin-bottom: 20px;
    font-size: 32px;
}

.option-button {
    display: inline-block;
    width: calc(30% - 10px);
    padding: 12px 52px;
    margin: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #474a47;
    background: white;
    border: 1px solid #474A47;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .option-button:hover {
        background: #94F587;
        border-color: #94F587;
    }

    .option-button.active {
        background: #94F587;
        color: #474a47;
        border-color: #94F587;
    }

@media (max-width: 768px) {
    .option-button {
        width: 100%;
        margin: 10px 0;
        padding: 16px;
        font-size: 14px;
    }
}

input[type="number"]:focus {
    border-color: #00A86B;
    box-shadow: 0 0 5px #00A86B;
}

/* Recommendation Style */
.wizard-container,
.recommendation-container {
    margin-bottom: 40px; 
    margin-top: -66px;
}

@media (max-width: 768px) {
    .wizard-container,
    .recommendation-container {
        margin-top: 0; 
    }

    .wizard-container {
        margin: 0 auto; 
        padding: 20px;
    }
}

#recommendation {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    border-radius: 5px;
}

    #recommendation h3 {
        color: #00A86B;
    }

.recommendation-header {
    display: flex;
    background-color: #474A47;
    color: white !important;
    padding: 20px;
    text-align: left;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    position: relative;
    justify-content: space-between;
    padding-left: 128px;
    padding-right: 128px;
    padding-top: 40px;
    padding-bottom: 40px;
}

@media (max-width: 768px) {
    .recommendation-header {
        padding: 16px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    #recommended-fund-name {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .recommendation-header .header-icon {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .recommendation-header {
        padding-left: 60px; 
        padding-right: 60px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    #recommended-fund-name {
        font-size: 28px; 
    }
}

.header-text p {
    margin: 0;
    font-size: 16px;
    font-weight: 300;
    color: white;
}

.header-icon img {
    width: 72px;
    height: 72px;
    margin-right: 20px;
}

#recommended-fund-name {
    margin-top: 8px;
    font-size: 32px;
    color: white;
}

.age-input-container {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    margin-top: 15px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#age {
    all: unset;
    border: none;
    border-bottom: 1px solid #474A47;
    padding: 5px 0;
    font-size: 16px;
    outline: none;
    width: 150px;
    text-align: left;
    appearance: none;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    color: #737373;
}

    #age::-webkit-inner-spin-button,
    #age::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.next-button {
    color: #737373;
    border: none;
    border-radius: 28px;
    padding: 12px 52px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

    .next-button:hover {
        background-color: #ccf7cc;
    }

    .next-button.clicked {
        background: #94F587;
        padding: 12px 52px;
        border: none;
        border-radius: 28px;
        color: #474A47;
        font-weight: 700;
    }

@media (max-width: 457px) {
    .next-button {
        padding: 10px;
    }
        .next-button.clicked {
            padding: 10px;
        }
}

.tooltip-icon {
    font-size: 16px;
    font-weight: bold;
    margin-left: 8px;
    cursor: pointer;
    color: var(--Grey, #767676);
}

.tooltip-box {
    background-color: var(--Active-Green-half, rgba(117, 252, 148, 0.25));
    padding: 24px;
    margin: 40px auto;
    position: relative;
    width: 80%;
    color: black;
    text-align: left;
    gap: 10px;
    box-sizing: border-box;
}

    .tooltip-box p {
        margin: 0;
        font-size: 14px;
        line-height: 1.5;
        flex: 1;
    }

    .tooltip-box img {
        margin-top: -20px;
    }

.tooltip-left-icon {
    flex-shrink: 0;
}

.tooltip-close {
    position: absolute;
    top: 20px;
    right: 1px;
    font-size: 20px;
    cursor: pointer;
    color: black;
    background: none;
    border: none;
    padding: 0;
    width: 20px;
    height: 20px;
    right: 8px;
    top: 30%;
}

.withdraw-tooltip-box {
    background-color: var(--Active-Green-half, rgba(117, 252, 148, 0.25));
    padding: 24px;
    margin: 20px auto;
    position: relative;
    width: 80%;
    color: black;
    text-align: left;
    align-items: flex-start;
    gap: 10px;
    box-sizing: border-box;
}

    .withdraw-tooltip-box p {
        margin: 0;
        font-size: 14px;
        line-height: 1.5;
        flex: 1;
    }

.withdraw-tooltip-icon {
    flex-shrink: 0;
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.withdraw-tooltip-close {
    position: absolute;
    top: 15px;
    right: 10px;
    font-size: 18px;
    cursor: pointer;
    background: none;
    border: none;
    width: 20px;
    height: 20px;
}

.tooltip-icon {
    font-size: 16px;
    font-weight: bold;
    margin-left: 8px;
    cursor: pointer;
    color: var(--Grey, #767676);
}


.fund-template {
    padding: 16px;
    margin-bottom: 16px;
}

    .fund-template h3 {
        color: #474A47;
        font-size: 32px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
    }

.recommendation-container {
    max-width: 1032px;
    margin: 40px auto;
    padding: 0;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.recommendation-wrapper {
    margin-top: 40px;
    padding-left: 50px;
    padding-right: 50px;
}

    .recommendation-wrapper p {
        margin-bottom: 16px;
        line-height: 137%;
        font-size: 16px;
    }

    .recommendation-wrapper h3 + p {
        margin-top: 20px;
    }

@media (max-width: 768px) {
    .recommendation-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
@media (max-width: 991px) {
    .recommendation-wrapper {
        margin-top: 16px; 
        padding-left: 40px; 
        padding-right: 40px; 
    }
}

.investment-overview {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .investment-overview {
        flex-direction: column;
    }

    .investment-details,
    .chart-box {
        width: 100%;
        max-width: none !important;
    }
}

.investment-details {
    flex: 1;
    background-color: #f9f9f9;
    border-top: 4px solid #94F587;
    padding: 32px 32px 32px 32px;
}

    .investment-details .info-text {
        font-weight: bold;
        font-size: 16px;
    }
    .investment-details .info-text-header {
        margin-bottom: 16px;
        line-height: 137%;
        font-size: 14px;
    }

.chart-box {
    border-top: 4px solid #94F587;
    padding: 20px;
    flex: 1;
    max-width: 50%;
    box-sizing: border-box;
}

    .chart-box img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

.chart-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: bold;
}

.assets-text {
    margin-top: 16px;
    font-size: 13px;
    font-weight: bold;
}

.section-divider {
    width: 100%;
    height: 4px;
    background-color: #94F587;
    margin: 40px 0 20px;
}

.change-section-divider {
    width: 100%;
    height: 4px;
    background-color: #94F587;
}

.disclaimer-box {
    margin-top: 20px;
}
.disclaimer-box .disclaimer-text {
    font-size: 11px;
}

.past-performance-section {
    max-width: 1032px;
    margin: 0 auto;
    padding: 20px 0;
}

    .past-performance-section h2 {
        font-size: 32px;
        font-style: normal;
        font-weight: 500;
        color: #474A47;
    }

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggle-button {
    padding: 4px 12px;
    background: #94F587;
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    display: inline-flex;
}
    .toggle-button .img {
        display: block; 
        margin: 0 auto; 
        max-width: none;
        width: 24px !important;
        height: 24px !important;
    }
@media (max-width: 991px) {
    .toggle-button {
        width: 36px;
        height: 36px;
    }

        .toggle-button img {
            width: 22px !important;
            height: 22px !important;
            max-width: none;
        }
}
@media (max-width: 768px) {
    .toggle-button {
        width: 32px;
        height: 32px;
    }

        .toggle-button img {
            width: 22px;
            height: 22px;
        }
}

.collapsible-content {
    margin-top: 16px;
}

.graph-placeholder {
    width: 100%;
    max-width: 100%;
    align-items: center;
    margin: auto;
}
    .graph-placeholder img.graph-image {
        max-width: 100%; 
        padding-bottom: 24px;
        padding-top: 56px;
    }

@media (max-width: 768px) {
    .graph-placeholder {
        padding: 0 !important;
    }

    .past-performance-section {
        padding: 0 10px; 
    }
}

.about-recommendation {
    max-width: 1032px;
    margin: 0 auto;
    padding: 20px 0;
}

    .about-recommendation h2 {
        font-size: 32px;
        margin-bottom: 16px;
        color: #474A47;
    }

    .about-recommendation p {
        margin-bottom: 24px;
        line-height: 137%;
        font-style: normal;
        font-weight: 500;
    }

.make-a-change-section {
    max-width: 1032px;
    margin: 0 auto;
    padding: 64px 40px 56px 40px;
    text-align: center;
    background: var(--BG, #F5F5F5);
}

    .make-a-change-section h2 {
        font-size: 32px;
        margin-bottom: 24px;
        color: #474A47;
    }

.change-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 16px;
}
    .change-buttons:has(#acceptRecommendedButton[style*="display: none"]) {
        display: none;
    }

#acceptRecommendedButton {
    margin-top: 20px; 
}

#compareFundsButton {
    margin-top: 20px;
}

.cta-button {
    background: #94F587;
    padding: 12px 52px;
    border: none;
    border-radius: 28px;
    color: #474A47;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: #474A47;
    border-color: #94F587;
    color: white;
}

.compare-funds-text {
    font-size: 14px;
    color: #333;
    text-decoration: underline;
    cursor: pointer;
}

.other-info-section {
    margin: 0px auto;
    background-color: white;
    padding: 40px 50px 40px 50px;
}

    .other-info-section h2 {
        font-size: 32px;
        margin-bottom: 20px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
        color: #474A47;
    }

    .other-info-section p {
        margin-bottom: 16px;
        font-size: 16px;
        font-style: normal;
        font-weight: 300;
        line-height: 137%;
    }

    .other-info-section a {
        color: black;
        font-weight: bold;
    }
        .other-info-section a:hover {
            color: darkgreen;
        }

@media (max-width: 768px) {
    .other-info-section {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .other-info-section p {
        white-space: normal;
        word-wrap: break-word;
        word-break: normal;
        display: block;
        font-size: 14px;
        line-height: 1.4;
    }
}

.button-row {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.year-button-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 500px;
    margin: 24px auto;
}

    .year-button-row .option-button {
        width: 100%;
        margin: 0;
    }

@media (min-width: 992px) {
    .year-button-row {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 16px;
        max-width: none;
        margin: 24px auto;
    }

        .year-button-row .option-button {
            width: auto;
        }
}

@media (max-width: 991px) {
    .year-button-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

.first-home-button {
    display: flex;
    padding: 32px 48px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.retirement-button {
    display: flex;
    padding: 32px 48px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
@media (max-width: 768px) {
    .first-home-button,
    .retirement-button {
        padding: 16px; 
    }
}

.responsive-performance-graph {
    width: 100%;
    height: 400px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

    .responsive-performance-graph[data-fund="aggressive"] {
        background-image: url("/Portals/0/Images/Advice/pks-aggressive-past-performance.png?v=2");
    }

    .responsive-performance-graph[data-fund="growth"] {
        background-image: url("/Portals/0/Images/Advice/pks-growth-past-performance.png?v=2");
    }

    .responsive-performance-graph[data-fund="balanced"] {
        background-image: url("/Portals/0/Images/Advice/pks-balanced-past-performance.png?v=2");
    }

    .responsive-performance-graph[data-fund="conservative"] {
        background-image: url("/Portals/0/Images/Advice/pks-conservative-past-performance.png?v=2");
    }

@media (max-width: 992px) {
    .responsive-performance-graph[data-fund="aggressive"] {
        background-image: url("/Portals/0/Images/Advice/pks-aggressive-past-performance-xs.png?v=2");
    }

    .responsive-performance-graph[data-fund="growth"] {
        background-image: url("/Portals/0/Images/Advice/pks-growth-past-performance-xs.png?v=2");
    }

    .responsive-performance-graph[data-fund="balanced"] {
        background-image: url("/Portals/0/Images/Advice/pks-balanced-past-performance-xs.png?v=2");
    }

    .responsive-performance-graph[data-fund="conservative"] {
        background-image: url("/Portals/0/Images/Advice/pks-conservative-past-performance-xs.png?v=2");
    }
}