@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');
: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%);
}
*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-size: 16px;
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: var(--slate-100);
    min-height: 100vh;
    display:flex;
    justify-content: center;
    align-items: center;
    padding:20px;
}
.main-container{
    display:grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--white);
    max-width: 800px;
}
.right{
    background-color: var(--slate-900);
    border-top-right-radius: 20px;
    border-bottom-right-radius:20px;
    border-bottom-left-radius:50px;
    padding:30px;
}
.default-text{
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap:15px;
}
.default-text h3,.calculations-container h3{
    color: var(--white);
    font-weight: 900;
}
.default-text p{
    color:var(--slate-300);
    text-align: center;
}
.calculations-container p{
    color:var(--slate-300);
    font-size: 12px;
    line-height: 1.1rem;
}

.left{
    padding:30px;
    border-radius: 10px;
}

.form-flex{
    display: flex;
    border: solid 1px #000000;
    margin: 15px 0px;
    
}
.mortgage-options{
    display: block;
    margin-bottom: 15px;
}
.radio-inputs{
    padding:8px;
    border:solid 1px #000000;
    margin-bottom: 10px;
}
.form-flex input{
    border: none;
    outline: none;
    padding: 8px;
    width:100%;
}
.clear-all{
    font-size: 12px;
}

.years,.percent,.mortgage-symbol {
    background-color: var(--slate-100);
    padding: 8px;
    font-size: 11px;
}

.heading{
    display:flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}
.term-rate{
    display: flex;
    align-items: center;
    gap:10px;
}
.calculate{
    display: inline-flex;
    align-items: center;
    padding:10px 30px;
    border-radius: 50px;
    background-color: var(--lime);
    margin-top: 20px;
    border: none;
    font-weight: 600;
}
.repayment label,.interest-only label{
    padding-left: 5px;
}
.calculations-container{
    display:flex;
    flex-direction: column;
    gap:20px;

}
.amount{
    background-color:hsl(198, 83%, 7%);
    padding:20px;
    display:flex;
    flex-direction: column;
    gap:15px;
    border-radius: 5px;
    border-top: solid 2px var(--lime);
}
@media screen and (max-width:622px){
    .main-container{
        display: grid;
        grid-template-columns: 1fr ;
    }
    .term-rate{
        display: flex;
        flex-direction: column;
        align-items: start; 
        
    }
    .mortgage-term-span,.interest-rate-span{
        width:100%;
    }
}
    
.form-alert{
    font-size: 10px;
    color: var(--red)
}
.error{
  border-color: var(--red);
}
.error span{
    background-color: var(--red);
    color:#ffffff
}
.form-flex:focus-within{
    border-color: var(--lime);
}
.form-flex:focus-within span{
    background-color: var(--lime);
}
.radio-inputs:focus-within{
    background-color:hsl(61, 42%, 78%);
    border-color: var(--lime);
}
input[type="radio"]{
    accent-color: var(--lime);
}
.hide{
    display: none;
}
.show{
    display: flex;
}
.monthly-amount{
    color:var(--lime);
}
.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }