
#cost-modal {
    display: none;
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}
body.modal-open {
    overflow: hidden;
}

#cost-modal.active {
    display: flex !important;
}


.modal-content {
    background: #1A1A1A;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow-y: auto;
    max-height: 90vh;
    color: #fff;
}

.progress-bar {
    display: none;
    /*
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    width: 70%;
    */
}

.progress-bar .step {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border: 2px solid #666666;
    border-radius: 50%;
    background: #1A1A1A;
    color: #666666;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
}

.progress-bar .step.active {
    border-color: #fce809;
    background: #fce809;
    color: #1A1A1A;
}

.form-step {
    margin-bottom: 20px;
}

.step-header {
    display: none;
    /*
    background: #2A2A2A;
    border-radius: 10px 10px 0 0;
    padding: 15px;
    margin: -20px -20px 15px -20px;
    */
}

.form-step h2 {
    font-weight: 600;
    font-size: 18px;
    margin: 40px 10px 0px 0px;
    color: #FFFFFF;
}
.form-step p {
    margin: 15px 0px 5px 0px;
}

.form-step select {
    width: 100%;
    padding: 12px 40px 12px 12px;
    margin: 10px 0;
    border: 1px solid #444444;
    box-sizing: border-box;
    background: #2A2A2A;
    color: #aeaeae;
    font-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("/wp-content/plugins/cetera-cost-calculation-form/assets/img/down-chevron.svg");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-step select:focus {
    outline: none;
    border-color: #666;
}

.form-step input[type="text"], .form-step input[type="tel"], .form-step input[type="file"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #444444;
    box-sizing: border-box;
    background: #2A2A2A;
    color: #7c7c7c;
}

.tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}

.tabs.vertical {
    flex-direction: column;
}

.tabs .tab {
    padding: 12px 40px;
    border: 1px solid #444444;
    cursor: pointer;
    background: #2A2A2A;
    color: #FFFFFF;
    transition: all 0.3s;
    text-align: left;
    min-width: 100%;
}

.tabs .tab.active {
    background: #fce809;
    color: #1A1A1A;
    border-color: #fce809;
}

.tabs .tab::before {
    content: "";
    position: absolute;
    left: 30px;
    transform: translateY(15%);
    width: 20px;
    height: 20px;
    border: 1px solid #fce809;
    border-radius: 50%;
}

.tabs .tab.active::before {
    background-color: #7c7c7c;
    border: 1px solid #fce809;
}

.next-step {
    cursor: pointer;
    margin-right: 10px;
    transition: background 0.3s, opacity 0.3s;
    color: #fce809;
    border: 1px solid #fce809;
    border-radius: 5px;
    float: right;
    text-transform: none !important;
    font-weight: 500;
}

.submit-btn {
    cursor: pointer;
    margin-right: 10px;
    transition: background 0.3s, opacity 0.3s;
    color: #000 !important;
    border: 1px solid #fce809;
    border-radius: 5px;
    float: right;
    text-transform: none !important;
    font-weight: 500;
    -webkit-appearance: none;
    appearance: none;
    -webkit-text-fill-color: #000 !important;
}

.prev-step {
    border: 1px solid #fce809;
    color: #fce809;
    border-radius: 5px;
    float: left;
    text-transform: none !important;
    font-weight: 600;
}

.next-step:hover, .submit-btn:hover {
    opacity: 0.9;
    background: #fce809 !important;
    color: #000 !important;
    font-weight: 500 !important;
}

.prev-step:hover {
    opacity: 0.9;
    background: #fce809;
    color: #000;
    font-weight: 600;
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6!important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

.next-step:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

#file-list {
    margin-top: 10px;
    font-size: 14px;
    color: #CCCCCC;
}

#cost-modal #phone-error,
#cost-modal #consent-error {
    display: none;
    color: #e82800;
}

#close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0px 7px;
    border: 1px solid #b13a20;
    border-radius: 5px;
    background: #8c3523;
    cursor: pointer;
    font-size: 40px !important;
    font-weight: 300;
}

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    .progress-bar .step {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 14px;
    }
    .tabs .tab {
        padding: 10px 50px;
        
    }
    .prev-step, .next-step, .submit-btn {
        padding: 10px 20px;
    }
    
    #consent-error, #phone-error {
        font-size:12px;
    }

    .form-step select {
        background-position: right 12px center;
        padding-right: 36px;
    }

}
.popup__title {
    text-align: center;
}

.popup > p  {
    text-align: center !important;
    margin-bottom: 40px !important;
    font-size: 1.2rem !important;
    font-weight: 300 !important;
    padding: 0px 70px 0px 70px;
}
.popup__tg {
    display: flex;
    justify-content: center;
    margin: 70px 0px 0px 0px;
}

.popup__tg .tg_content {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 15px;
    padding-left: 10px;
    padding-right: 10px;
}

.popup__tg .tg_content .text_block {
    display: flex;
    background-color: white;
    max-width: 500px;
    border-radius: 10px;
    margin-left: 75px;
    justify-content: center;
    color: #000;
    padding: 0px 20px 10px 40px;
}

.popup__tg .tg_content .text_block .contest_text {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-left: 50px;
    height: 100%;
    color: black;
    font-size: 16px;
    font-weight: 500;
}

.popup__tg .tg_content .tg_img {
    position: absolute;
    margin-right: 20px;
    width: 130px;
    height: 130px;
}

.popup__cta {
    display: flex;
    justify-content: center;
}

.popup__link {
    margin: 0 10px;
    text-decoration: none;
    color: #007bff;
}

.popup__social-links {
    display: flex;
    justify-content: center;
    margin: 10px 10px 10px 10px;
    gap: 10px;
}

.popup__social-link {
    margin: 0 5px;
}

.popup__social-text {
    text-align: center;
    margin-top: 10px;
}
.popup__cta a{
    display: inline-block;
    color: #fce809;
    border: 2px solid #fce809;
    border-bottom: 2px solid #fce809;
    margin: 6px auto;
    transition: 0.15s all;
    text-align: center;
    border-radius: 4px;
    padding: 0.6em 2em;
    font-weight: 500;
    min-width: 260px;
    text-shadow: none;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.16), inset 0px 1px 2px rgba(255, 255, 255, 0.35);
}
.popup__cta a:hover {
    color: #191919;
    background: #fce809;
}

