body {
    margin: 0;
    background: #f3f4f6;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

html.embed-lead-iframe,
html.embed-lead-iframe body {
    overflow-x: hidden;
    overflow-y: visible;
    height: auto;
    min-height: 0;
}

html.embed-lead-iframe .embed-lead-main .embed-actions,
html.embed-lead-iframe .embed-lead-main.embed-step-packs-active .embed-actions {
    position: static;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    box-shadow: none;
}

html.embed-lead-iframe .embed-lead-main .embed-lead-step.active,
html.embed-lead-iframe .embed-lead-main.embed-step-packs-active #embed-step-packs {
    padding-bottom: 0;
}

.embed-lead-root {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
    background: transparent;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    box-sizing: border-box;
    overflow-x: clip;
}

.embed-lead-root *,
.embed-lead-root *::before,
.embed-lead-root *::after {
    box-sizing: border-box;
}

.embed-lead-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: stretch;
}

.embed-lead-main {
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.embed-lead-sidebar {
    position: relative;
    top: auto;
    align-self: start;
}

.embed-sidebar-actions {
    margin-top: 1rem;
}

.embed-sidebar-actions[hidden] {
    display: none !important;
}

.embed-sidebar-actions .embed-actions {
    position: static;
    margin: 0;
    padding: 1rem 0 0;
    border-top: 1px solid #e5e7eb;
    box-shadow: none;
    background: transparent;
}

@media (min-width: 901px) {
    .embed-lead-layout {
        overflow: hidden;
    }

    .embed-lead-layout--packs-actions #embed-step-packs {
        padding-bottom: 0;
    }

    .embed-sidebar-actions .embed-actions {
        flex-direction: column-reverse;
        gap: 0.65rem;
    }

    .embed-sidebar-actions .embed-btn {
        width: 100%;
        justify-content: center;
    }

    .embed-lead-sidebar.embed-lead-sidebar--floating {
        z-index: 5;
        will-change: transform;
    }
}

.embed-sidebar-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.embed-sidebar-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.embed-sidebar-header h1 {
    font-size: 1.125rem;
    margin: 0 0 0.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.embed-sidebar-header p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.45;
}

.embed-sidebar-customer {
    margin-top: 0.75rem !important;
    font-weight: 600;
    color: var(--embed-primary, #2563eb) !important;
}

.embed-lead-header {
    margin-bottom: 1.5rem;
}

.embed-lead-logo {
    max-height: 48px;
    max-width: 200px;
    margin-bottom: 0.75rem;
    display: block;
}

.embed-lead-header h1 {
    font-size: 1.5rem;
    margin: 0 0 0.25rem;
    font-weight: 600;
}

.embed-lead-header p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.embed-lead-progress {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.embed-lead-progress-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.embed-lead-progress-item.upcoming {
    opacity: 0.55;
}

.embed-lead-progress-item.active {
    background: color-mix(in srgb, var(--embed-primary, #2563eb) 10%, #fff);
    border-color: color-mix(in srgb, var(--embed-primary, #2563eb) 25%, #fff);
}

.embed-lead-progress-item.done .embed-lead-progress-icon {
    color: var(--embed-primary, #2563eb);
}

.embed-lead-progress-item.done {
    cursor: pointer;
}

.embed-lead-progress-item.done:focus-visible {
    outline: 2px solid var(--embed-primary, #2563eb);
    outline-offset: 2px;
}

.embed-mobile-stepbar {
    display: none;
}

.embed-mobile-step-dots {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 0.65rem;
    padding: 0;
}

.embed-mobile-step-dot {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: default;
    font-family: inherit;
}

.embed-mobile-step-dot::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    position: relative;
    z-index: 1;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.embed-mobile-step-dot:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    transform: translateY(-50%);
    z-index: 0;
}

.embed-mobile-step-dot.done::before,
.embed-mobile-step-dot.active::before {
    background: var(--embed-primary, #2563eb);
}

.embed-mobile-step-dot.active::before {
    transform: scale(1.15);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--embed-primary, #2563eb) 22%, white);
}

.embed-mobile-step-dot.done:not(:last-child)::after {
    background: color-mix(in srgb, var(--embed-primary, #2563eb) 45%, #e5e7eb);
}

.embed-mobile-step-dot.done {
    cursor: pointer;
}

.embed-mobile-step-dot.done:focus-visible {
    outline: 2px solid var(--embed-primary, #2563eb);
    outline-offset: 2px;
    border-radius: 999px;
}

.embed-mobile-step-dot.upcoming {
    cursor: default;
}

.embed-lead-progress-icon {
    flex: 0 0 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1rem;
    color: #9ca3af;
}

.embed-lead-progress-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.embed-lead-progress-item.active .embed-lead-progress-icon {
    color: var(--embed-primary, #2563eb);
}

.embed-lead-progress-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.embed-lead-progress-label {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.embed-lead-progress-item.active .embed-lead-progress-label {
    color: #111827;
}

.embed-lead-progress-meta {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.35;
    word-break: break-word;
}

.embed-lead-progress-meta[hidden] {
    display: none;
}

.embed-lead-layout--success {
    grid-template-columns: 1fr;
}

.embed-lead-layout--success .embed-lead-sidebar {
    display: none;
}

.embed-lead-layout--success .embed-lead-main {
    max-width: 720px;
    margin: 0 auto;
}

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

.embed-lead-step.active {
    display: block;
}

.embed-lead-step h2 {
    font-size: 1.75rem;
    margin: 0 0 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.embed-field {
    margin-bottom: 1rem;
}

.embed-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.embed-field input,
.embed-field select,
.embed-field textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.embed-field textarea {
    min-height: 80px;
    resize: vertical;
}

.embed-field small {
    display: block;
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.8rem;
}

.embed-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.embed-callback-wrap {
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .embed-lead-root {
        padding: 0.75rem;
    }

    .embed-lead-layout {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .embed-lead-sidebar {
        position: static;
        order: -1;
    }

    .embed-sidebar-card {
        padding: 0.85rem 1rem;
    }

    .embed-sidebar-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .embed-sidebar-header h1 {
        font-size: 1rem;
    }

    .embed-sidebar-header p:not(.embed-sidebar-customer) {
        display: none;
    }

    .embed-lead-main {
        padding: 1rem;
        border-radius: 10px;
    }

    .embed-mobile-stepbar {
        display: block;
        margin: 0 0 1rem;
        padding: 0.75rem 0.85rem;
        border-radius: 8px;
        background: color-mix(in srgb, var(--embed-primary, #2563eb) 8%, #fff);
        border: 1px solid color-mix(in srgb, var(--embed-primary, #2563eb) 18%, #fff);
    }

    .embed-mobile-stepbar-count {
        margin: 0 0 0.2rem;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #6b7280;
    }

    .embed-mobile-stepbar-label {
        margin: 0;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.3;
        color: #111827;
    }

    .embed-lead-main .embed-actions {
        position: sticky;
        bottom: 0;
        z-index: 20;
        background: #fff;
        margin-left: -1rem;
        margin-right: -1rem;
        margin-bottom: -1rem;
        padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    }

    .embed-lead-main .embed-lead-step.active {
        padding-bottom: 4.75rem;
    }

    .embed-lead-main.embed-step-packs-active .embed-actions {
        margin-left: -1rem;
        margin-right: -1rem;
        margin-bottom: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    }

    .embed-lead-main.embed-step-packs-active #embed-step-packs {
        padding-bottom: 5rem;
    }

    .embed-lead-progress {
        display: none;
    }

    .embed-lead-step h2 {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }

    .embed-field input,
    .embed-field select,
    .embed-field textarea {
        font-size: 16px;
    }

    .embed-btn {
        min-height: 44px;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .embed-segmented-option {
        min-height: 44px;
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .embed-measure-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .embed-map {
        height: 220px;
    }

    .embed-pack-pricing {
        flex-direction: column;
    }

    .embed-pack-finance,
    .embed-pack-total {
        min-width: 0;
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 560px) {
    .embed-lead-root {
        padding: 0.5rem;
    }

    .embed-row {
        grid-template-columns: 1fr;
    }

    .embed-measures-alt-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .embed-measures-alt-actions .embed-btn-link {
        text-align: left;
        padding-left: 0;
        padding-right: 0;
    }

    .embed-measure-grid {
        grid-template-columns: 1fr 1fr;
    }

    .embed-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .embed-actions .embed-btn {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .embed-actions .embed-btn-secondary {
        margin-top: 0.15rem;
    }
}

.embed-step-intro {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.embed-step-hint {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.embed-measure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.embed-measure-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    user-select: none;
}

.embed-measure-card:hover {
    border-color: var(--embed-primary, #2563eb);
}

.embed-measure-card.selected {
    border-color: var(--embed-primary, #2563eb);
    background: color-mix(in srgb, var(--embed-primary, #2563eb) 8%, white);
}

.embed-measure-card.suggested {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--embed-primary, #2563eb) 35%, white);
}

.embed-measure-card.suggested::after {
    content: 'Often paired';
    display: block;
    margin-top: -0.15rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--embed-primary, #2563eb);
    letter-spacing: 0.01em;
}

.embed-measure-card input {
    display: none;
}

.embed-measure-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--embed-primary, #2563eb) 10%, white);
    color: var(--embed-primary, #2563eb);
}

.embed-measure-card-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.embed-measure-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
}

.embed-measure-card-title {
    display: block;
    font-size: 0.95rem;
    line-height: 1.25;
}

.embed-measure-card-benefit {
    display: block;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #6b7280;
    font-weight: 400;
}

.embed-measure-card-badge {
    display: inline-block;
    align-self: center;
    margin-top: 0.15rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--embed-primary, #2563eb) 12%, white);
    color: var(--embed-primary, #2563eb);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.embed-measures-selection {
    margin: 0.85rem 0 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--embed-primary, #2563eb);
}

.embed-measures-alt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.embed-address-status {
    margin: 0 0 1rem;
    font-size: 0.875rem;
}

.embed-address-status.is-success {
    color: #047857;
}

.embed-address-status.is-error {
    color: #b91c1c;
}

.embed-address-status.is-loading {
    color: #6b7280;
}

.embed-epc-status {
    margin: 0 0 1rem;
    font-size: 0.875rem;
}

.embed-epc-status.is-success {
    color: #047857;
}

.embed-epc-status.is-loading {
    color: #6b7280;
}

.embed-solar-status {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    color: #047857;
}

.embed-solar-status.is-muted {
    color: #6b7280;
}

.embed-solar-prefill-note {
    margin: 0 0 1rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    color: #065f46;
    background: #ecfdf5;
    border-radius: 6px;
    border: 1px solid #a7f3d0;
}

.embed-battery-capacity-note {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.embed-energy-spend-feedback {
    margin: 0.25rem 0 0;
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    color: #065f46;
    background: #ecfdf5;
    border-radius: 6px;
    border: 1px solid #a7f3d0;
}

.embed-map {
    height: 260px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    margin-top: 0.5rem;
}

.embed-pack-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.embed-pack-recommendation {
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.embed-pack-recommendation-body p {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
}

.embed-pack-recommendation-capacity {
    font-size: 0.95rem;
    color: #111827;
}

.embed-pack-recommendation-sizes {
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}

.embed-pack-recommendation-sizes li {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #111827;
    line-height: 1.4;
}

.embed-pack-recommendation-sizes li:last-child {
    margin-bottom: 0;
}

.embed-pack-recommendation-tip {
    margin-top: 0.75rem !important;
    color: #6b7280 !important;
}

.embed-pack-filter-battery-link {
    padding: 0;
    text-align: left;
}

.embed-pack-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.embed-pack-toolbar-sort-only {
    grid-template-columns: 1fr;
    max-width: 240px;
}

.embed-pack-toolbar-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

.embed-pack-toolbar-sort {
    grid-column: 1 / -1;
    max-width: 240px;
}

.embed-segmented-control {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.embed-segmented-option {
    padding: 0.45rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f9fafb;
    color: #374151;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.2;
}

.embed-segmented-option.active {
    background: var(--embed-primary, #2563eb);
    border-color: var(--embed-primary, #2563eb);
    color: #fff;
}

.embed-pack-sort-select {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
    background: #fff;
}

.embed-pack-recommended-badge {
    background: var(--embed-primary, #2563eb);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    text-align: center;
}

.embed-pack-empty-filter {
    padding: 1.5rem;
    text-align: center;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.embed-pack-empty-filter p {
    margin: 0 0 0.5rem;
    color: #6b7280;
}

@media (max-width: 600px) {
    .embed-pack-toolbar {
        grid-template-columns: 1fr;
    }
}

.embed-pack-card {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    background: #fff;
}

.embed-pack-card-rich {
    padding: 0;
    overflow: hidden;
}

.embed-pack-card.selected {
    border-color: var(--embed-primary, #2563eb);
    box-shadow: 0 0 0 2px var(--embed-primary, #2563eb);
    background: color-mix(in srgb, var(--embed-primary, #2563eb) 6%, white);
}

.embed-pack-card-inner {
    display: grid;
    grid-template-columns: minmax(140px, 200px) 1fr;
    gap: 1rem;
    padding: 1rem;
}

@media (max-width: 600px) {
    .embed-pack-card-inner {
        grid-template-columns: 1fr;
    }
}

.embed-pack-media {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.embed-pack-hero {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #f9fafb;
    border-radius: 6px;
}

.embed-pack-hero-placeholder {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.embed-pack-thumbs {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.embed-pack-thumb {
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 0;
    background: none;
    cursor: pointer;
    width: 48px;
    height: 48px;
    overflow: hidden;
}

.embed-pack-thumb.active {
    border-color: var(--embed-primary, #2563eb);
}

.embed-pack-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.embed-pack-brand {
    max-height: 32px;
    max-width: 140px;
    margin-bottom: 0.35rem;
    display: block;
}

.embed-pack-title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
}

.embed-pack-spec-lines {
    margin: 0 0 0.5rem;
    padding-left: 1.1rem;
    font-size: 0.875rem;
    color: #374151;
}

.embed-pack-spec-lines li {
    margin-bottom: 0.15rem;
}

.embed-pack-fallback-spec {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.embed-pack-tagline {
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
    color: #374151;
}

.embed-pack-summary {
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.45;
}

.embed-pack-details {
    display: none;
}

.embed-pack-details-toggle {
    padding-left: 0;
    font-size: 0.875rem;
}

/* Pack details modal */
.embed-pack-modal {
    position: fixed;
    top: var(--embed-modal-top, 0);
    left: var(--embed-modal-left, 0);
    width: var(--embed-modal-width, 100%);
    height: var(--embed-modal-height, 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.embed-pack-modal[hidden] {
    display: none !important;
}

.embed-pack-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.embed-pack-modal-dialog {
    position: relative;
    width: min(960px, 100%);
    max-height: min(90vh, 900px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.embed-pack-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.embed-pack-modal-heading {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.embed-pack-modal-brand {
    max-height: 28px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    object-position: left center;
}

.embed-pack-modal-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.3;
    color: #111827;
}

.embed-pack-modal-close {
    flex-shrink: 0;
    border: none;
    background: #f3f4f6;
    color: #374151;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.embed-pack-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.embed-pack-modal-body {
    overflow: auto;
    padding: 1.5rem;
}

.embed-pack-modal-layout {
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 720px) {
    .embed-pack-modal {
        padding: 0.75rem;
    }

    .embed-pack-modal-layout,
    .embed-pack-modal-layout--no-gallery {
        grid-template-columns: 1fr;
    }
}

.embed-pack-modal-layout--no-gallery {
    grid-template-columns: 1fr;
}

.embed-pack-modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.embed-pack-modal-hero {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.embed-pack-modal-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.embed-pack-modal-thumb {
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 0;
    background: none;
    cursor: pointer;
    width: 56px;
    height: 56px;
    overflow: hidden;
}

.embed-pack-modal-thumb.active {
    border-color: var(--embed-primary, #2563eb);
}

.embed-pack-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.embed-pack-modal-content {
    min-width: 0;
}

.embed-pack-modal-specs {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}

.embed-pack-modal-specs li {
    font-size: 0.9375rem;
    color: #374151;
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.embed-pack-modal-tagline {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
}

.embed-pack-modal-summary {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.5;
}

.embed-pack-modal-details {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.55;
    white-space: pre-wrap;
}

.embed-pack-modal-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.embed-pack-modal-open {
    overflow: hidden;
}

.embed-pack-modal-benefits li {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    font-size: 0.9375rem;
    color: #374151;
    margin-bottom: 0.45rem;
    line-height: 1.45;
}

.embed-pack-benefits {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.embed-pack-benefits li {
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.embed-pack-check {
    color: #ea580c;
    font-weight: 700;
    flex-shrink: 0;
}

.embed-pack-footer {
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 1rem 1rem;
}

.embed-pack-savings {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ccfbf1;
    color: #115e59;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.embed-pack-savings-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #14b8a6;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
}

.embed-pack-pricing {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    flex-wrap: wrap;
}

.embed-pack-finance {
    flex: 1;
    min-width: 160px;
    background: #fef9c3;
    border-radius: 6px;
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
    color: #713f12;
}

.embed-pack-finance-monthly {
    font-size: 1rem;
    margin: 0.15rem 0;
}

.embed-pack-finance-meta {
    color: #92400e;
    font-size: 0.75rem;
}

.embed-pack-finance-link {
    display: inline-block;
    margin-top: 0.25rem;
    color: #713f12;
    font-size: 0.75rem;
}

.embed-pack-total {
    flex: 1;
    min-width: 140px;
    text-align: right;
    font-size: 0.875rem;
    color: #374151;
    align-self: center;
}

.embed-pack-total-amount {
    font-size: 1rem;
}

.embed-pack-total-note {
    font-size: 0.75rem;
    color: #6b7280;
}

.embed-pack-card h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.embed-pack-card p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.embed-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.embed-lead-main.embed-step-packs-active .embed-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: #fff;
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: -2rem;
    padding: 1rem 2rem 1.25rem;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.embed-lead-main.embed-step-packs-active #embed-step-packs {
    padding-bottom: 4.5rem;
}

.embed-btn {
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.embed-btn-primary {
    background: var(--embed-primary, #2563eb);
    color: #fff;
}

.embed-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.embed-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.embed-btn-link {
    background: transparent;
    color: var(--embed-primary, #2563eb);
    text-decoration: underline;
    padding: 0.65rem 0.5rem;
}

.embed-error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.embed-success {
    text-align: center;
    padding: 2rem 1rem;
}

.embed-success h2 {
    color: var(--embed-primary, #2563eb);
    margin-bottom: 0.5rem;
}

.embed-honeypot {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.embed-honeypot label {
    display: none;
}

.embed-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.embed-measure-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.embed-measure-section:last-child {
    border-bottom: none;
}

.embed-review-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.embed-review-section {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    background: #fafafa;
}

.embed-review-section-title {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.embed-review-rows {
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.embed-review-row {
    display: grid;
    grid-template-columns: minmax(7rem, 9rem) 1fr;
    gap: 0.5rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.embed-review-row dt {
    margin: 0;
    color: #6b7280;
    font-weight: 500;
}

.embed-review-row dd {
    margin: 0;
    color: #111827;
    font-weight: 500;
}

.embed-review-measures {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.embed-review-measure {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.9rem;
}

.embed-review-measure-name {
    font-weight: 600;
    color: #111827;
}

.embed-review-measure-detail {
    color: #4b5563;
    font-size: 0.85rem;
}

.embed-review-callback-note {
    margin: 0;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    background: color-mix(in srgb, var(--embed-primary, #2563eb) 10%, white);
    border: 1px solid color-mix(in srgb, var(--embed-primary, #2563eb) 25%, white);
    font-size: 0.9rem;
    color: #1f2937;
}

.embed-review-next-steps {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--embed-primary, #2563eb) 20%, white);
    background: color-mix(in srgb, var(--embed-primary, #2563eb) 6%, white);
}

.embed-review-next-steps-title {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.embed-review-steps-list {
    margin: 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
}

.embed-review-steps-list li::marker {
    color: var(--embed-primary, #2563eb);
    font-weight: 700;
}

.embed-review-terms {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.embed-review-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.5;
    cursor: pointer;
}

.embed-review-terms-label input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 0.2rem;
    width: 1rem;
    height: 1rem;
    accent-color: var(--embed-primary, #2563eb);
}

.embed-review-terms-label a {
    color: var(--embed-primary, #2563eb);
    text-decoration: underline;
}

.embed-review-terms-label a:hover {
    text-decoration: none;
}

.embed-review-terms.is-invalid .embed-review-terms-label {
    color: #b91c1c;
}

/* Standalone embed enquiry terms page (/embed/terms.php) */
.embed-terms-page {
    margin: 0;
    min-height: 100vh;
    background: var(--color-bg, #f9f9f9);
    color: var(--color-text, #355872);
    font-family: var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-size: var(--font-size-base, 1rem);
    line-height: var(--line-height-relaxed, 1.625);
    -webkit-font-smoothing: antialiased;
}

.embed-terms-root {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--spacing-8, 2rem) var(--spacing-5, 1.25rem) var(--spacing-12, 3rem);
}

.embed-terms-header {
    margin-bottom: var(--spacing-6, 1.5rem);
    text-align: center;
}

.embed-terms-logo {
    display: block;
    max-height: 40px;
    max-width: 180px;
    margin: 0 auto var(--spacing-5, 1.25rem);
}

.embed-terms-header h1 {
    margin: 0 0 var(--spacing-2, 0.5rem);
    font-size: var(--font-size-2xl, 1.5rem);
    font-weight: 700;
    letter-spacing: var(--letter-spacing-tight, -0.02em);
    color: var(--color-gray-800, #2a4559);
    line-height: var(--line-height-tight, 1.2);
}

.embed-terms-meta {
    margin: 0;
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--color-text-muted, #6b7c8d);
}

.embed-terms-body {
    background: #fff;
    border: 1px solid var(--color-border, rgba(53, 88, 114, 0.2));
    border-radius: var(--radius-2xl, 12px);
    padding: var(--spacing-8, 2rem);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.06));
}

.embed-terms-body h2 {
    margin: var(--spacing-8, 2rem) 0 var(--spacing-3, 0.75rem);
    font-size: var(--font-size-lg, 1.125rem);
    font-weight: 700;
    color: var(--color-primary, #355872);
    line-height: var(--line-height-snug, 1.375);
}

.embed-terms-body h2:first-child {
    margin-top: 0;
}

.embed-terms-body p {
    margin: 0 0 var(--spacing-4, 1rem);
    color: var(--color-text, #355872);
}

.embed-terms-body ul {
    margin: 0 0 var(--spacing-4, 1rem);
    padding-left: var(--spacing-6, 1.5rem);
}

.embed-terms-body li {
    margin-bottom: var(--spacing-2, 0.5rem);
    color: var(--color-text, #355872);
}

.embed-terms-body li:last-child {
    margin-bottom: 0;
}

.embed-terms-body a {
    color: var(--color-primary, #355872);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.embed-terms-body a:hover {
    color: var(--color-primary-dark, #2a4559);
}

.embed-terms-footer {
    margin-top: var(--spacing-6, 1.5rem);
    padding-top: var(--spacing-4, 1rem);
    border-top: 1px solid var(--color-border, rgba(53, 88, 114, 0.2));
    text-align: center;
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--color-text-muted, #6b7c8d);
}

.embed-terms-footer a {
    color: var(--color-primary, #355872);
    font-weight: 600;
    text-decoration: none;
}

.embed-terms-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .embed-terms-root {
        padding: var(--spacing-6, 1.5rem) var(--spacing-4, 1rem) var(--spacing-10, 2.5rem);
    }

    .embed-terms-body {
        padding: var(--spacing-5, 1.25rem);
    }

    .embed-terms-header h1 {
        font-size: var(--font-size-xl, 1.25rem);
    }
}

@media (max-width: 400px) {
    .embed-measure-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .embed-review-row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

/* Marketing information (bottom of embed form) */
.embed-marketing-info {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #eceff3;
    border-radius: 12px;
}

.embed-marketing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;
    align-items: start;
}

.embed-marketing-grid--single {
    grid-template-columns: 1fr;
}

.embed-marketing-heading {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

.embed-marketing-subheading {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

.embed-marketing-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.embed-marketing-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.embed-marketing-card-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
}

.embed-marketing-card-icon img,
.embed-marketing-card-icon svg {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.embed-marketing-card-icon--check svg {
    width: 22px;
    height: 22px;
    color: #f97316;
}

.embed-marketing-card-icon--brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.embed-marketing-card-body {
    min-width: 0;
}

.embed-marketing-card-title {
    margin: 0 0 0.2rem;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
}

.embed-marketing-card-desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #4b5563;
}

.embed-marketing-toggle-wrap {
    margin: 0.85rem 0 0;
}

.embed-marketing-toggle-link {
    padding: 0;
    border: 0;
    background: none;
    color: #111827;
    font: inherit;
    font-size: 0.875rem;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.embed-marketing-toggle-link:hover {
    color: var(--embed-primary, #2563eb);
}

.embed-marketing-not-included-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
}

@media (max-width: 900px) {
    .embed-marketing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
