* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f9fc;
    color: #172033;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1150px;
    margin: auto;
}

/* =================================
   INVESTMENT CALCULATOR
================================= */

.investment-page {
    padding: 70px 0 90px;
    min-height: calc(100vh - 78px);
}

/* =========================
   HEADER
========================= */

.header {
    background: #ffffff;
    border-bottom: 1px solid #e8ebf0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #18243a;
}

.logo span {
    color: #16a085;
}

.navigation {
    display: flex;
    gap: 32px;
}

.navigation a {
    font-size: 15px;
    color: #647086;
    transition: 0.2s;
}

.navigation a:hover {
    color: #16a085;
}

.menu-button {
    display: none;

    border: none;
    background: none;

    font-size: 25px;
    cursor: pointer;
}


/* =================================
   CALCULATOR
================================= */

.investment-calculator {
    max-width: 1050px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    background: #ffffff;

    border: 1px solid #e8ebf0;

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 15px 45px
        rgba(23, 32, 51, 0.08);
}


/* =================================
   FORM
================================= */

.investment-form {
    padding: 42px;
}


.form-title {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 32px;
}


.form-title-icon {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #e7f7f3;

    border-radius: 12px;

    font-size: 20px;
}


.form-title h2 {
    font-size: 21px;

    color: #172033;

    margin-bottom: 2px;
}


.form-title p {
    font-size: 13px;

    color: #7a8494;
}


/* =================================
   FORM GROUP
================================= */

.form-group {
    margin-bottom: 23px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 700;

    color: #374151;
}


/* =================================
   SELECT
================================= */

.select-input,
.period-select {
    height: 53px;

    border: 1px solid #dfe4ea;

    border-radius: 10px;

    background: #ffffff;

    color: #172033;

    font-size: 14px;

    padding: 0 14px;

    outline: none;

    cursor: pointer;

    transition: 0.2s;
}


.select-input {
    width: 100%;
}


.select-input:focus,
.period-select:focus {
    border-color: #16a085;

    box-shadow:
        0 0 0 4px
        rgba(22, 160, 133, 0.1);
}


/* =================================
   INPUT GROUP
================================= */

.input-group {
    display: grid;

    grid-template-columns: 1fr 145px;

    gap: 10px;
}


/* =================================
   INPUT WRAPPER
================================= */

.input-wrapper {
    position: relative;

    display: flex;

    align-items: center;

    width: 100%;
}


.input-wrapper input {
    width: 100%;

    height: 53px;

    padding: 0 15px;

    border: 1px solid #dfe4ea;

    border-radius: 10px;

    background: #ffffff;

    color: #172033;

    font-size: 15px;

    outline: none;

    transition: 0.2s;
}


.input-wrapper input:focus {
    border-color: #16a085;

    box-shadow:
        0 0 0 4px
        rgba(22, 160, 133, 0.1);
}


/* =================================
   CURRENCY PREFIX
================================= */

.input-prefix {
    position: absolute;

    left: 15px;

    z-index: 2;

    font-size: 14px;

    font-weight: 700;

    color: #6b7280;

    pointer-events: none;
}


.input-prefix + input {
    padding-left: 48px;
}


/* =================================
   PERCENT SUFFIX
================================= */

.input-suffix {
    position: absolute;

    right: 15px;

    font-size: 14px;

    font-weight: 600;

    color: #6b7280;

    pointer-events: none;
}


/* =================================
   HILANGKAN PANAH NUMBER
================================= */

/* Chrome / Edge / Safari */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {

    -webkit-appearance: none;

    margin: 0;
}


/* Firefox */

input[type="number"] {

    -moz-appearance: textfield;

    appearance: textfield;
}


/* =================================
   BUTTON
================================= */

.investment-button {
    width: 100%;

    height: 53px;

    margin-top: 5px;

    border: none;

    border-radius: 10px;

    background: #16a085;

    color: #ffffff;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}


.investment-button:hover {
    background: #12816c;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px
        rgba(22, 160, 133, 0.2);
}


.investment-button:active {
    transform: translateY(0);
}


/* =================================
   RESET
================================= */

.reset-button {
    width: 100%;

    height: 45px;

    margin-top: 10px;

    border: 1px solid #dfe4ea;

    border-radius: 10px;

    background: #ffffff;

    color: #5d6675;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}


.reset-button:hover {
    background: #f5f7fa;

    border-color: #cbd2da;
}


/* =================================
   RESULT
================================= */

.investment-result {
    padding: 42px;

    background: #172033;

    color: #ffffff;
}


/* =================================
   RESULT HEADER
================================= */

.result-header {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 30px;
}


.result-header > span {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.08);

    border-radius: 12px;

    font-size: 20px;
}


.result-header h2 {
    font-size: 21px;

    margin-bottom: 2px;
}


.result-header p {
    font-size: 13px;

    color: #aeb7c7;
}


/* =================================
   FUTURE VALUE
================================= */

.future-value {
    padding: 22px;

    margin-bottom: 25px;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 15px;
}


.future-value span {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;

    color: #aeb7c7;
}


.future-value strong {
    display: block;

    font-size: 30px;

    line-height: 1.2;

    color: #ffffff;

    word-break: break-word;
}


/* =================================
   RESULT DETAILS
================================= */

.result-details {
    border-top: 1px solid
        rgba(255, 255, 255, 0.1);

    border-bottom: 1px solid
        rgba(255, 255, 255, 0.1);
}


.result-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    padding: 15px 0;

    border-bottom: 1px solid
        rgba(255, 255, 255, 0.07);
}


.result-row:last-child {
    border-bottom: none;
}


.result-row span {
    font-size: 13px;

    color: #aeb7c7;
}


.result-row strong {
    font-size: 14px;

    color: #ffffff;

    text-align: right;
}


.result-row .profit-value {
    color: #4fd1a9;
}


/* =================================
   NOTE
================================= */

.investment-note {
    display: flex;

    gap: 10px;

    margin-top: 25px;

    padding: 14px;

    background: rgba(255, 255, 255, 0.04);

    border-radius: 10px;
}


.investment-note span {
    font-size: 15px;
}


.investment-note p {
    font-size: 12px;

    line-height: 1.6;

    color: #9da7b8;
}


/* =================================
   TABLET
================================= */

@media (max-width: 850px) {

    .investment-calculator {
        grid-template-columns: 1fr;
    }

}


/* =================================
   MOBILE
================================= */

@media (max-width: 600px) {

    .investment-page {
        padding: 45px 0 60px;
    }


    .investment-header {
        margin-bottom: 30px;
    }


    .investment-header h1 {
        font-size: 32px;
    }


    .investment-header p {
        font-size: 15px;
    }


    .investment-form,
    .investment-result {
        padding: 28px 22px;
    }


    .input-group {
        grid-template-columns: 1fr;
    }


    .future-value strong {
        font-size: 25px;
    }


    .result-row {
        align-items: flex-start;

        flex-direction: column;

        gap: 5px;
    }


    .result-row strong {
        text-align: left;
    }

}