/* ============================= */
/* RESET */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #f4f6f8, #eef2f7);
    color: #111827;
}

/* ============================= */
/* HEADER */
/* ============================= */
.header {
    background: linear-gradient(90deg, #1e40af, #2563eb);
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.logo {
    font-weight: 700;
    font-size: 20px;
}

.header nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.header nav a:hover {
    opacity: 0.8;
}

/* ============================= */
/* CONTAINER */
/* ============================= */
.calc-page {
    padding: 60px 8%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* ============================= */
/* CARD */
/* ============================= */
.calc-section {
    background: #ffffff;
    padding: 26px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.calc-section:hover {
    transform: translateY(-5px);
}

/* ============================= */
/* TÍTULOS */
/* ============================= */
.calc-section h2 {
    font-size: 18px;
    margin-bottom: 18px;
    color: #1e40af;
}

/* ============================= */
/* FORM */
/* ============================= */
.calc-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-form input {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    background: #f9fafb;
    transition: 0.2s;
}

.calc-form input:focus {
    border-color: #2563eb;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ============================= */
/* BOTÃO */
/* ============================= */
.calc-form button {
    margin-top: 8px;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #2563eb;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.calc-form button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* ============================= */
/* RESULTADO */
/* ============================= */
.calc-result {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 8px;
}

/* ============================= */
/* FOOTER */
/* ============================= */
.footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.footer a {
    color: #2563eb;
    text-decoration: none;
    margin-left: 10px;
}

.footer a:hover {
    text-decoration: underline;
}

/* ============================= */
/* RESPONSIVO */
/* ============================= */
@media (max-width: 768px) {

    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .calc-page {
        padding: 30px 20px;
    }
}