/* ============================================================
BASIC FORM EMBED – scoped styling for ONE embedded Basic Form
Class hook: .basic-form-embed
Used with: Contact Request form
============================================================ */

/* ---- Theme tokens ---- */
.basic-form-embed {
    --bfe-font: Poppins, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --bfe-text: #323130;
    --bfe-blue: #0066b3;
    --bfe-blue-dark: #004f8a;
    --bfe-surface: rgba(243, 242, 241, 0.55);
    --bfe-border: rgba(0, 0, 0, 0.08);
    --bfe-field-border: rgba(50, 49, 48, 0.25);
    --bfe-field-border-hover: rgba(0, 102, 179, 0.45);
    --bfe-focus: rgba(0, 120, 212, 0.35);
    --bfe-radius: 16px;
    --bfe-field-radius: 10px;
}

/* ---- Base typography ---- */
/* .basic-form-embed,
.basic-form-embed * {
font-family: var(--bfe-font);
font-size: 14px;
color: var(--bfe-text);
} */

.basic-form-embed {
    font-family: var(--bfe-font);
    font-size: 14px;
    color: var(--bfe-text);
}

/* Ensure common text elements inherit */
.basic-form-embed p,
.basic-form-embed span,
.basic-form-embed label,
.basic-form-embed legend,
.basic-form-embed h1,
.basic-form-embed h2,
.basic-form-embed h3,
.basic-form-embed h4 {
    color: inherit;
}

/* ---- container "card" to match your pill style block ---- */
.basic-form-embed {
    border: 1px solid var(--bfe-border);
    border-radius: var(--bfe-radius);
    background: var(--bfe-surface);
    padding: 16px;
}

/* ---- Remove default fieldset/legend styling that can look like panels ---- */
.basic-form-embed fieldset {
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-inline-size: auto;
}

.basic-form-embed legend.section-title {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 0 8px 0 !important;
    background: var(--bfe-surface);
}

.basic-form-embed legend.section-title h3 {
    margin: 2px !important;
    font-size: 16px;
    font-weight: 700;
    color: #005289;
    /* background: var(--bfe-surface); */
    background: rgba(255, 255, 255, 0);
}

/* ============================================================
REMOVE FORM FIELD CONTAINER OUTLINE
Power Pages Basic Form uses <table class="section"> with <td class="cell ...">
Many portal themes apply borders/backgrounds/padding to those cells.
============================================================ */

.basic-form-embed table.section {
    width: 100%;
    background: transparent !important;
    border-collapse: separate;
    border-spacing: 0;
}

/* Remove cell containers (this is the main “remove boxes” change) */
.basic-form-embed td.cell,
.basic-form-embed td.form-control-cell,
.basic-form-embed td.picklist-cell,
.basic-form-embed td.lookup,
.basic-form-embed td.clearfix,
.basic-form-embed td.zero-cell {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;

    /* Replace “boxed cell” spacing with clean vertical rhythm */
    padding: 2px 16px 14px 2px !important;
    vertical-align: top;
}

/* Remove styling from the label wrapper that can look like a mini header box */
.basic-form-embed .table-info,
.basic-form-embed .control {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Labels */
.basic-form-embed label.field-label {
    display: block;
    margin: 0 0 6px 0 !important;
    font-weight: 600;
    color: #005289;
    border-radius: 0px;
}

/* Overall box adjustment: Rounded corners */
.basic-form-embed .crmEntityFormView {
    border-radius: 16px;
}

/* ============================================================
2) MODERN FIELD STYLING + HOVER
============================================================ */

.basic-form-embed input.form-control,
.basic-form-embed select.form-control,
.basic-form-embed select.form-select,
.basic-form-embed textarea.form-control {
    background: #fff !important;
    border: 1px solid var(--bfe-field-border) !important;
    border-radius: var(--bfe-field-radius) !important;
    box-shadow: none !important;
    padding: 10px 12px !important;
    height: auto !important;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;

    /* add an arrow (SVG) */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

}

/* Hover: subtle highlight */
.basic-form-embed input.form-control:hover,
.basic-form-embed select.form-control:hover,
.basic-form-embed select.form-select:hover,
.basic-form-embed textarea.form-control:hover {
    outline: 2px solid rgba(0, 102, 179, 0.45);
    outline-offset: 0;
    /* Use 1px to make it slightly outside */
}

/* Focus: accessible ring */
.basic-form-embed input.form-control:focus,
.basic-form-embed select.form-control:focus,
.basic-form-embed select.form-select:focus,
.basic-form-embed textarea.form-control:focus {
    outline: 2px solid var(--bfe-focus);
    outline-offset: 1px;
    border-color: rgba(0, 102, 179, 0.75) !important;
    box-shadow: none !important;
}

/* If an inline underline was set on email, normalize it */
.basic-form-embed input[type="email"] {
    text-decoration: none !important;
}

/* ============================================================
4) REQUIRED/VALIDATION indicators
============================================================ */
.basic-form-embed .validators span {
    color: #d83b01;
    /* accessible warning */
}

/* ============================================================
5) RESPONSIVE: make table-based layout behave on mobile
============================================================ */

/* Tablet and down: reduce side padding between the two columns */
@media (max-width: 992px) {

    .basic-form-embed td.cell,
    .basic-form-embed td.form-control-cell,
    .basic-form-embed td.picklist-cell,
    .basic-form-embed td.lookup {
        padding-right: 10px !important;
    }
}

/* Mobile: convert table rows/cells into block layout (single column) */
@media (max-width: 768px) {

    .basic-form-embed table.section,
    .basic-form-embed tbody,
    .basic-form-embed tr,
    .basic-form-embed td {
        display: block !important;
        width: 100% !important;
    }

    /* Remove right padding because there is no second column */
    .basic-form-embed td.cell,
    .basic-form-embed td.form-control-cell,
    .basic-form-embed td.picklist-cell,
    .basic-form-embed td.lookup,
    .basic-form-embed td.zero-cell {
        padding: 0 0 14px 0 !important;
    }

    /* hide extra empty cell column on mobile */
    .basic-form-embed td.zero-cell {
        display: none !important;
    }
}

/* ============================================================
6) hide Dashlane/autofill injected icons
============================================================ */
.basic-form-embed span[data-dashlanecreated="true"] {
    display: none !important;
}

/* ============================================================
BASIC FORM EMBED – Submit button text color
============================================================ */

/* Power Pages renders Submit as <input type="button"> */
.basic-form-embed input[type="submit"],
.basic-form-embed input[type="button"].submit-btn,
.basic-form-embed #InsertButton {
    color: #ffffff !important;
}

/* Ensure hover/focus/disabled states stay white as well */
.basic-form-embed input[type="submit"]:hover,
.basic-form-embed input[type="button"].submit-btn:hover,
.basic-form-embed #InsertButton:hover,
.basic-form-embed input[type="submit"]:focus,
.basic-form-embed input[type="button"].submit-btn:focus,
.basic-form-embed #InsertButton:focus,
.basic-form-embed input[type="submit"][disabled],
.basic-form-embed input[type="button"][disabled] {
    color: #ffffff !important;
}

.basic-form-embed #InsertButton {
    background-color: #0066b3 !important;
    border-color: #0066b3 !important;
}

.basic-form-embed #InsertButton:hover {
    background-color: #004f8a !important;
    border-color: #004f8a !important;
}