/* --- Full Final CSS for Refraction Form (April 2025 Updated) --- */

html, body {
    margin: 0;
}

#crmWebToEntityForm.zcwf_lblLeft {
    width: 100%;
    padding: 25px;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: left;
}

#crmWebToEntityForm.zcwf_lblLeft * {
    box-sizing: border-box;
    direction: ltr;
}

.zcwf_lblLeft .zcwf_title {
    word-wrap: break-word;
    padding: 0px 6px 10px;
    font-weight: bold;
}

.zcwf_lblLeft .zcwf_col_fld input[type="text"],
.zcwf_lblLeft .zcwf_col_fld input[type="password"],
.zcwf_lblLeft .zcwf_col_fld textarea {
    width: 60%;
    border: 1px solid #c0c6cc !important;
    resize: vertical;
    border-radius: 2px;
    float: left;
    padding: 8px;
    font-size: 14px;
}

.zcwf_lblLeft .zcwf_col_lab {
    width: 30%;
    word-break: break-word;
    padding: 0px 6px 0px;
    margin-right: 10px;
    margin-top: 5px;
    float: left;
    min-height: 1px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.zcwf_lblLeft .zcwf_col_fld {
    float: left;
    width: 68%;
    padding: 0px 6px 0px;
    position: relative;
    margin-top: 5px;
}

.zcwf_lblLeft .zcwf_row {
    margin: 15px 0px;
}

.zcwf_lblLeft .zcwf_privacy {
    padding: 6px;
}

.zcwf_lblLeft .zcwf_privacy_txt {
    width: 90%;
    color: #313949;
    font-size: 14px;
    font-family: Arial, sans-serif;
    display: inline-block;
    vertical-align: top;
    padding-top: 2px;
    margin-left: 6px;
}

.zcwf_lblLeft .zcwf_ckbox {
    float: left;
}

.zcwf_lblLeft .zcwf_col_help {
    float: left;
    margin-left: 7px;
    font-size: 14px;
    max-width: 35%;
    word-break: break-word;
}

.zcwf_lblLeft .zcwf_file {
    width: 55%;
    box-sizing: border-box;
    float: left;
}

.cBoth:after, .zcwf_lblLeft .zcwf_row:after, .zcwf_lblLeft .zcwf_col_fld:after {
    content: '';
    display: table;
    clear: both;
}

/* --- Button Group Styling --- */

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

#crmWebToEntityForm input[type="submit"].formsubmit,
#crmWebToEntityForm input[type="reset"].zcwf_button {
    flex: 1;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

/* Submit Button */
#crmWebToEntityForm input[type="submit"].formsubmit {
    background-color: #FF0033;
    color: white;
}

#crmWebToEntityForm input[type="submit"].formsubmit:hover {
    background-color: #cc002a;
}

/* Reset Button */
#crmWebToEntityForm input[type="reset"].zcwf_button {
    background-color: #e0e0e0;
    color: #313949;
}

#crmWebToEntityForm input[type="reset"].zcwf_button:hover {
    background-color: #cccccc;
}

/* --- Responsive adjustments for mobile --- */

@media all and (max-width: 600px) {
    .zcwf_lblLeft .zcwf_col_lab,
    .zcwf_lblLeft .zcwf_col_fld {
        width: auto;
        float: none !important;
    }
    .zcwf_lblLeft .zcwf_col_help {
        width: 40%;
    }
    .button-group {
        flex-direction: column;
    }
    #crmWebToEntityForm input[type="submit"].formsubmit,
    #crmWebToEntityForm input[type="reset"].zcwf_button {
        width: 100%;
    }
}
