/*
=========================================================
M&B Tax Services
Popup Form
=========================================================
*/

.elementor .e-flexbox-base.popup-form-payment{
    padding:0px;
    display:block;
}

#elementor-popup-modal-4143{
position: fixed;
    inset: 0;
    background: rgba(8, 16, 40, .6);
    backdrop-filter: blur(4px);
    z-index: 9999999;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px 0;
    overflow-y: auto;
    height:auto;
}
#elementor-popup-modal-4143 .dialog-widget-content{
        background: #fff;
    width: 100%;
    max-width: 780px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .4);
    animation: slideup .25s cubic-bezier(.2, .7, .3, 1);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
.mbrf-field.field.hidden {
    height: 0;
    width: 0;
    display: none;
}
.mbrf-review-content .note {
    font-size: 12.5px;
    color: #7a8699;
}
.mbrf-form-wrapper{

    width:100%;
    max-width:900px;
    margin:auto;
    font-family:Inter,sans-serif;
    color:#222;

}

.mb-form-header{
   flex-direction:column;
    display: flex;
    gap: 14px;
    position: relative;
    background: linear-gradient(180deg, var(--bg-alt), #fff);
}
.mb-form-header .mb-form-heading{
    padding: 20px 20px 0;
    display: flex;
    gap: 10px;
}
.mb-form-header .ic svg {
    width: 20px;
    height: 20px;
}
.mb-form-header .ic{
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(230, 57, 70, .1), rgba(230, 57, 70, .04));
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(230, 57, 70, .2);
    flex-shrink: 0;
}
.mb-form-header .info {
    flex: 1;
    min-width: 0;
}

.mb-form-header h3 {
    font-size: 19px;
    font-weight: 800;
    color: #0e2148;
    letter-spacing: -.015em;
    line-height: 1.2;
    margin:0px;
}
.mb-form-header .sub {
    font-size: 13px;
    color: #43526e;
    margin-top: 3px;
}


/*-----------------------------------
Progress
-----------------------------------*/

.mb-progress{
 padding: 24px 28px;
    display:flex;
    align-items:center;
    justify-content:center;
position: sticky;
    margin-bottom:0px;
        border-top: 1px solid #e2e7f0;
    border-bottom: 1px solid #e2e7f0;
    

}

.mb-progress-item{

    display:flex;
    flex-direction:row;
    align-items:center;

    min-width:90px;

}

.mb-progress-item span{
    margin-left: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #7a8699;
    font-family: 'Plus Jakarta Sans';
    text-transform: uppercase;

}

.circle{

    width:22px;
    height:22px;

    border-radius:50%;

    background:#f4f6fb;

    display:flex;
    align-items:center;
    justify-content:center;

    font-weight:700;
    font-size: 11px;
    transition:.3s;

}

.mb-progress-item.active .circle{

    background:#e63946;

    color:#fff;

}
.mb-progress-item.completed .circle{
background:#2ea043;
    color:#fff;
}
.mb-progress-item.active span{

    color:#000;

}
.mb-progress-item.completed span{
color:#2ea043;
}
.line{

    flex:1;

    height:2px;

    background:#ddd;

    margin:0 15px ;

}
.mb-progress-item.completed + .line{
    background:#2ea043;

}

/*-----------------------------------
Steps
-----------------------------------*/

.popup-step{

    display:none;
   

}
.popup-step-inner{
 max-height: 62vh;
    overflow-y: auto;
    padding:0px 28px;
}
.popup-step.active{

    display:block;

}


.popup-form-payment .step-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-top: 1px solid #e2e7f0;
    background: #f4f6fb;
    gap: 12px;
}

.popup-form-payment .step-footer span.footer-text {
    font-size: 12.5px;
    color: #7a8699;
}
/*-----------------------------------
Titles
-----------------------------------*/

.popup-step h2{
    font-size: 13px;
    font-weight: 800;
    color: #0e2148;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
margin-top: 20px;
    padding: 0px;
}
.popup-step h2::before{
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e63946;
}
/*-----------------------------------
Grid
-----------------------------------*/

.grid{

    display:grid;
padding: 0px;
    grid-template-columns:1fr 1fr;

      gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e2e7f0;
    padding-bottom: 35px;

}

section.mbrf-form-section:last-child .grid{
    border-bottom: 0px solid #e2e7f0;
    gap: 5px;
}

.field{

    display:flex;

    flex-direction:column;

}

.field.full{

    grid-column:1 / -1;

}
.field label .mbrf-optional {
    display: inline-block;
    margin-left: 7px;
    padding: 0 1px 3px;
    border-bottom: 2px solid #7267f0;
    color: #7a8699;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

/*-----------------------------------
Labels
-----------------------------------*/

.field label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #43526e;
    margin-bottom: 6px;
    letter-spacing: .02em;
    font-family: 
        'Plus Jakarta Sans';
}
.field label .req {
    color: #e63946;
    margin-left: 2px;
}
/*-----------------------------------
Inputs
-----------------------------------*/

.field input,
.field textarea,
.field select{

       width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e7f0;
    border-radius: 9px;
    font-family: inherit;
    font-size: 14.5px;
    color: #0e1f3d;
    background: #fff;
    transition: .15s;
    height: 42px;

}

.field textarea{

    height:120px;

    padding:16px;

    resize:vertical;

}

.field input:focus,
.field textarea:focus,
.field select:focus{

    outline:none;

    border-color:#e63946;


}

.field input::placeholder,
.field textarea::placeholder{

    color:#7a8699;

}
small.mbrf-field-description {
    font-size: 11.5px;
    color: #7a8699;
    margin-top: 15px;
    font-family: 'Plus Jakarta Sans';
}
/*-----------------------------------
Upload
-----------------------------------*/

.upload-box{

  
    font-size: 12.5px;
    font-weight: 700;
    color: #43526e;
    margin-bottom: 6px;
    letter-spacing: .02em;
	position:relative;
    display: block;
    border: 2px dashed #e2e7f0;
    border-radius: 10px;
    padding: 20px;
    background: #f4f6fb;
    cursor: pointer;
    text-align: center;
    transition: .15s;
}
.upload-box .ic svg {
    width: 18px;
    height: 18px;
}

.upload-box .ic{
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 1px solid var(--line);
}
.upload-box input{
	height:auto;
}
.upload-box:hover{

    border-color:#e63946;

}

.file-input{

    position:absolute;

    inset:0;

    opacity:0;

    cursor:pointer;

}

.upload-content{

    padding:20px;

}

.upload-content strong{

    display:block;
font-size: 13.5px;
    font-weight: 700;
    color: #0e2148;
    margin-bottom: 3px;
}

.upload-content small{

    display:block;

        font-size: 11.5px;
    color: #7a8699;

}
/*==================================================
Agreement
==================================================*/

.agreement{
padding:0px 20px;
  

}

.field label.checkbox{

    display:flex;
    align-items:flex-start;

    margin-bottom:0px;

    cursor:pointer;
    color:#43526e;
    font-family: 'Plus Jakarta Sans';
    font-size: 13.5px;
    line-height: 1.55;
    gap:14px;

}
.field label.checkbox span.req{display: none;}
.checkbox input{

    width:18px;
    height:18px;
    min-width: 18px;
    margin-top:3px;

    accent-color:#00A651;

}

.checkbox span{

        display: block;
    gap: 10px;
    font-size: 13.5px;
    color: #43526e;
    line-height: 1.55;
    cursor: pointer;
    font-weight:400;

}

.checkbox a{

    color:#00A651;

    text-decoration:none;

}

.checkbox a:hover{

    text-decoration:underline;

}
.checkbox input
 {
    accent-color: #e63946;
}
 

/*==================================================
Footer Buttons
==================================================*/

.step-footer{

    display:flex;

    justify-content:flex-end;

    gap:15px;

    margin-top:35px;

}

.btn{

    height:52px;

    border:none;

    border-radius:8px;

    padding:0 34px;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

.btn-next,
.btn-pay,
.btn-payment{

    background:#0e2148;

    color:#fff;

}

.btn-next:hover,
.btn-pay:hover,
.btn-payment:hover
{

    background:#1b3470;
    transform: translateY(-1px);
}

.btn-secondary{

    background: #fff;
    color: #0e2148;
    border: 1.5px solid #e2e7f0;
    padding: 11px 18px;
    border-radius: 9px;
    font-family: inherit;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: .15s;

}

.btn-secondary:hover {
    border-color: #0e2148;
    background: #f4f6fb;
    color:#0e2148;
}
.btn-secondary:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/*==================================================
Review
==================================================*/

.mbrf-review-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-radius: 12px;
    padding: 22px;
    background: #f4f6fb;
    border: 1px solid #e2e7f0;
    margin-top: 30px;
}
.review-section{
    overflow:hidden;

}

.review-section h4 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #0e2148;
    margin-bottom: 14px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(14, 33, 72, .1);
    font-size: 14px;
}
.review-item strong {
    color: #43526e;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans';
    font-weight: normal;
}

.review-item span {
    color: #0e2148;
    font-weight: 700;
    text-align: right;
    font-family: 'Plus Jakarta Sans';
    font-size: 14px;
}

.review-price {
    background: none;
    color: #0e2148;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    border-top: 2px solid #0e2148;
    border-radius: 0;
}
.review-price strong{
    font-weight: 700;   
}
.review-price span{
    color: #e63946;
    font-size: 22px;
    font-weight: 700;
}

/*==================================================
Payment
==================================================*/

.payment-methods{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:20px;

    margin-top:30px;

}

.payment-card{

    position:relative;

    border:2px solid #ddd;

    border-radius:12px;

    padding:24px;

    cursor:pointer;

    transition:.3s;

}

.payment-card:hover{

    border-color:#00A651;

}

.payment-card input{

    position:absolute;

    top:18px;

    right:18px;

}

.payment-card strong{

    display:block;

    font-size:18px;

    margin-bottom:10px;

}

.payment-card p{

    color:#666;

    line-height:1.6;

}

/*==================================================
Validation
==================================================*/

.error{

    border-color:#dc3232 !important;

}

.error-message{

    color:#dc3232;

    font-size:13px;

    margin-top:6px;

}

.upload-box.error{

    border-color:#dc3232;

}

/*==================================================
Loading
==================================================*/

.loading{

    opacity:.6;

    pointer-events:none;

}

.loading button{

    cursor:wait;

}

/*==================================================
Success Upload
==================================================*/

.upload-success{

    border-color:#00A651;

    background:#F5FFF9;

}

.upload-success strong{

    color:#00A651;

}

/*==================================================
Responsive
==================================================*/

@media(max-width:991px){

    .grid{

        grid-template-columns:1fr;

    }

    .field.full{

        grid-column:auto;

    }

    .payment-methods{

        grid-template-columns:1fr;

    }

}

@media(max-width:767px){

    .mb-progress{

        gap:8px;

    }

    .line{

        margin:0 5px 24px;

    }

    .mb-progress-item{

        min-width:65px;

    }

    .mb-progress-item span{

        font-size:11px;

        text-align:center;

    }

    .circle{

        width:36px;

        height:36px;

    }

    .step-footer{

        flex-direction:column;

    }

    .btn{

        width:100%;

    }

    .review-row{

        flex-direction:column;

        gap:8px;

    }

    .review-value{

        text-align:left;

    }

    .review-price{

        flex-direction:column;

        gap:10px;

        text-align:center;

    }

}
.mbrf-form-wrapper {
    width: 100%;
    max-width: 900px;
    margin: auto;
    font-family: Inter, sans-serif;
    color: #222;
    background: #fff;
}

.mbrf-form-wrapper .mbrf-form-message {
    margin-top: 20px;
    font-weight: 600;
}

.mbrf-form-wrapper .mbrf-payment-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
    background: #f4f6fb;
    border: 1px solid #e2e7f0;
    font-size: 18px;
}

.mbrf-form-wrapper .mbrf-field.error {
    padding: 8px;
    border: 1px solid #dc3232;
    border-radius: 8px;
}

.mbrf-form-wrapper .mbrf-section-description {
    padding: 0 20px 20px;
    color: #43526e;
}
.mbrf-form-message {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 7px;
}

.mbrf-form-message:empty {
    display: none;
}

.mbrf-form-message.is-error {
    display: block;
    border: 1px solid #d63638;
    background: #fcf0f1;
    color: #8a2424;
}

.mbrf-form-message.is-success {
    display: block;
    border: 1px solid #2ea043;
    background: #edfaef;
    color: #176b2c;
}

.mbrf-stripe-container {
    margin-top: 22px;
}

.mbrf-stripe-payment-element {
    margin-bottom: 20px;
}

.mbrf-stripe-pay {
    width: 100%;
}

.mbrf-form-wrapper .payment-card {
    position: relative;
    border: 2px solid #e2e7f0;
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    background: #fff;
    transition: 0.2s ease;
}

.mbrf-form-wrapper .payment-card:hover {
    border-color: #b9c4d6;
}

.mbrf-form-wrapper .payment-card.is-selected {
    border-color: #0e2148;
    background: #f4f6fb;
    box-shadow:
        0 0 0 1px #0e2148;
}

.mbrf-form-wrapper .payment-card input {
    margin-right: 8px;
}