/**
 * Zoho CRM – Standards Download Web-to-Lead Form
 * Styles scoped entirely to #crmWebToEntityForm
 */

/* ── Base / layout ─────────────────────────────────────────────────────── */

#crmWebToEntityForm.zcwf_lblLeft {
    width: 100%;
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Titillium Web', sans-serif;
}

#crmWebToEntityForm.zcwf_lblLeft * {
    box-sizing: border-box;
    font-family: 'Titillium Web', sans-serif;
}

#crmWebToEntityForm .zcwf_row {
    margin: 0 0 8px 0;
    display: block;
    clear: both;
}

#crmWebToEntityForm .zcwf_row:after,
#crmWebToEntityForm .zcwf_col_fld:after {
    content: '';
    display: table;
    clear: both;
}

/* ── Hide Zoho-generated elements we don't use ─────────────────────────── */

#crmWebToEntityForm .zcwf_col_lab {
    display: none !important;
}

#crmWebToEntityForm .zcwf_col_help {
    display: none !important;
}

#crmWebToEntityForm .wfrm_fld_dpNn {
    display: none !important;
}

/* ── Column/field container ────────────────────────────────────────────── */

#crmWebToEntityForm .zcwf_col_fld {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ── Text inputs ───────────────────────────────────────────────────────── */

#crmWebToEntityForm input[type=text]:not([style*='display:none']):not([style*='display: none']),
#crmWebToEntityForm input[type=password] {
    width: 100% !important;
    float: none !important;
    display: block !important;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px;
    background-color: #f5f5f5;
    font-size: 14px;
    font-family: 'Titillium Web', sans-serif;
    color: #888;
    outline: none;
    resize: none;
    transition: border-color 0.2s, background-color 0.2s;
}

/* Keep Zoho hidden inputs hidden */
#crmWebToEntityForm input[style*='display:none'],
#crmWebToEntityForm input[style*='display: none'] {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    border: none !important;
}

#crmWebToEntityForm input[type=text]:not([style*='display:none']):not([style*='display: none']):focus,
#crmWebToEntityForm input[type=password]:focus {
    border-color: #4ecdc4 !important;
    background-color: #fff;
    color: #333;
}

/* ── State dropdown ────────────────────────────────────────────────────── */

#crmWebToEntityForm select.rsq-state-select {
    width: 100% !important;
    float: none !important;
    display: block !important;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px;
    background-color: #f5f5f5;
    font-size: 14px;
    font-family: 'Titillium Web', sans-serif;
    color: #888;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer;
}

#crmWebToEntityForm select.rsq-state-select:focus {
    border-color: #4ecdc4 !important;
    background-color: #fff;
    color: #333;
}

/* ── Modality checkboxes ───────────────────────────────────────────────── */

#crmWebToEntityForm .rsq-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0px 20px;
    padding: 4px 0;
}

#crmWebToEntityForm .rsq-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    font-weight: 400;
    white-space: nowrap;
}

#crmWebToEntityForm .rsq-checkbox-group input[type=checkbox] {
    width: 15px !important;
    height: 15px !important;
    display: inline-block !important;
    float: none !important;
    flex-shrink: 0;
    accent-color: #4ecdc4;
    cursor: pointer;
}

/* ── Medical physicist radio row ───────────────────────────────────────── */

#crmWebToEntityForm .rsq-radio-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 0;
    font-size: 14px;
    color: #444;
}

#crmWebToEntityForm .rsq-radio-row label.rsq-radio-option {
    font-size: 14px;
    color: #444;
    cursor: pointer;
    margin-left: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

#crmWebToEntityForm .rsq-radio-row input[type=radio] {
    width: 15px !important;
    height: 15px !important;
    display: inline-block !important;
    float: none !important;
    accent-color: #4ecdc4;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Privacy / consent row ─────────────────────────────────────────────── */

#crmWebToEntityForm .zcwf_privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0;
    margin-bottom: 8px;
}

#crmWebToEntityForm .zcwf_privacy_txt {
    font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    color: #444;
}

#crmWebToEntityForm .zcwf_privacy_txt a {
    color: #4ecdc4;
    text-decoration: underline;
}

#crmWebToEntityForm .zcwf_privacy_txt a:hover {
    opacity: 0.8;
}

#crmWebToEntityForm .dIB {
    display: inline !important;
}

#crmWebToEntityForm .dIB.vaT {
    vertical-align: top;
}

#crmWebToEntityForm #privacyTool1600053000048373001 {
    width: 15px !important;
    height: 15px !important;
    display: inline-block !important;
    float: none !important;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #4ecdc4;
    cursor: pointer;
}

/* ── Submit / Reset buttons ────────────────────────────────────────────── */

#crmWebToEntityForm .formsubmit.zcwf_button {
    background: #4ecdc4 !important;
    color: white !important;
    border: none !important;
    border-radius: 30px;
    padding: 12px 36px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Titillium Web', sans-serif;
    cursor: pointer;
    max-width: none;
    width: auto;
    overflow: visible;
    white-space: nowrap;
    transition: opacity 0.2s;
}

#crmWebToEntityForm .formsubmit.zcwf_button:hover {
    opacity: 0.85;
}

#crmWebToEntityForm input[type=reset].zcwf_button {
    background: transparent !important;
    color: #888 !important;
    border: 1px solid #ccc !important;
    border-radius: 30px;
    padding: 12px 28px;
    font-size: 13px;
    font-family: 'Titillium Web', sans-serif;
    cursor: pointer;
    max-width: none;
    width: auto;
    margin-left: 8px;
}

/* ── Field label ───────────────────────────────────────────────────────── */

#crmWebToEntityForm .rsq-field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    font-family: 'Titillium Web', sans-serif;
}

/* ── Section grouping ──────────────────────────────────────────────────── */

#crmWebToEntityForm .rsq-section {
    margin-bottom: 24px;
}

/* ── Side-by-side rows (name, state+zip) ───────────────────────────────── */

#crmWebToEntityForm .rsq-split-row {
    display: flex;
    gap: 10px;
    margin: 0 0 8px 0;
}

#crmWebToEntityForm .rsq-split-row .zcwf_col_fld {
    flex: 1;
    width: auto !important;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    #crmWebToEntityForm .rsq-split-row {
        flex-direction: column;
    }

    #crmWebToEntityForm .rsq-checkbox-group {
        flex-direction: column;
        padding-left: 20px;
    }
}