/* ═══════════════════════════════════════════════════════════════════
   Embeddable Forms — Self-Contained Stylesheet
   No dependency on /css/style.css — fully standalone for iframe use
   ═══════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ────────────────────────────────────────────────── */
:root {
    --e-primary: #3d6fa3;
    --e-primary-dark: #2c5282;
    --e-primary-light: #eef3fa;
    --e-accent: #c53030;
    --e-accent-dark: #a02828;
    --e-text: #2c373f;
    --e-text-light: #536270;
    --e-text-muted: #8b959d;
    --e-bg: #ffffff;
    --e-bg-alt: #f5f7f8;
    --e-border: #dde3e6;
    --e-trust-green: #22c55e;
    --e-gold: #d4942a;
    --e-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --e-radius: 8px;
}

/* ── Reset / Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: var(--e-font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--e-text);
    background: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body { padding: 8px; }

/* ── Card Container ───────────────────────────────────────────────── */
.embed-card {
    background: var(--e-bg);
    border: 1px solid var(--e-border);
    border-radius: 12px;
    padding: 1.75rem 1.5rem 1.5rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.embed-card h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--e-text);
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.embed-card .embed-subtitle {
    font-size: 0.85rem;
    color: var(--e-text-light);
    margin: 0 0 1rem;
    line-height: 1.4;
}

/* ── Header Icon ─────────────────────────────────────────────────── */
.embed-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 0.85rem;
    flex-shrink: 0;
}

.embed-header-icon svg {
    width: 26px;
    height: 26px;
}

.embed-header-icon-blue {
    background: var(--e-primary-light);
    color: var(--e-primary);
}

.embed-header-icon-red {
    background: #fef2f2;
    color: var(--e-accent);
}

.embed-header-icon-green {
    background: #f0fdf4;
    color: var(--e-trust-green);
}

.embed-header-icon-gold {
    background: #fef9ee;
    color: var(--e-gold);
}

.embed-header-icon-navy {
    background: #e8edf4;
    color: #1a365d;
}

/* ── Stat Row (compact trust badges under subtitle) ──────────────── */
.embed-stat-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.embed-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--e-bg-alt);
    color: var(--e-text-light);
    border: 1px solid var(--e-border);
}

.embed-stat-pill svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.embed-stat-pill-green { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.embed-stat-pill-blue { color: var(--e-primary); border-color: #bfdbfe; background: var(--e-primary-light); }
.embed-stat-pill-gold { color: #92400e; border-color: #fde68a; background: #fffbeb; }

/* ── Form Elements ────────────────────────────────────────────────── */
.embed-form input[type="text"],
.embed-form input[type="email"],
.embed-form input[type="tel"],
.embed-form select,
.embed-form textarea {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--e-border);
    border-radius: 6px;
    font-family: var(--e-font);
    font-size: 0.9rem;
    color: var(--e-text);
    background: var(--e-bg);
    margin-bottom: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.embed-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23536270' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.embed-form textarea {
    resize: vertical;
    min-height: 70px;
}

.embed-form input:focus,
.embed-form select:focus,
.embed-form textarea:focus {
    outline: none;
    border-color: var(--e-primary);
    box-shadow: 0 0 0 3px rgba(61, 111, 163, 0.12);
}

.embed-form input::placeholder,
.embed-form textarea::placeholder {
    color: var(--e-text-muted);
}

/* Error state */
.embed-form .field-error {
    border-color: var(--e-accent) !important;
    box-shadow: 0 0 0 2px rgba(197, 48, 48, 0.12) !important;
}

.embed-form .form-field-error {
    color: var(--e-accent);
    font-size: 0.75rem;
    margin: -6px 0 8px;
    font-weight: 500;
}

/* Row (2-column grid) */
.embed-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── Input with icon ──────────────────────────────────────────────── */
.embed-input-wrap {
    position: relative;
    margin-bottom: 10px;
}

.embed-input-wrap input,
.embed-input-wrap select {
    margin-bottom: 0;
    padding-left: 38px;
}

.embed-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--e-text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.embed-input-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.embed-input-wrap input:focus ~ .embed-input-icon,
.embed-input-wrap select:focus ~ .embed-input-icon {
    color: var(--e-primary);
}

/* ── Submit Button ────────────────────────────────────────────────── */
.embed-form button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 13px 16px;
    background: var(--e-accent);
    color: #fff;
    font-family: var(--e-font);
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 4px;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(197, 48, 48, 0.25);
}

.embed-form button[type="submit"]:hover {
    background: var(--e-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(197, 48, 48, 0.3);
}

.embed-form button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(197, 48, 48, 0.2);
}

.embed-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.embed-form button[type="submit"] svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ── Trust Signals ────────────────────────────────────────────────── */
.form-trust-signals {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0;
}

.form-trust-signal {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--e-text-muted);
    font-weight: 500;
}

.form-trust-signal svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ── Disclaimer ───────────────────────────────────────────────────── */
.form-disclaimer {
    font-size: 0.7rem;
    color: var(--e-text-muted);
    margin-top: 0.75rem;
    line-height: 1.4;
    text-align: center;
}

/* ── Error Banner ─────────────────────────────────────────────────── */
.embed-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--e-accent);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Thank You Screen ─────────────────────────────────────────────── */
.embed-thanks {
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.embed-thanks-icon {
    margin-bottom: 1rem;
}

.embed-thanks h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--e-text);
    margin-bottom: 0.5rem;
}

.embed-thanks p {
    font-size: 0.9rem;
    color: var(--e-text-light);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.embed-thanks-phone {
    margin-top: 1rem;
}

.embed-thanks-phone a {
    color: var(--e-primary);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.embed-thanks-phone a:hover { text-decoration: underline; }

.embed-thanks-trust {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--e-border);
}

.embed-thanks-trust span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--e-text-light);
}

.embed-thanks-firm {
    font-size: 0.7rem;
    color: var(--e-text-muted);
    margin-top: 1rem;
}

/* ── Badge ────────────────────────────────────────────────────────── */
.embed-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.embed-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.embed-badge-green {
    background: var(--e-trust-green);
    color: #fff;
}

.embed-badge-red {
    background: var(--e-accent);
    color: #fff;
}

.embed-badge-blue {
    background: var(--e-primary);
    color: #fff;
}

.embed-badge-gold {
    background: var(--e-gold);
    color: #fff;
}

/* ── Feature List ─────────────────────────────────────────────────── */
.embed-features {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1rem;
}

.embed-features li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 8px;
    font-size: 0.82rem;
    color: var(--e-text-light);
    line-height: 1.4;
}

.embed-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2322c55e'%3E%3Cpath d='M6.5 11.5L3.5 8.5l1-1L6.5 9.5l5-5 1 1z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ── Attorney Bio Card ────────────────────────────────────────────── */
.embed-bio-card {
    overflow: visible;
}

.embed-bio-card .embed-bio-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, var(--e-primary) 0%, var(--e-primary-dark) 100%);
    border-radius: 12px 12px 0 0;
}

.embed-bio {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    padding-top: 20px;
}

.embed-bio-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    margin-bottom: 0.75rem;
    background: var(--e-bg-alt);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.embed-bio-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.embed-bio-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--e-text);
    margin-bottom: 0.15rem;
}

.embed-bio-title {
    font-size: 0.8rem;
    color: var(--e-text-light);
    margin-bottom: 0.75rem;
}

.embed-bio-stats {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.embed-bio-stat {
    background: var(--e-primary-light);
    border: 1px solid rgba(61, 111, 163, 0.15);
    border-radius: 8px;
    padding: 8px 14px;
    text-align: center;
    min-width: 70px;
}

.embed-bio-stat strong {
    display: block;
    font-size: 0.9rem;
    color: var(--e-primary-dark);
    font-weight: 800;
}

.embed-bio-stat span {
    font-size: 0.6rem;
    color: var(--e-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

/* ── Book Offer Layout ────────────────────────────────────────────── */
.embed-book-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
}

.embed-book-cover {
    width: 120px;
    height: auto;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: perspective(400px) rotateY(-4deg);
    transition: transform 0.3s ease;
}

.embed-book-cover:hover {
    transform: perspective(400px) rotateY(0deg);
}

.embed-book-cover img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* ── Quiz / Multi-Step ────────────────────────────────────────────── */
.embed-quiz-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 1.25rem;
}

.embed-quiz-progress .step-dot {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--e-border);
    transition: background 0.3s;
}

.embed-quiz-progress .step-dot.active {
    background: var(--e-primary);
}

.embed-quiz-progress .step-dot.completed {
    background: var(--e-trust-green);
}

.embed-quiz-step {
    display: none;
}

.embed-quiz-step.active {
    display: block;
    animation: embedFadeIn 0.3s ease;
}

.embed-quiz-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--e-text);
    margin-bottom: 0.75rem;
}

.embed-quiz-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--e-border);
    border-radius: 8px;
    background: var(--e-bg);
    font-family: var(--e-font);
    font-size: 0.85rem;
    color: var(--e-text);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
    margin-bottom: 8px;
    text-align: left;
    font-weight: 500;
}

.embed-quiz-option:hover {
    border-color: var(--e-primary);
    background: var(--e-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(61, 111, 163, 0.1);
}

.embed-quiz-option.selected {
    border-color: var(--e-primary);
    background: var(--e-primary-light);
    box-shadow: 0 0 0 3px rgba(61, 111, 163, 0.1);
}

.embed-quiz-option .radio-circle {
    width: 18px;
    height: 18px;
    border: 2px solid var(--e-border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s;
}

.embed-quiz-option.selected .radio-circle {
    border-color: var(--e-primary);
}

.embed-quiz-option.selected .radio-circle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--e-primary);
}

/* Quiz result */
.embed-quiz-result {
    text-align: center;
    padding: 1.25rem 0.5rem 0.75rem;
    background: linear-gradient(180deg, #f0fdf4 0%, transparent 100%);
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.embed-quiz-result .result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--e-trust-green);
    margin: 0 auto 0.75rem;
    animation: resultPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.embed-quiz-result .result-icon svg {
    width: 22px;
    height: 22px;
}

@keyframes resultPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.embed-quiz-result .result-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--e-trust-green);
    color: #fff;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.embed-quiz-result h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.embed-quiz-result p {
    font-size: 0.85rem;
    color: var(--e-text-light);
    margin-bottom: 1rem;
}

@keyframes embedFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Urgency Banner ───────────────────────────────────────────────── */
.embed-urgency-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--e-accent);
}

.embed-urgency-banner svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.embed-urgency-banner .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--e-accent);
    animation: urgencyPulse 1.5s ease-in-out infinite;
}

@keyframes urgencyPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ── Firm Line ────────────────────────────────────────────────────── */
.embed-firm-line {
    font-size: 0.7rem;
    color: var(--e-text-muted);
    text-align: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--e-border);
}

.embed-firm-line a {
    color: var(--e-primary);
    text-decoration: none;
}

.embed-firm-line a:hover { text-decoration: underline; }


/* ═══════════════════════════════════════════════════════════════════
   THEME VARIANTS — applied via body class
   ═══════════════════════════════════════════════════════════════════ */

/* Standard Consultation — light gray bg, blue gradient top */
.embed-type-standard-consultation { background: var(--e-bg-alt); }
.embed-type-standard-consultation .embed-card {
    border-color: rgba(61, 111, 163, 0.2);
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--e-primary) 0%, #5b8ec9 100%) 1;
    border-image-slice: 1;
}

/* Urgent Case Review — red accent with gradient */
.embed-type-urgent-case-review .embed-card {
    border-color: rgba(197, 48, 48, 0.2);
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--e-accent) 0%, #e05252 100%) 1;
}
.embed-type-urgent-case-review .embed-card h2 { color: var(--e-accent); }

/* Veterans — patriotic blue/gold gradient */
.embed-type-veterans-contact { background: #f0f4f8; }
.embed-type-veterans-contact .embed-card {
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #1a365d 0%, var(--e-gold) 100%) 1;
}
.embed-type-veterans-contact .embed-card h2 { color: #1a365d; }
.embed-type-veterans-contact .embed-form button[type="submit"] { background: #1a365d; box-shadow: 0 2px 8px rgba(26, 54, 93, 0.3); }
.embed-type-veterans-contact .embed-form button[type="submit"]:hover { background: #0f2440; box-shadow: 0 4px 14px rgba(26, 54, 93, 0.35); }

/* Family — warm compassionate green gradient */
.embed-type-family-contact { background: #faf9f6; }
.embed-type-family-contact .embed-card {
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #38a169 0%, #68d391 100%) 1;
}
.embed-type-family-contact .embed-form button[type="submit"] { background: #38a169; box-shadow: 0 2px 8px rgba(56, 161, 105, 0.3); }
.embed-type-family-contact .embed-form button[type="submit"]:hover { background: #2f855a; box-shadow: 0 4px 14px rgba(56, 161, 105, 0.35); }

/* Callback — minimal, no border, subtle shadow */
.embed-type-callback-request .embed-card { border: none; box-shadow: 0 2px 16px rgba(0,0,0,0.08); }

/* Free Meso Guide — green gradient */
.embed-type-free-meso-guide .embed-card {
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--e-trust-green) 0%, #4ade80 100%) 1;
}

/* Free Veterans Guide — blue/gold */
.embed-type-free-veterans-guide { background: #f0f4f8; }
.embed-type-free-veterans-guide .embed-card {
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #1a365d 0%, var(--e-gold) 100%) 1;
}
.embed-type-free-veterans-guide .embed-form button[type="submit"] { background: #1a365d; box-shadow: 0 2px 8px rgba(26, 54, 93, 0.3); }
.embed-type-free-veterans-guide .embed-form button[type="submit"]:hover { background: #0f2440; }

/* Bio cards — primary gradient header */
.embed-type-bio-paul-danziger .embed-card,
.embed-type-bio-rod-de-llano .embed-card {
    border-top: none;
    padding-top: 0;
}

/* Settlement Calculator — green accent */
.embed-type-settlement-calculator { background: var(--e-bg-alt); }
.embed-type-settlement-calculator .embed-card {
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--e-trust-green) 0%, #4ade80 100%) 1;
}
.embed-type-settlement-calculator .embed-form button[type="submit"] { background: var(--e-trust-green); box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3); }
.embed-type-settlement-calculator .embed-form button[type="submit"]:hover { background: #16a34a; }

/* Exposure Risk — gold accent */
.embed-type-exposure-risk-checker { background: var(--e-bg-alt); }
.embed-type-exposure-risk-checker .embed-card {
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--e-gold) 0%, #e5a73b 100%) 1;
}
.embed-type-exposure-risk-checker .embed-form button[type="submit"] { background: var(--e-gold); box-shadow: 0 2px 8px rgba(212, 148, 42, 0.3); }
.embed-type-exposure-risk-checker .embed-form button[type="submit"]:hover { background: #b07a22; }


/* ── Dark Consultation Card ───────────────────────────────────────── */
.embed-type-dark-consultation { background: transparent; }

.embed-dark-card {
    border: none;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.embed-dark-header {
    background: linear-gradient(135deg, #0b1a2e 0%, #1a365d 50%, #2c5282 100%);
    color: #fff;
    padding: 1.75rem 1.5rem 1.25rem;
    text-align: center;
}

.embed-dark-header svg {
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.embed-dark-header h2 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.embed-dark-header p {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin: 0;
}

.embed-dark-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.embed-dark-stats {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.embed-dark-stat {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    background: var(--e-primary-light);
    border-radius: 8px;
    border: 1px solid rgba(61, 111, 163, 0.12);
}

.embed-dark-stat strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--e-primary-dark);
}

.embed-dark-stat span {
    font-size: 0.6rem;
    color: var(--e-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

/* ── Compensation Banner Card ────────────────────────────────────── */
.embed-type-compensation-banner { background: transparent; }

.embed-banner-card {
    border: none;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.embed-banner-top {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    color: #fff;
    padding: 1.5rem;
}

.embed-banner-amount {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.embed-banner-big {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.embed-banner-small {
    font-size: 0.75rem;
    opacity: 0.85;
    font-weight: 500;
}

.embed-banner-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.embed-banner-hl {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0.9;
}

.embed-banner-form-area {
    padding: 1.25rem 1.5rem 1.5rem;
}

.embed-banner-form-area h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--e-text);
}

/* ── Trust Fund Checker ──────────────────────────────────────────── */
.embed-type-trust-fund-checker { background: var(--e-bg-alt); }
.embed-type-trust-fund-checker .embed-card {
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #15803d 0%, var(--e-trust-green) 50%, #4ade80 100%) 1;
}
.embed-type-trust-fund-checker .embed-form button[type="submit"] { background: #15803d; box-shadow: 0 2px 8px rgba(21, 128, 61, 0.3); }
.embed-type-trust-fund-checker .embed-form button[type="submit"]:hover { background: #166534; }


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — forms must work from 300px to 600px
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 400px) {
    body { padding: 4px; }
    .embed-card { padding: 1rem; }
    .embed-card h2 { font-size: 1.1rem; }
    .embed-row { grid-template-columns: 1fr; gap: 0; }
    .embed-bio-stats { gap: 0.4rem; }
    .embed-thanks-trust { flex-direction: column; gap: 0.4rem; }
}
