* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
}


.main-header {
    position: sticky;     
    top: 0; 
    z-index: 500;  
    background-color: #ffffff; 
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
}


.header-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0 20px;
}


.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a202c;
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #b30000;
}

/* Botão Apply Now */
.apply-btn {
    background-color: #b30000;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s;
}

.apply-btn:hover {
    opacity: 0.9;
}

.cta-header {
    display: flex;
}

.first-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    width: 100%;
    margin: 40px auto;
}

.right-box img {
    width: 250px;
    height: auto;
    border-radius: 8px;
    margin-right: 20px;
}

.left-box h1 {
    font-size: 5rem;
    line-height: 1.1;
    color: rgb(171 0 23 / var(--tw-text-opacity, 1));
}

.calculator-container{
    background-color: rgb(242 244 247 / var(--tw-bg-opacity, 1));
    width: 90%;
    padding: 40px;
    border-radius: 8px;
    margin: auto;
    margin-top: 100px;
}

.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.calculator-header h2 {
    font-size: 3rem;
    color: #1a202c;
    margin-bottom: 8px;
}

.calculator-header p {
    color: #718096;
}

.header-display {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}


.header-display #header-info {
    background-color: rgb(255 255 255);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgb(70 94 143 / var(--tw-text-opacity, 1));
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

#exchange-info {
    background-color: rgb(255 255 255);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgb(70 94 143 / var(--tw-text-opacity, 1));
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.main-layout {
    display: flex;
    gap: 40px;
}


.inputs-section-family {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 280px;
    flex-shrink: 0;
}

.inputs-section-family label {
    font-weight: bold;
    color: #4a5568;
    margin-bottom: -10px;
    font-size: 1.5rem;
}

.inputs-section-family input {
    width: 50%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #ffffff;
    justify-content: center;
    padding-left: 90px;
}

.inputs-section {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 15px;
    width: 100%;
}

.input-group1 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.input-group2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding-left: 40px;
}

.inputs-section label {
    font-weight: bold;
    color: #4a5568;
    margin-bottom: -10px;
    font-size: 1.5rem;
}

.inputs-section input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}



.inputs-section-family .hint {
    font-size: 1rem;
    color: #748090;
    margin-top: -15px;
}


.inputs-section .hint {
    font-size: 1rem;
    color: #748090;
    margin-top: -15px;
}

.currency-input-wrapper {
    position: relative;
    display: flex;
    width: 90%;
}

.currency-input-wrapper span {
    position: absolute;
    left: 15px;
    color: #a0aec0;
}

.currency-input-wrapper input {
    padding-left: 45px; 
}

.cards-section {
    flex: 2;
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.card {
    background-color:  rgb(255 255 255);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    min-width: 200px;
    max-width: 320px;
    width: 100%;
    padding: 1.5em;
    justify-content: space-between;
}

.program-name {
    font-size: 0.7rem;
    font-weight: bold;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.program-name.express {
    color: #b30000;
    font-size: 1rem;
}

.program-name.atlantic {
    color: #2b6cb0;
    font-size: 1rem;
}

.program-name.rural {
    color: #245724;
    font-size: 1rem;
}

.card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a202c;
    
}

.equiv-label {
    font-size: 1rem;
    color: #a0aec0;
    margin-top: -10px;
}

.card:hover {
    transform: translateY(-5px);
}

.card.express {
    border-left: 4px solid #b30000;
}

.card.atlantic {
    border-left: 4px solid #2b6cb0;
}

.card.rural {
    border-left: 4px solid #245724;
}

.convert-button {
    height: 45px;
    padding: 12px 20px;
    background-color: #b30000;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 2px;
}

.label-with-flag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: #4a5568;
    font-size: 1.5rem;
    margin-bottom: 0;
}

#currentSavingsdollar {
    margin-left: 0;
}

img {
    max-width: 100%;
    width: 100px;
    height: auto;
    object-fit: contain;
}

.site-footer {
    width: 100%;
    padding: 60px 0;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    margin-top: 50px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-brand {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 8px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
}



@media (max-width: 768px) {
    /* Header e Navegação */
    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-right-group {
        gap: 20px;
    }


    .first-box {
        flex-direction: column-reverse;
        text-align: center;
        margin: 20px auto;
        padding: 0 20px;
    }

    .left-box h1 {
        font-size: 2.8rem;
        margin-top: 20px;
    }

    .right-box img {
        width: 180px;
        margin-right: 0;
    }

    .calculator-container {
        width: 95%;
        padding: 20px;
        margin-top: 40px;
    }

    .calculator-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .calculator-header h2 {
        font-size: 1.8rem;
    }


    .main-layout {
        flex-direction: column;
        gap: 30px;
    }


    .inputs-section-family {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .inputs-section-family input {
        width: 80%;
        padding-left: 15px; 
        text-align: center;
    }


    .cards-section {
        flex-direction: column;
        width: 100%;
    }

    .card {
        max-width: 100%;
        min-width: unset;
    }


    .inputs-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .input-group1, .input-group2 {
        width: 100%;
        padding-left: 0;
    }

    .label-with-flag {
        font-size: 1.2rem;
        justify-content: center;
    }

    .currency-input-wrapper {
        width: 100%;
    }

    .convert-button {
        width: 100%;
        height: 50px;
    }

    /* Footer */
    .footer-container {
        text-align: center;
    }

    .footer-brand {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .left-box h1 {
        font-size: 2.2rem;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
    }
}