.cec-section {
    background: #fff5f5;
    padding: 72px 0;
}

.cec-section-inner {
    align-items: center;
    display: grid;
    gap: 48px;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    margin: 0 auto;
    max-width: 1160px;
    padding: 0 20px;
}

.cec-eyebrow {
    color: #c9191d;
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.cec-section h2 {
    color: #171717;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.14;
    margin: 0 0 18px;
}

.cec-section p {
    color: #5e6671;
    font-size: 17px;
    line-height: 1.75;
    margin: 0 0 22px;
}

.cec-section-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.cec-section-points span {
    background: #fff;
    border: 1px solid rgba(201, 25, 29, .16);
    border-radius: 999px;
    color: #252a31;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 14px;
}

.cec-open-modal,
.cec-send-lead {
    align-items: center;
    background: #c9191d;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 16px;
    font-weight: 800;
    gap: 9px;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
}

.cec-open-modal:hover,
.cec-send-lead:hover {
    background: #a91418;
    color: #fff;
}

.cec-send-lead:disabled {
    cursor: wait;
    opacity: .72;
}

.cec-section-preview {
    background: #171717;
    border-radius: 8px;
    box-shadow: 0 24px 50px rgba(17, 24, 39, .16);
    min-height: 310px;
    overflow: hidden;
    padding: 34px;
    position: relative;
}

.cec-section-preview:before {
    background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0));
    content: "";
    inset: 0;
    position: absolute;
}

.cec-preview-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    position: relative;
}

.cec-preview-card span {
    color: #c9191d;
    display: block;
    font-weight: 800;
    margin-bottom: 12px;
}

.cec-preview-card strong {
    color: #171717;
    display: block;
    font-size: 30px;
    margin-bottom: 10px;
}

.cec-preview-card small {
    color: #69717d;
}

.cec-preview-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
    position: relative;
}

.cec-preview-list span {
    background: rgba(255,255,255,.22);
    border-radius: 999px;
    display: block;
    height: 11px;
}

.cec-preview-list span:nth-child(2) {
    width: 82%;
}

.cec-preview-list span:nth-child(3) {
    width: 64%;
}

.cec-modal {
    align-items: center;
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 99999;
}

.cec-modal.is-open {
    display: flex;
}

.cec-modal.cec-inline-highlight .cec-modal-dialog {
    box-shadow: 0 0 0 4px rgba(201, 25, 29, .3), 0 30px 80px rgba(0,0,0,.22);
}

.cec-modal-backdrop {
    background: rgba(15, 18, 24, .72);
    inset: 0;
    position: absolute;
}

.cec-modal-dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,.22);
    max-height: calc(100vh - 48px);
    max-width: 1120px;
    overflow: auto;
    position: relative;
    width: 100%;
}

.cec-modal-close {
    align-items: center;
    background: #f4f4f5;
    border: 0;
    border-radius: 50%;
    color: #555;
    cursor: pointer;
    display: flex;
    font-size: 30px;
    height: 42px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 42px;
    z-index: 2;
}

.cec-modal-head {
    align-items: center;
    background: #f7f7f8;
    border-bottom: 1px solid #eceef1;
    display: flex;
    gap: 14px;
    padding: 24px 74px 22px 28px;
}

.cec-modal-head .dashicons {
    color: #c9191d;
    font-size: 30px;
    height: 30px;
    width: 30px;
}

.cec-inline-icon {
    display: inline-flex;
    flex: 0 0 auto;
    height: 24px;
    width: 24px;
}

.cec-modal-head .cec-inline-icon {
    color: #c9191d;
    height: 30px;
    width: 30px;
}

.cec-inline-icon svg {
    display: block;
    height: 100%;
    width: 100%;
}

.cec-inline-icon rect,
.cec-inline-icon path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.cec-modal-head h2 {
    color: #191d23;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 5px;
}

.cec-modal-head p {
    color: #6b7280;
    margin: 0;
}

.cec-modal-body {
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, .95fr) minmax(360px, 1fr);
    padding: 30px;
}

.cec-config h3 {
    color: #191d23;
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 16px;
}

.cec-config label,
.cec-lead-form label {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
}

.cec-config label span,
.cec-lead-form label span {
    color: #242a31;
    font-weight: 800;
}

.cec-config select,
.cec-lead-form select,
.cec-lead-form input,
.cec-lead-form textarea {
    background: #fff;
    border: 1px solid #dce1e7;
    border-radius: 8px;
    color: #242a31;
    font-size: 16px;
    min-height: 48px;
    padding: 10px 13px;
    width: 100%;
}

.cec-config select:focus,
.cec-lead-form select:focus,
.cec-lead-form input:focus,
.cec-lead-form textarea:focus {
    border-color: #c9191d;
    box-shadow: 0 0 0 3px rgba(201, 25, 29, .12);
    outline: none;
}

.cec-two-cols,
.cec-lead-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cec-options {
    display: grid;
    gap: 10px;
}

.cec-option {
    align-items: center;
    background: #fafafa;
    border: 1px solid #e8ebef;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: 20px 1fr auto;
    margin: 0;
    padding: 12px 14px;
}

.cec-option input {
    accent-color: #c9191d;
}

.cec-option strong {
    color: #c9191d;
    font-size: 14px;
    white-space: nowrap;
}

.cec-result {
    background: #fff6f6;
    border: 1px solid rgba(201, 25, 29, .28);
    border-radius: 8px;
    padding: 26px;
}

.cec-result-label {
    color: #c9191d;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .06em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.cec-result > strong {
    color: #20242a;
    display: block;
    font-size: 46px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 9px;
}

.cec-result > span {
    color: #68707c;
    display: block;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cec-breakdown {
    border-bottom: 1px solid rgba(201, 25, 29, .16);
    border-top: 1px solid rgba(201, 25, 29, .16);
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
    padding: 18px 0;
}

.cec-breakdown div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.cec-breakdown span {
    color: #4b5563;
}

.cec-breakdown strong {
    color: #20242a;
    white-space: nowrap;
}

.cec-send-lead {
    min-width: 100%;
}

.cec-form-status {
    color: #5e6671;
    font-size: 14px;
    line-height: 1.5;
    margin: 12px 0 0;
}

.cec-form-status.is-success {
    color: #15803d;
}

.cec-form-status.is-error {
    color: #b91c1c;
}

.cec-next-step {
    background: #fff7f7;
    border: 1px solid rgba(201, 25, 29, .2);
    border-radius: 8px;
    margin-top: 16px;
    padding: 16px;
}

.cec-next-step strong {
    color: #191d23;
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
}

.cec-next-step p {
    color: #5e6671;
    margin: 0 0 12px;
}

.cec-next-survey {
    background: #c9191d;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    min-height: 44px;
    padding: 10px 16px;
}

body.cec-modal-open {
    overflow: hidden;
}

body.cec-success-open {
    overflow: hidden;
}

.cec-success-overlay {
    align-items: center;
    background: rgba(15, 18, 24, .64);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 100001;
}

.cec-success-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0,0,0,.22);
    max-width: 480px;
    padding: 34px;
    position: relative;
    text-align: center;
    width: min(100%, 480px);
}

.cec-success-card:focus {
    outline: none;
}

.cec-success-close {
    align-items: center;
    background: #f4f4f5;
    border: 0;
    border-radius: 50%;
    color: #555;
    cursor: pointer;
    display: flex;
    font-size: 28px;
    height: 40px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 40px;
}

.cec-success-icon {
    margin: 0 auto 18px;
    width: 72px;
}

.cec-success-icon svg {
    display: block;
    height: 72px;
    width: 72px;
}

.cec-success-icon circle {
    fill: #ecfdf3;
    stroke: #16a34a;
    stroke-width: 3;
}

.cec-success-icon path {
    fill: none;
    stroke: #16a34a;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 6;
}

.cec-success-title {
    color: #171717;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.18;
    margin: 0 38px 10px;
}

.cec-success-copy,
.cec-success-extra {
    color: #5e6671;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.cec-success-extra {
    color: #c9191d;
    font-weight: 800;
    margin-top: 12px;
}

.cec-success-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.cec-success-cta,
.cec-success-link {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    text-decoration: none;
}

.cec-success-cta {
    background: #c9191d;
    border: 0;
    color: #fff;
    cursor: pointer;
}

.cec-success-cta:hover {
    background: #a91418;
    color: #fff;
}

.cec-success-link {
    background: #fff;
    border: 1px solid #dce1e7;
    color: #171717;
}

@media (max-width: 900px) {
    .cec-section-inner,
    .cec-modal-body {
        grid-template-columns: 1fr;
    }

    .cec-section-preview {
        min-height: 240px;
    }
}

@media (max-width: 767px) {
    .cec-section {
        padding: 46px 0;
    }

    .cec-section h2 {
        font-size: 30px;
    }

    .cec-section-preview {
        display: none;
    }

    .cec-modal {
        align-items: stretch;
        padding: 0;
    }

    .cec-modal-dialog {
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
        min-height: 100vh;
        overflow-y: auto;
        width: 100vw;
    }

    .cec-modal-close {
        position: sticky;
        top: 14px;
        margin-left: auto;
        transform: translateY(14px);
    }

    .cec-modal-head {
        position: sticky;
        top: 0;
        z-index: 1;
        padding: 18px 64px 18px 18px;
    }

    .cec-modal-head h2 {
        font-size: 20px;
    }

    .cec-modal-body {
        padding: 20px;
    }

    .cec-two-cols,
    .cec-lead-grid {
        grid-template-columns: 1fr;
    }

    .cec-result {
        padding: 20px;
    }

    .cec-lead-form input,
    .cec-lead-form select,
    .cec-lead-form textarea {
        scroll-margin-top: 92px;
    }

    .cec-result > strong {
        font-size: 34px;
    }

    .cec-option {
        align-items: start;
        grid-template-columns: 20px 1fr;
    }

    .cec-option strong {
        grid-column: 2;
    }

    .cec-success-overlay {
        padding: 16px;
    }

    .cec-success-card {
        padding: 30px 20px 22px;
        width: 90vw;
    }

    .cec-success-title {
        font-size: 24px;
        margin-left: 36px;
        margin-right: 36px;
    }

    .cec-success-cta,
    .cec-success-link {
        width: 100%;
    }
}
