:root{
    --lime: hsl(61, 70%, 52%);
    --red: hsl(4, 69%, 50%);
    --white: hsl(0, 0%, 100%);
    --slate-100: hsl(202, 86%, 94%);
    --slate-300: hsl(203, 41%, 72%);
    --slate-500: hsl(200, 26%, 54%);
    --slate-700: hsl(200, 24%, 40%);
    --slate-900: hsl(202, 55%, 16%);
}

*{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body{
    background-color: var(--slate-100);
    color: var(--slate-900);
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container{
    background-color: white;
    padding: 0px;
    margin: 0px;
    border-radius: 24px;
    display: flex;
    flex-direction: row;
    max-width: 900px;
    width: 90%;
    overflow: hidden; /* Garante que os filhos com border-radius se comportem */
}

.container .container-content{
    display: flex;
    flex-direction: column;
    padding: 20px;
    width: 50%;
}

.container-content .container-title{
    display: flex;
    justify-content: space-between;
    margin: 10px;
    padding: 5px;
}
.container-title .title{
    font-size: 20px;
}
.container-title .clear-form{
    text-decoration: underline;
    color: var(--slate-900);
    cursor: pointer;
}

.container-form form{
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

form .form-group{
    display: flex;
    flex-direction: column;
    margin: 10px;
}
/* Novo container para agrupar campos lado a lado */
.form-row {
    display: flex;
    gap: 20px;
}

/* Estilização dos inputs */
.form-group label {
    margin-bottom: 8px;
    color: var(--slate-700);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--slate-500);
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    outline: none;
    transition: border-color 0.3s;
}

.input-wrapper input:focus {
    border-color: var(--lime);
}

.input-adornment {
    position: absolute;
    right: 0;
    height: 100%;
    background-color: var(--slate-100);
    color: var(--slate-700);
    padding: 0 16px;
    display: flex;
    align-items: center;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border: 1px solid var(--slate-500);
    border-left: none;
    font-weight: bold;
}


/* Estilo para o botão de calcular */
.calculate-btn {
    background-color: var(--lime);
    color: var(--slate-900);
    border: none;
    padding: 15px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.calculate-btn:hover {
    background-color: hsl(61, 70%, 62%); /* Um pouco mais claro no hover */
}



.container-result{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--slate-900);
    color: white;
    padding: 30px;
    margin: 1px;
    border-radius: 0 24px 24px 80px; /* Raio de borda interessante */
    width: 50%;
    height: 100%;
}

.container-result h2 {
    font-size: 18px;
    color: var(--slate-300);
    font-weight: normal;
    margin-bottom: 12px;
}

.monthly-repayment {
    font-size: 48px;
    color: var(--lime);
    font-weight: bold;
    margin-bottom: 20px;
}

.total-repayment-label {
    color: var(--slate-300);
    border-top: 1px solid var(--slate-700);
    padding-top: 20px;
    width: 100%;
}

.total-repayment {
    font-size: 24px;
    font-weight: bold;
    margin-top: 8px;
}

@media (max-width: 820px) {
    .container {
        flex-direction: column;
        width: 100%;
        max-width: 500px;
        margin: 20px;
    }
    .container .container-content, .container-result {
        width: 100%;
        box-sizing: border-box;
    }
    .container-result {
        border-radius: 24px;
        border-top-left-radius: 80px;
    }
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}