/* Embedded Google Forms — house-styled native rendering.
   Inherits input/label styling from .support-form (styles.css) so the
   form matches the ticket form in BOTH palettes; theme.css restyles
   .btn and focus states under [data-palette="house"] automatically. */

.ef-resources { margin-bottom: 28px; }
.ef-resources h2 { color: inherit; font-size: 20px; margin: 0 0 12px; }
.ef-resource-links { list-style: none; padding: 0; margin: 0 0 16px; }
.ef-resource-links a {
    display: block;
    padding: 12px 0;
    overflow-wrap: anywhere;
    text-decoration: underline;
}
.ef-resource-note { font-size: 0.875em; }
.ef-shop-tools { border: 1px solid currentColor; border-radius: 6px; padding: 0 16px; }
.ef-shop-tools summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.ef-shop-tools summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.ef-shop-tools p { margin: 0 0 16px; }
.ef-shop-tools-list { columns: 2 220px; padding-left: 24px; margin: 0 0 16px; }
.ef-shop-tools-list li { break-inside: avoid; padding: 4px 12px 4px 0; }

.ef-article-callout {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #faf8f3;
    border-left: 3px solid #fcb040;
    border-radius: 4px;
    padding: 14px 18px;
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.5;
}

.ef-article-callout i {
    color: #fcb040;
    font-size: 18px;
    margin-top: 2px;
}

.ef-article-callout__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 2px;
}

[data-palette="house"] .ef-article-callout { border-left-color: var(--nx-gold); }
[data-palette="house"] .ef-article-callout i { color: var(--nx-gold); }
[data-palette="house"] .ef-article-callout__label { color: var(--nx-gold-strong); }

.ef-form-intro {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ef-section { border: none; padding: 0; margin: 0; }

/* .btn sets display:inline-flex, which beats the UA's [hidden] rule —
   without this, Back/Submit render on every step. */
.ef-form [hidden],
.ef-nav [hidden],
.ef-section[hidden] { display: none !important; }

.ef-section-title {
    font-size: 22px;
    margin-bottom: 6px;
}

.ef-section-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    white-space: pre-line;
}

.ef-question { margin-bottom: 22px; }

.ef-question-desc {
    display: block;
    color: #888;
    font-weight: normal;
    margin: 2px 0 8px;
}

.ef-options { display: flex; flex-direction: column; gap: 8px; }

.ef-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-weight: normal;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ef-option:hover { border-color: #fcb040; }
[data-palette="house"] .ef-option:hover { border-color: var(--nx-gold); }

.ef-option input { accent-color: #fcb040; }
[data-palette="house"] .ef-option input { accent-color: var(--nx-navy); }

.ef-option:has(input:checked) {
    border-color: #fcb040;
    background: #fffaf2;
}

[data-palette="house"] .ef-option:has(input:checked) {
    border-color: var(--nx-gold);
    background: var(--nx-cream);
}

.ef-question--missing label { color: #b91c1c; }
.ef-question--missing input,
.ef-question--missing textarea,
.ef-question--missing select,
.ef-question--missing .ef-option { border-color: #b91c1c !important; }

.ef-static {
    background: #f7f7f7;
    border-radius: 5px;
    padding: 12px 16px;
    margin-bottom: 22px;
    font-size: 14px;
}

.ef-static p { margin: 6px 0 0; color: #666; white-space: pre-line; }

.ef-nav {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #eee;
}

.ef-nav .ef-back { background: #6c757d; }

.ef-fallback {
    margin-top: 26px;
    font-size: 13px;
    color: #888;
}

/* Unavailable / handoff card (sign-in required, fetch failure) */
.ef-unavailable {
    text-align: center;
    padding: 40px 24px;
    background: #f9f9f9;
    border-radius: 6px;
}

.ef-unavailable i {
    font-size: 42px;
    color: #ccc;
    margin-bottom: 16px;
}

.ef-unavailable p {
    font-size: 15px;
    color: #666;
    margin-bottom: 14px;
}

.ef-unavailable__hint {
    font-size: 13px !important;
    color: #999 !important;
}

/* Technician-or-higher guidance shown only for the Additional Autho form. */
.ef-autho-guidance {
    margin: 0 0 28px;
    padding: 20px;
    background: #faf8f3;
    border: 1px solid #e3e1da;
    border-radius: 6px;
}

.ef-autho-guidance h2 {
    margin: 0 0 18px;
    color: #1e1e1e;
    font-size: 20px;
}

.ef-autho-guidance__group + .ef-autho-guidance__group {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e3e1da;
}

.ef-autho-guidance h3 {
    margin: 0;
    color: #33414f;
    font-size: 15px;
}

.ef-autho-guidance ul {
    margin: 9px 0 0 20px;
    padding: 0;
}

.ef-autho-guidance li {
    margin-bottom: 8px;
    color: #3f3f3f;
    line-height: 1.55;
}

.ef-autho-guidance li:last-child { margin-bottom: 0; }

[data-palette="house"] .ef-autho-guidance {
    background: var(--nx-cream);
    border-color: var(--nx-gold);
}

[data-palette="house"] .ef-autho-guidance h2,
[data-palette="house"] .ef-autho-guidance h3,
[data-palette="house"] .ef-autho-guidance strong {
    color: var(--nx-navy);
}

/* ---- Helpful Forms accordion ------------------------------------------ */

.ef-accordion { display: flex; flex-direction: column; gap: 12px; }

.ef-acc-item {
    border: 1px solid #e3e1da;
    border-left: 3px solid #fcb040;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

[data-palette="house"] .ef-acc-item { border-left-color: var(--nx-gold); }

.ef-acc-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.ef-acc-toggle:hover { background: #faf8f3; }

.ef-acc-toggle__icon { font-size: 20px; color: #fcb040; }
[data-palette="house"] .ef-acc-toggle__icon { color: var(--nx-gold); }

.ef-acc-toggle__text { flex: 1; }

.ef-acc-toggle__text strong {
    display: block;
    font-size: 16px;
    color: #1e1e1e;
}

[data-palette="house"] .ef-acc-toggle__text strong { color: var(--nx-navy); }

.ef-acc-toggle__text small {
    display: block;
    color: #777;
    font-size: 13px;
    margin-top: 2px;
}

/* [2026-06-18] TPA / vendor codes line, under the short description. */
.ef-tpa-codes {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6a6a6a;
}
.ef-tpa-codes .fa-tag { margin-right: 5px; opacity: 0.55; }
.ef-tpa-codes__label { margin-right: 4px; }
.ef-tpa-chip {
    display: inline-block;
    padding: 1px 8px;
    margin: 2px 4px 0 0;
    background: #eef1f6;
    border-radius: 10px;
    font-size: 11px;
    color: #33414f;
    white-space: nowrap;
}
[data-palette="house"] .ef-tpa-chip { background: rgba(194, 162, 90, 0.16); color: var(--nx-navy); }

.ef-acc-toggle__chev {
    color: #999;
    transition: transform 0.2s ease;
}

.ef-acc-item--open .ef-acc-toggle__chev { transform: rotate(180deg); }

.ef-acc-body {
    padding: 6px 22px 24px;
    border-top: 1px solid #f0eee8;
}

.ef-acc-body[hidden] { display: none !important; }

@media (max-width: 600px) {
    .ef-autho-guidance { padding: 16px; }
}
