/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #3d2c1e;
    background: #fffaf6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header e Navegação */
header {
    background: #fff7ed;
    box-shadow: 0 2px 12px #f6c17722;
    padding: 0;
    border-bottom: 2px solid #ffe0b2;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    color: #fff;
    text-decoration: none;
    font-size: 1.7rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.nav-menu a:hover {
    background: #34495e;
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background: #fffaf6;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.hero h1 {
    font-size: 2.7rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.2rem;
    color: #7f8c8d;
}

/* Cards de Cálculos */
.calculos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
    justify-items: center;
}

.calculo-card {
    background: #fff;
    color: #22223b;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 22px;
    box-shadow: 0 8px 32px #6C63FF18;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 1.5px solid #e0e0f7;
    min-width: 320px;
    max-width: 400px;
    width: 100%;
}

.calculo-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 48px #00BFA633;
    border-color: #6C63FF;
}

.calculo-card h3 {
    color: #6C63FF;
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.calculo-card p {
    color: #4e4e6a;
    margin-bottom: 1.7rem;
    font-size: 1.08rem;
}

.calculo-card .btn {
    background: linear-gradient(90deg, #6C63FF 0%, #00BFA6 100%);
    color: #fff;
    font-weight: 700;
    border-radius: 30px;
    font-size: 1.08em;
    padding: 0.8em 2.2em;
    box-shadow: 0 2px 8px #6C63FF33;
    border: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.calculo-card .btn:hover, .calculo-card .btn:focus {
    background: linear-gradient(90deg, #00BFA6 0%, #6C63FF 100%);
    color: #fff;
    box-shadow: 0 8px 24px #00BFA633;
    transform: translateY(-2px) scale(1.04);
}

/* Botões */
.btn {
    display: inline-block;
    background: #f6c177;
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 8px #f6c17733;
}

.btn:hover {
    background: #d35400;
    color: #fff7ed;
    box-shadow: 0 4px 16px #d3540033;
}

.btn-secondary {
    background: #95a5a6;
    color: #fff;
}

.btn-secondary:hover {
    background: #7f8c8d;
    color: #fff;
}

/* Formulários */
.form-container {
    background: #fff;
    color: #3d2c1e;
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 4px 24px #f6c17718;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #ffe0b2;
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.form-row .form-group {
    flex: 1 1 0;
    min-width: 0;
}
.form-group input,
.form-group select {
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #d35400;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ffe0b2;
    border-radius: 7px;
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #f6c177;
    background: #fff7ed;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* Resultados */
.resultado {
    background: #fff;
    border: 2px solid #f6c177;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    color: #3d2c1e;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.resultado h3 {
    color: #d35400;
    margin-bottom: 1rem;
}

.resultado-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #d5e8d5;
}

.resultado-item:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.1rem;
    color: #d35400;
}

/* Informações */
.info {
    background: #fff;
    color: #3d2c1e;
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 4px 24px #f6c17718;
    margin-top: 2rem;
    border: 1px solid #ffe0b2;
}

.info h2 {
    color: #d35400;
    margin-bottom: 1rem;
}

.info p, .info ul, .info li, .info h3 {
    color: #b97a56;
}

.info h3 {
    margin-top: 1.5rem;
    color: #d35400;
}

/* Footer */
footer {
    background: #fff7ed;
    color: #b97a56;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
    border-top: 2px solid #ffe0b2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #d35400;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    color: #f6c177;
}

.footer-bottom p[style] {
    color: #f6c177 !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #34495e;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .calculos-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Utilitários */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Ajustes para inputs de número e aparência cross-browser */
input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

input, select, textarea {
    background: #fffaf6;
    color: #3d2c1e;
    border: 2px solid #ffe0b2;
    border-radius: 7px;
    font-size: 1rem;
    padding: 0.8rem;
    transition: border-color 0.3s, background 0.3s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #f6c177;
    background: #fff7ed;
}

small, .form-group small {
    color: #b97a56;
    display: block;
    margin-top: 0.3rem;
    font-size: 0.95em;
}

ul, li {
    color: #b97a56;
    font-size: 1em;
    margin-bottom: 0.3em;
}

label {
    color: #d35400;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.erro {
    color: #e74c3c !important;
    background: #fdf2f2;
    border-radius: 6px;
    padding: 0.5em 1em;
    margin-top: 0.5em;
    font-size: 1em;
    border: 1px solid #fadbd8;
}

/* Melhorando contraste dos campos desabilitados */
input:disabled, select:disabled {
    background: #ecf0f1;
    color: #95a5a6;
    border-color: #bdc3c7;
    opacity: 0.7;
}

/* Melhorando aparência dos botões dentro de .form-container */
.form-container .btn, .form-container .btn-secondary {
    width: 48%;
    margin: 0.5em 1%;
}

/* Espaçamento entre grupos de formulário */
.form-group + .form-group {
    margin-top: 1.2rem;
}

/* Ajuste para listas dentro de .info */
.info ul {
    padding-left: 1.2em;
    margin-bottom: 1em;
}

.info li {
    list-style: disc inside;
    margin-bottom: 0.4em;
}

/* --- HEADER MINIMALISTA --- */
.header-minimal {
    background: #fff7ed;
    box-shadow: 0 2px 12px #f6c17722;
    padding: 0;
    border-bottom: 2px solid #ffe0b2;
}
.header-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    min-height: 70px;
    padding: 1.2rem 1rem 1.2rem 1rem;
}
.brand-icon {
    font-size: 2.2rem;
    color: #f6c177;
    filter: drop-shadow(0 2px 2px #ffe0b2);
}
.site-title {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #d35400;
    letter-spacing: 1px;
    text-shadow: 0 1px 0 #fff3e0;
}
.btn-home {
    background: #f6c177;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 22px;
    padding: 0.7em 1.7em;
    font-size: 1.05em;
    text-decoration: none;
    margin-left: 2rem;
    box-shadow: 0 2px 8px #f6c17733;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}
.btn-home:hover, .btn-home:focus {
    background: #d35400;
    color: #fff7ed;
    box-shadow: 0 4px 16px #d3540033;
}

/* --- BOTÃO VOLTAR AO INÍCIO --- */
.voltar-inicio-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 2rem 0 1rem 0;
}
.btn-voltar {
    background: linear-gradient(90deg, #43cea2 0%, #185a9d 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 22px;
    padding: 0.7em 2em;
    font-size: 1.1em;
    text-decoration: none;
    box-shadow: 0 2px 8px #185a9d33;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
    display: inline-block;
}
.btn-voltar:hover, .btn-voltar:focus {
    background: linear-gradient(90deg, #185a9d 0%, #43cea2 100%);
    color: #fff;
    box-shadow: 0 4px 16px #185a9d33;
}

/* --- NOVO ESQUEMA DE CORES GERAL --- */
body, html {
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: #f7fafc;
    color: #222b45;
}

main {
    background: #f7fafc;
}

.form-container, .info, .calculo-card, .resultado {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px #185a9d18;
    border: 1px solid #e3eaf2;
}

.form-container, .info {
    color: #222b45;
}

.btn, .btn-secondary {
    background: #43cea2;
    color: #fff;
    border: none;
    border-radius: 22px;
    font-weight: 600;
    padding: 0.7em 2em;
    font-size: 1em;
    box-shadow: 0 2px 8px #43cea233;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    margin: 0.3em 0.5em;
}
.btn:hover, .btn:focus, .btn-secondary:hover, .btn-secondary:focus {
    background: #185a9d;
    color: #fff;
    box-shadow: 0 4px 16px #185a9d33;
}

input, select, textarea {
    background: #f7fafc;
    color: #222b45;
    border: 2px solid #e3eaf2;
    border-radius: 7px;
    font-size: 1rem;
    padding: 0.8rem;
    transition: border-color 0.3s, background 0.3s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #43cea2;
    background: #e3f6f3;
}

small, .form-group small {
    color: #185a9d;
}

ul, li {
    color: #185a9d;
}

label {
    color: #185a9d;
}

.resultado {
    border: 2px solid #43cea2;
    color: #222b45;
}
.resultado h3, .resultado-item:last-child {
    color: #185a9d;
}

footer {
    background: #e3eaf2;
    color: #185a9d;
    border-top: 2px solid #43cea2;
}
.footer-section h4 {
    color: #185a9d;
}
.footer-bottom {
    color: #185a9d;
}
.footer-bottom p[style] {
    color: #43cea2 !important;
}

@media (max-width: 600px) {
    .voltar-inicio-container {
        justify-content: center;
        margin: 1.2rem 0 0.7rem 0;
    }
    .btn-voltar {
        width: 100%;
        text-align: center;
        font-size: 1em;
    }
}

/* --- NOVO VISUAL MODERNO E FUNCIONAL --- */
body, html {
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: #f4f6fb;
    color: #22223b;
    min-height: 100vh;
}

main {
    background: #f4f6fb;
}

.voltar-inicio-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 2rem 0 1.5rem 0;
}
.btn-voltar {
    display: flex;
    align-items: center;
    gap: 0.7em;
    background: linear-gradient(90deg, #6C63FF 0%, #00BFA6 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    padding: 0.9em 2.2em;
    font-size: 1.15em;
    text-decoration: none;
    box-shadow: 0 4px 16px #6C63FF22;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    letter-spacing: 0.5px;
    cursor: pointer;
}
.btn-voltar::before {
    content: '\2190';
    font-size: 1.2em;
    margin-right: 0.5em;
}
.btn-voltar:hover, .btn-voltar:focus {
    background: linear-gradient(90deg, #00BFA6 0%, #6C63FF 100%);
    box-shadow: 0 8px 24px #6C63FF33;
    transform: translateY(-2px) scale(1.03);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-container, .info, .calculo-card, .resultado {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 32px #6C63FF10;
    border: none;
    margin-bottom: 2.5rem;
}

.form-container {
    padding: 2.5rem 2rem 2rem 2rem;
    color: #22223b;
}

.form-container h1 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #6C63FF;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.form-container p {
    color: #4e4e6a;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.7rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #22223b;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0f7;
    border-radius: 12px;
    font-size: 1.08rem;
    background: #f7f8fd;
    color: #22223b;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px #6C63FF08;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6C63FF;
    box-shadow: 0 0 0 2px #6C63FF33;
    background: #fff;
}

small, .form-group small {
    color: #6C63FF;
    display: block;
    margin-top: 0.3rem;
    font-size: 0.97em;
}

.btn, .btn-secondary {
    background: #6C63FF;
    color: #fff;
    border: none;
    border-radius: 22px;
    font-weight: 700;
    padding: 0.8em 2em;
    font-size: 1.08em;
    box-shadow: 0 2px 8px #6C63FF33;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
    margin: 0.3em 0.5em;
    cursor: pointer;
}
.btn:hover, .btn:focus, .btn-secondary:hover, .btn-secondary:focus {
    background: #00BFA6;
    color: #fff;
    box-shadow: 0 4px 16px #00BFA633;
    transform: translateY(-2px) scale(1.03);
}

.resultado {
    border: 2px solid #6C63FF;
    color: #22223b;
    background: #f7f8fd;
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}
.resultado h3 {
    color: #00BFA6;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.resultado-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.7rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0f7;
    font-size: 1.08em;
}
.resultado-item:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.15rem;
    color: #6C63FF;
}

.info {
    padding: 2rem 2rem 1.5rem 2rem;
    color: #4e4e6a;
    background: #f7f8fd;
    border-left: 5px solid #6C63FF;
}
.info h2, .info h3 {
    color: #6C63FF;
    font-weight: 700;
}
.info ul {
    padding-left: 1.2em;
    margin-bottom: 1em;
}
.info li {
    list-style: disc inside;
    margin-bottom: 0.4em;
    color: #22223b;
}

footer {
    background: #fff;
    color: #6C63FF;
    border-top: 2px solid #00BFA6;
    font-size: 1.05em;
}
.footer-section h4 {
    color: #6C63FF;
}
.footer-bottom {
    color: #00BFA6;
}
.footer-bottom p[style] {
    color: #6C63FF !important;
}

@media (max-width: 600px) {
    .voltar-inicio-container {
        justify-content: center;
        margin: 1.2rem 0 0.7rem 0;
    }
    .btn-voltar {
        width: 100%;
        text-align: center;
        font-size: 1em;
    }
    .form-container, .info, .resultado {
        padding: 1.2rem 0.7rem;
    }
}

/* ...restante do CSS permanece ... */

@media (max-width: 1200px) {
    .calculos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 800px) {
    .calculos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .calculo-card {
        min-width: 0;
        max-width: 100%;
    }
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}

body, html {
    background: #f6f8fc;
}

.container {
    max-width: 1300px;
}

/* ...restante do CSS permanece ... */ 