.cma-preloader {

    display: none;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    backdrop-filter: blur(3px);
}

.cma-preloader img {
    width: 80px;
    height: 80px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -80px;
    margin-top: -80px;
}


/* =========================================
   MULTISTEP FORM
========================================= */

.wpuf-form {
    width: 100%;
    max-width: 100%;
    padding:0px;
}

.wpuf-form ul {
    padding: 0;
    margin: 0;
}

.wpuf-form li {
    list-style: none;
    margin-bottom: 20px;
}

/* =========================================
   STEP WIZARD
========================================= */

.wpuf-step-wizard {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding: 0;
    flex-wrap: wrap;
}

.wpuf-step-wizard li {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: #eee;
    border-radius: 8px;
    font-weight: 600;
    min-width: 120px;
}

.wpuf-step-wizard li.active-step {
    background: #0073aa;
    color: #fff;
}

/* =========================================
   FIELDSETS
========================================= */

.wpuf-multistep-fieldset {
    display: none;
}

.wpuf-multistep-fieldset.field-active {
    display: block;
}

/* =========================================
   LABELS
========================================= */

.wpuf-label label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

/* =========================================
   INPUTS
========================================= */

.wpuf-fields input[type="text"],
.wpuf-fields input[type="email"],
.wpuf-fields input[type="password"],
.wpuf-fields input[type="date"],
.wpuf-fields textarea,
.wpuf-fields select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.wpuf-fields textarea {
    min-height: 120px;
}

/* =========================================
   BUTTONS
========================================= */

.wpuf-multistep-next-btn,
.wpuf-multistep-prev-btn,
.wpuf-submit-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

.wpuf-multistep-next-btn:hover,
.wpuf-multistep-prev-btn:hover,
.wpuf-submit-button:hover {
    opacity: 0.9;
}

/* =========================================
   FAMILY MEMBER BOX
========================================= */

.family-member {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    background: #fafafa;
    display: none;
}

.family-member h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.family-member p {
    margin-bottom: 20px;
}

/* =========================================
   PHONE FIELD
========================================= */

.phone-wrapper {
    display: flex;
    gap: 10px;
}

.phone-wrapper select {
    width: 120px;
}

.phone-wrapper input {
    flex: 1;
}

/* =========================================
   ERROR STYLES
========================================= */

.field-error {
    border-color: red !important;
}

.validation-error {
    color: red;
    font-size: 13px;
    margin-top: 5px;
}

/* =========================================
   PASSWORD STRENGTH
========================================= */

.pass-strength-result {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    background: #f1f1f1;
    font-weight: bold;
}

.multistep-button-area input.wpuf-submit-button{
    padding: 8px;
    font-weight: 400;
    border-radius: 3px; 
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .wpuf-step-wizard {
        flex-direction: column;
    }

    .wpuf-step-wizard li {
        width: 100% !important;
    }

    .wpuf-label,
    .wpuf-fields {
        width: 100%;
    }

    .phone-wrapper {
        flex-direction: column;
    }

    .phone-wrapper select {
        width: 100%;
    }

    .wpuf-multistep-next-btn,
    .wpuf-multistep-prev-btn,
    .wpuf-submit-button {
        width: 100%;
    }

    .family-member {
        padding: 15px;
    }

    .wpuf-fields input,
    .wpuf-fields textarea,
    .wpuf-fields select {
        font-size: 16px;
    }
}

