/* ── Sales Form Styles ── */
/* Extends style.css — shares brand variables and base elements */

/* ── Page sections ── */
.wfPage {
    margin-bottom: 1.5em;
}

.wfPage h3 {
    font-size: 1.1em;
    font-weight: 700;
    color: #fff;
    background: var(--brand);
    padding: 0.6em 1em;
    border-radius: 4px;
    margin-bottom: 1em;
    letter-spacing: 0.3px;
}

/* ── Fieldsets / sections ── */
.wfSection {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1em 1.2em;
    margin-bottom: 1.2em;
}

.wfSection h4 {
    font-size: 0.9em;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ── Grid rows & columns ── */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
    margin-bottom: 0.5em;
}

.col-md-3  { flex: 0 0 calc(25% - 0.6em); min-width: 140px; }
.col-md-6  { flex: 0 0 calc(50% - 0.4em); min-width: 200px; }
.col-md-12 { flex: 0 0 100%; }

/* ── Field containers ── */
.oneField {
    margin-bottom: 0.9em;
}

/* ── Labels ── */
.preField,
.inlineLabel {
    display: block;
    font-size: 0.82em;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.3em;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── Required mark ── */
.reqMark {
    color: var(--brand);
    margin-left: 2px;
}

/* ── Text inputs ── */
.form-control {
    width: 100%;
    padding: 0.45em 0.6em !important;
    font-size: 0.9em;
    border: 1px solid #ccc !important;
    border-radius: 4px;
    background: #fff;
    color: #333;
    transition: border-color 0.15s;
    box-sizing: border-box !important;
}

.form-control:focus {
    outline: none !important;
    border-color: var(--brand) !important;
    box-shadow: none !important;
    /* keep same border-width so layout doesn't shift */
    border-width: 1px !important;
}

/* prevent hint text from jumping on focus */
.field-hint-inactive {
    display: block;
    font-size: 0.78em;
    color: #888;
    margin-top: 0.3em;
    font-style: italic;
    min-height: 1.2em; /* reserve space so it never causes reflow */
}

/* ── Selects ── */
.selectbox_div select {
    width: 100%;
    padding: 0.45em 0.6em;
    font-size: 0.9em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.15s;
    appearance: auto;
}

.selectbox_div select:focus {
    outline: none;
    border-color: var(--brand);
}

/* ── Textareas ── */
textarea.form-control {
    width: 100%;
    resize: vertical;
    min-height: 5em;
    font-size: 0.9em;
    font-family: inherit;
    box-sizing: border-box !important;
    border: 1px solid #ccc !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.15s !important;
    display: block !important;
}

textarea.form-control:focus {
    border: 1px solid #0693e3 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ── Override FormAssembly hint styles — lock to same appearance always ── */
.wForm form .field-hint,
.wForm form .field-hint span,
.wForm form .field-hint-inactive,
.wForm form .field-hint-inactive span,
.wForm .hintsTooltip .field-hint {
    color: #888 !important;
    font-size: 0.78em !important;
    font-style: italic !important;
    background-color: transparent !important;
    border: none !important;
    display: block !important;
    margin-top: 0.3em !important;
    min-height: 1.2em !important;
}

/* ── Collapse ALL <br> tags injected by FormAssembly ── */
.choices br,
.oneField br,
.wfSection br,
.wForm br {
    display: none !important;
}

/* ── Radio & checkbox choices wrapper ── */
.choices {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.4em !important;
}

.oneChoice {
    display: flex !important;
    align-items: center !important;
    gap: 0.5em !important;
}

/* ── Radio & checkbox inputs ── */
.oneChoice input[type="radio"],
.oneChoice input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 1.1em !important;
    height: 1.1em !important;
    border: 2px solid #aaa !important;
    background: #fff !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    position: relative !important;
    transition: border-color 0.15s !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.oneChoice input[type="radio"] {
    border-radius: 50% !important;
}

.oneChoice input[type="checkbox"] {
    border-radius: 3px !important;
}

.oneChoice input[type="radio"]:hover,
.oneChoice input[type="checkbox"]:hover {
    border-color: var(--brand) !important;
}

.oneChoice input[type="radio"]:checked,
.oneChoice input[type="checkbox"]:checked {
    border-color: var(--brand) !important;
    background: var(--brand) !important;
}

.oneChoice input[type="radio"]:checked::after {
    content: '' !important;
    display: block !important;
    width: 0.38em !important;
    height: 0.38em !important;
    background: #fff !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.oneChoice input[type="checkbox"]:checked::after {
    content: '' !important;
    display: block !important;
    width: 0.3em !important;
    height: 0.55em !important;
    border: 2px solid #fff !important;
    border-top: none !important;
    border-left: none !important;
    position: absolute !important;
    top: 40% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

.postField {
    font-size: 0.9em;
    color: #333;
    cursor: pointer;
    line-height: 1.4;
}

/* ── Inline section (Opp Details block) ── */
.inlineSection {
    background: #f5f7fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1em 1.2em;
    margin-bottom: 1em;
}

.inlineSection > .preField {
    font-size: 0.9em;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 0.6em;
}

/* ── Field hints ── */
.field-hint-inactive {
    display: block;
    font-size: 0.78em;
    color: #888;
    margin-top: 0.3em;
    font-style: italic;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .col-md-3,
    .col-md-6 {
        flex: 0 0 100%;
    }

    .wfSection {
        padding: 0.8em;
    }
}

#wFormContainerOppStatusUpdate
{
    border: 2px solid #0693e3 !important;
    border-radius: 5px !important;
}


/* ── FormAssembly error message — smaller and on-brand ── */
.wForm .errMsg,
.wForm .errMsg span,
.wForm .errFld,
.wForm .field-error,
.wForm .field-error span,
[class*="errMsg"],
.wFormContainer .errMsg {
    font-size: 0.88em !important;
    color: #c0392b !important;
    font-weight: 600 !important;
    background: transparent !important;
    border: none !important;
    padding: 0.2em 0 !important;
    margin-top: 0.2em !important;
    display: block !important;
}

/* ── Submit button — brand blue ── */
.primaryAction,
input[type="submit"].primaryAction,
#submit- {
    background: #0693e3 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0.5em 1.5em !important;
    font-size: 0.9em !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    letter-spacing: 0.5px !important;
    transition: background 0.15s !important;
    text-transform: uppercase !important;
}

.primaryAction:hover,
input[type="submit"].primaryAction:hover {
    background: #057abf !important;
}

/* ── Next Page / Prev Page buttons ── */
.wfPageNextButton,
.wfPagePrevButton,
.wfPagePreviousButton,
.wfPagingButtons input,
input[type="button"].wfPageNextButton,
input[type="button"].wfPagePrevButton,
input[type="button"].wfPagePreviousButton {
    background: #0693e3 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0.5em 1.5em !important;
    font-size: 0.9em !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    letter-spacing: 0.5px !important;
    transition: background 0.15s !important;
    text-transform: uppercase !important;
    margin-top: 0.5em !important;
}

.wfPageNextButton:hover,
.wfPagePrevButton:hover,
.wfPagePreviousButton:hover {
    background: #057abf !important;
}

#tfa_LeadDetails
{
    padding: 1em !important;
}