
:root {
    --navy: #102b4e;
    --navy-light: #1b426b;
    --green: #15966b;
    --green-light: #e8f6ef;
    --background: #f3f6f9;
    --white: #ffffff;
    --text: #24364b;
    --muted: #718096;
    --border: #dce4ec;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
}

/* HEADER */

.header {
    background: var(--navy);
    color: white;
    padding: 22px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand h1 {
    font-size: 27px;
    letter-spacing: 1px;
}

.brand h1 span {
    color: #4bd6a2;
}

.brand p {
    font-size: 11px;
    letter-spacing: 2px;
    color: #c6d8e8;
    margin-top: 5px;
}

.credit {
    font-size: 12px;
    text-align: right;
    line-height: 1.7;
    color: #d6e2ee;
}

/* MAIN */

main {
    width: 92%;
    max-width: 1200px;
    margin: 30px auto;
}

/* HERO */

.hero {
    background: linear-gradient(120deg, var(--navy), var(--navy-light));
    color: white;
    padding: 35px;
    border-radius: 14px;
    margin-bottom: 28px;
}

.hero h2 {
    font-size: 29px;
    margin-bottom: 12px;
}

.hero p {
    color: #d9e6f1;
    font-size: 14px;
    line-height: 1.7;
    max-width: 750px;
}

/* MODULES */

.section-title {
    color: var(--navy);
    font-size: 21px;
    margin-bottom: 17px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.module {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 23px;
    text-align: left;
    cursor: pointer;
    min-height: 115px;
    transition: 0.2s;
}

.module:hover {
    border-color: var(--green);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(16, 43, 78, 0.08);
}

.module strong {
    display: block;
    color: var(--navy);
    font-size: 17px;
    margin-bottom: 9px;
}

.module span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

/* CALCULATOR */

.calculator {
    background: white;
    padding: 27px;
    border: 1px solid var(--border);
    border-radius: 14px;
    min-height: 350px;
}

.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
    margin-bottom: 22px;
}

.calculator-header h2 {
    color: var(--navy);
    font-size: 23px;
}

.back-button {
    background: #edf2f6;
    color: var(--navy);
    border: none;
    border-radius: 7px;
    padding: 11px 17px;
    cursor: pointer;
    font-weight: bold;
}

.back-button:hover {
    background: #dce7ef;
}

/* FORM */

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 14px;
    background: white;
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(21, 150, 107, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 17px;
}

/* BUTTONS */

.action-button {
    background: var(--green);
    color: white;
    border: none;
    border-radius: 7px;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
}

.action-button:hover {
    background: #107c59;
}

/* RESULT */

.result-box {
    margin-top: 22px;
    padding: 20px;
    background: var(--green-light);
    border: 1px solid #b9dfce;
    border-radius: 9px;
}

.result-box h3 {
    color: var(--navy);
    margin-bottom: 12px;
}

.hidden {
    display: none !important;
}

/* FOOTER */

footer {
    text-align: center;
    padding: 25px 15px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    margin-top: 35px;
}

/* RESPONSIVE */

@media (max-width: 800px) {
    .module-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .header {
        padding: 18px;
    }

    .credit {
        display: none;
    }

    main {
        width: 94%;
        margin: 20px auto;
    }

    .hero {
        padding: 24px;
    }

    .hero h2 {
        font-size: 23px;
    }

    .module-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .calculator {
        padding: 18px;
    }
}

@media print {
    .header,
    .hero,
    #dashboard,
    .back-button,
    footer {
        display: none !important;
    }

    body {
        background: white;
    }

    .calculator {
        border: none;
    }
}
