.mtd-wrapper{
margin:auto;
border:1px solid #E6E6E6;
border-radius:20px;
overflow:hidden;
}

/* =========================
PROGRESS BAR
========================= */

.mtd-progress{
position:relative;
display:flex;
justify-content:space-between;
align-items:center;
margin:40px 0;
padding:0 10px;
}

/* BASE LINE */
.progress-line{
position:absolute;
top:17px;
left:0;          /* will be controlled by JS */
width:0;         /* will be controlled by JS */
height:2px;
background:#ddd;
z-index:0;
border-radius:10px;
}

/* ACTIVE LINE */
.progress-line-active{
position:absolute;
top:18px;
left:0;
width:0;
height:2px;
background:#1f8f4a;
z-index:1;
border-radius:10px;
transition:all .4s ease;
}

/* STEP */
.progress-step{
position:relative;
z-index:2;
text-align:center;
flex:1;
}

/* CIRCLE */
.progress-step span{
display:flex;
align-items:center;
justify-content:center;
width:40px;
height:40px;
border-radius:50%;
background:#fff;
border:2px solid #ddd;
color:#999;
font-weight:600;
font-size:16px;
margin:auto;
transition:all .3s ease;
}

/* LABEL */
.progress-step p{
font-size:14px;
color:#666;
margin-top:8px;
font-family:'BRFirma-Medium', sans-serif;
}

/* ACTIVE STEP */
.progress-step.active span{
background:#EAA820;
color:#fff;
border: none;
}

.progress-step.active p{
color:#000;
font-weight:400;
}

/* COMPLETED STEP */
.progress-step.completed span{
background:#1f8f4a !important;
border: none;
color:#fff;
}

.progress-step.completed p{
color:#000;
font-weight:400;
}

/* FORM WRAPPER */

.mtd-form{
position:relative;
}

/* STEP */

.step{
position:absolute;
top:0;
left:0;
width:100%;
background:#eef2f7;
padding:40px;
border-radius:10px;
/* fade animation */
opacity:0;
visibility:hidden;
transform:scale(.98);
transition:
opacity .45s ease,
transform .45s ease,
visibility .45s ease;
}

/* ACTIVE STEP */

.step.active{
opacity:1;
visibility:visible;
position:relative;
transform:scale(1);
}

/* TEXT */

.step h3{
font-family:'BRFirma-Medium', sans-serif;
font-size:24px;
font-weight:500;
margin:0;
}

.step p{
font-family:'Hanken Grotesk', sans-serif;
font-size:18px;
font-weight:400;
margin:0;
}

/* CARD GRID */

.card-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:20px;
margin:40px 0 30px;
}

.card-row{
background:white;
border:1px solid #ddd;
padding:30px;
border-radius:20px;
flex-direction:column;
cursor:pointer;
display:flex;
gap:10px;
align-items:start;
transition:all .25s ease;
}

.card-row:hover{
transform:translateY(-3px);
box-shadow:0 6px 14px rgba(0,0,0,0.06);
}

.card-row h4{
color:#0013C1;
font-size:18px;
font-weight:500;
font-family:'BRFirma-Medium', sans-serif;
margin:20px 0 0;
}

.cardh5{
color:#0013C1;
font-size:18px;
font-weight:500;
font-family:'BRFirma-Medium', sans-serif;
margin:30px 0 -30px;
}

.card-row p{
font-family:'Hanken Grotesk-Light', sans-serif;
font-size:16px;
font-weight:400;
line-height:20px;
}

.card-row input{
transform:scale(1.4);
}

.cardgrid4
{
grid-template-columns:repeat(4,1fr);
}

/* RANGE */

.income-range-wrapper{
margin-top:40px;
width:100%;
}

.range-labels{
display:flex;
justify-content:space-between;
font-family:'BRFirma-Medium', sans-serif;
font-size:18px;
}

.income-slider{
-webkit-appearance:none;
appearance:none;
width:100%;
height:6px;
border-radius:12px;
outline:none;
background:linear-gradient(to right,#2044d8 0%,#ddd 0%);
margin-top:40px;
}

.income-slider::-webkit-slider-thumb{
-webkit-appearance:none;
width:20px;
height:20px;
border-radius:50%;
background:#2044d8;
cursor:pointer;
margin-top:-7px;
}

.income-slider::-moz-range-thumb{
width:20px;
height:20px;
border-radius:50%;
background:#2044d8;
cursor:pointer;
border:none;
}

.income-value{
margin-top:15px;
font-weight:bold;
font-size:20px;
font-family:'BRFirma-Medium', sans-serif;
}

/* BUTTONS */

.card-btn{
text-align:right;
}

.nav-buttons{
display:flex;
justify-content:space-between;
margin-top:20px;
}

.prev{
display:inline-flex;
gap:8px;
align-items:center;
font-size: 18px;
font-family: 'Hanken Grotesk-Light', sans-serif;
padding: 14px 30px;
border:none;
background:#fff;
color: #000;
border-radius:30px;
cursor:pointer;
font-weight: 300;
}

.prev:hover
{
 background:#fff;
 color:#000;
}

.prev::before
{
content:"";
width:12px;
height:12px;
background:url("../images/back.svg") no-repeat center;
background-size:contain;
display:inline-block;

}

.next
{
display:inline-flex;
gap:8px;
align-items:center;
font-size: 18px;
font-family: 'Hanken Grotesk-Light', sans-serif;
padding: 14px 30px;
border:none;
background:#0013C1;
color:white;
border-radius:30px;
cursor:pointer;
font-weight: 300;
}
.next:hover
{
   background:#0013C1; 
}

.next::after
{
content:"";
width:12px;
height:12px;
background:url("../images/next.svg") no-repeat center;
background-size:contain;
display:inline-block;   
}


.submit{
display:inline-flex;
align-items:center;
gap:8px;
font-size: 18px;
font-family: 'Hanken Grotesk-Light', sans-serif;
padding: 14px 30px;
border:none;
background:#0013C1;
color:white;
border-radius:30px;
cursor:pointer;
font-weight: 300;
}

.submit::after{
content:"";
width:12px;
height:12px;
background:url("../images/next.svg") no-repeat center;
background-size:contain;
display:inline-block;
}

@media (max-width: 600px)
{
.mtd-progress
{
    padding:0;
}
.progress-line{
top:12px;
}

.progress-line-active{
top:12px;
}
.progress-step span
{
    font-size: 16px;
    width:25px;
    height:25px;
}
.progress-step p
{
     font-size: 12px;
}
.step
{
    padding: 40px 20px;
}
.step h3 
{
    font-size: 22px;
}
.step p
{
    font-size: 14px !important;
   line-height: 22px !important;
   margin-top:5px !important;
}
.card-grid
{
 grid-template-columns: repeat(2, 1fr);
}
.card-row
{
 padding: 20px 15px;
}
.card-row h4
{
 margin: 20px 0 0 0;
 font-size:16px;
}
.card-row input {
 transform: scale(1.1);
}
.card-row p 
{
 font-size: 16px;
 line-height: 22px;
 margin-top: 0px;
}

.next
{
padding: 10px 30px;
font-size: 16px;
}
.next::after 
{
 width: 12px;
 height: 12px;
}
.card-btn 
{
text-align:  center;
}
.prev
{
padding: 10px 30px;
font-size: 16px;
}
.prev::after 
{
 width: 12px;
 height: 12px;
}

.income-slider
{
margin-top: 0px !important;
}
.cardh5
{
 margin: 10px 0 -16px 0;
}
.submit 
{
padding: 10px 30px;
font-size: 16px;
}
.submit::after 
{
  width: 12px;
  height: 12px;
}
.step p 
{
 font-size: 16px;
 line-height: 22px;
}
.range-labels 
{
font-size: 14px;
}

}

@media (min-width: 600px) and (max-width: 1200px)
{
.card-grid
{
grid-template-columns: repeat(2, 1fr);
}
.card-row
{
 padding: 40px 20px 30px;
}
.step 
{
padding: 40px 30px;
}
.card-row h4
{
 margin: 15px 0 0 0;
 line-height: 27px;
}
.step p 
{
 font-size: 18px;
 line-height: 22px;
}
.progress-step span
{
    width: 40px;
    height: 40px;
    font-size: 20px;
}
.cardh5
{
    margin: 20px 0 -25px 0;
}
}
