* {
    box-sizing: border-box;
}

:root {
    --ec-bg: #f4f7f6;
    --ec-surface: #ffffff;
    --ec-surface-soft: #f8faf9;
    --ec-text: #1e2a26;
    --ec-muted: #6f7f78;
    --ec-border: #dfe7e3;
    --ec-primary: #7ea335;
    --ec-primary-dark: #68892a;
    --ec-primary-soft: #eef5df;
    --ec-danger: #b84a4a;
    --ec-warning: #9a6a19;
    --ec-shadow: 0 18px 50px rgba(25, 50, 40, 0.08);
    --ec-radius-lg: 24px;
    --ec-radius-md: 16px;
    --ec-radius-sm: 10px;
    --ec-transition: 180ms ease;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(126, 163, 53, 0.08), transparent 30%),
        var(--ec-bg);
    color: var(--ec-text);
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: var(--ec-primary-dark);
}

[hidden] {
    display: none !important;
}


/* =========================================================
   MAIN APP
========================================================= */

.ec-app {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 40px;
}


/* =========================================================
   HEADER
========================================================= */

.ec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.ec-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ec-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--ec-primary);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 20px rgba(126, 163, 53, 0.22);
}

.ec-brand-text {
    display: flex;
    flex-direction: column;
}

.ec-brand-text strong {
    font-size: 1rem;
}

.ec-brand-text span {
    font-size: 0.82rem;
    color: var(--ec-muted);
}

.ec-secure-label {
    padding: 9px 14px;
    border: 1px solid var(--ec-border);
    background: rgba(255,255,255,0.72);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--ec-muted);
}


/* =========================================================
   PROGRESS
========================================================= */

.ec-progress-wrapper {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius-md);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
}

.ec-progress-info {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 9px;
    font-size: 0.84rem;
    color: var(--ec-muted);
}

#ecProgressTitle {
    color: var(--ec-text);
    font-weight: 700;
}

.ec-progress-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9eeeb;
}

.ec-progress-value {
    height: 100%;
    border-radius: inherit;
    background: var(--ec-primary);
    transition: width 240ms ease;
}


/* =========================================================
   FORM WRAPPER
========================================================= */

.ec-form {
    width: 100%;
}

.ec-step {
    animation: ecFadeIn 220ms ease;
}

@keyframes ecFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   HERO / WELCOME
========================================================= */

.ec-step-welcome {
    padding: 10px 0 20px;
}

.ec-hero {
    max-width: 860px;
    margin: 0 auto;
    padding: 46px;
    border: 1px solid var(--ec-border);
    border-radius: 30px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.98),
            rgba(249,251,250,0.98)
        );
    box-shadow: var(--ec-shadow);
}

.ec-hero-badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--ec-primary-soft);
    color: var(--ec-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.ec-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.ec-hero-lead {
    max-width: 720px;
    margin: 18px 0 0;
    font-size: 1.08rem;
    color: var(--ec-muted);
}

.ec-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.ec-benefit {
    display: flex;
    gap: 12px;
    min-height: 132px;
    padding: 18px;
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius-md);
    background: var(--ec-surface-soft);
}

.ec-benefit-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ec-primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.ec-benefit div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ec-benefit strong {
    font-size: 0.95rem;
}

.ec-benefit span:last-child {
    font-size: 0.87rem;
    color: var(--ec-muted);
}

.ec-privacy-note {
    margin-top: 28px;
    padding: 18px 20px;
    border-left: 4px solid var(--ec-primary);
    border-radius: 0 var(--ec-radius-sm) var(--ec-radius-sm) 0;
    background: #f8faf8;
}

.ec-privacy-note strong {
    display: block;
    margin-bottom: 5px;
}

.ec-privacy-note p {
    margin: 0 0 6px;
    color: var(--ec-muted);
    font-size: 0.88rem;
}

.ec-privacy-link {
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.ec-privacy-link:hover {
    text-decoration: underline;
}

.ec-actions-start {
    margin-top: 28px;
}


/* =========================================================
   CARDS
========================================================= */

.ec-card {
    padding: 34px;
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius-lg);
    background: var(--ec-surface);
    box-shadow: var(--ec-shadow);
}

.ec-section-heading {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.ec-section-heading h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1.15;
}

.ec-section-heading p {
    margin: 8px 0 0;
    color: var(--ec-muted);
}

.ec-step-number {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ec-primary-soft);
    color: var(--ec-primary-dark);
    font-weight: 800;
}

.ec-section-heading-success .ec-step-number {
    background: var(--ec-primary);
    color: #fff;
}

.ec-subheading {
    margin: 30px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--ec-border);
    font-size: 1.02rem;
}


/* =========================================================
   GRID
========================================================= */

.ec-grid {
    display: grid;
    gap: 18px;
}

.ec-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ec-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ec-grid-address {
    grid-template-columns: 2fr 0.7fr 1fr;
}

.ec-field-wide {
    grid-column: span 1;
}


/* =========================================================
   FIELDS
========================================================= */

.ec-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ec-field label,
.ec-question-box legend {
    font-weight: 700;
    font-size: 0.93rem;
}

.required {
    color: var(--ec-danger);
}

.ec-field input,
.ec-field select,
.ec-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #cfd9d4;
    border-radius: 12px;
    background: #fff;
    color: var(--ec-text);
    outline: none;
    transition:
        border-color var(--ec-transition),
        box-shadow var(--ec-transition),
        background var(--ec-transition);
}

.ec-field textarea {
    min-height: 96px;
    resize: vertical;
}

.ec-field input:focus,
.ec-field select:focus,
.ec-field textarea:focus {
    border-color: var(--ec-primary);
    box-shadow: 0 0 0 4px rgba(126, 163, 53, 0.10);
}

.ec-field small {
    color: var(--ec-muted);
    font-size: 0.79rem;
}

.ec-field-important {
    margin-bottom: 22px;
}

.ec-field-important > select {
    border-width: 2px;
}


/* =========================================================
   CONDITIONAL
========================================================= */

.ec-conditional {
    margin-top: 16px;
}

.ec-panel {
    padding: 20px;
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius-md);
    background: var(--ec-surface-soft);
}

.ec-panel h3 {
    margin: 0 0 7px;
}

.ec-panel p {
    margin: 0 0 18px;
    color: var(--ec-muted);
}


/* =========================================================
   QUESTIONS / CHOICES
========================================================= */

.ec-question-box {
    margin-top: 24px;
}

.ec-question-box fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.ec-question-box legend {
    margin-bottom: 13px;
}

.ec-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ec-choice-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ec-choice-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ec-choice-list {
    display: grid;
    gap: 10px;
}

.ec-choice {
    position: relative;
    display: flex;
    gap: 11px;
    align-items: flex-start;
    min-height: 66px;
    padding: 15px;
    border: 1px solid var(--ec-border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition:
        transform var(--ec-transition),
        border-color var(--ec-transition),
        background var(--ec-transition),
        box-shadow var(--ec-transition);
}

.ec-choice:hover {
    transform: translateY(-1px);
    border-color: #b8c9c0;
    box-shadow: 0 5px 18px rgba(20, 50, 35, 0.05);
}

.ec-choice:has(input:checked) {
    border-color: var(--ec-primary);
    background: var(--ec-primary-soft);
    box-shadow: 0 0 0 3px rgba(126, 163, 53, 0.08);
}

.ec-choice input {
    margin-top: 4px;
    accent-color: var(--ec-primary);
}

.ec-choice span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ec-choice small {
    color: var(--ec-muted);
}


/* =========================================================
   METER CHOICES
========================================================= */

.ec-meter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ec-meter-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius-md);
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition:
        border-color var(--ec-transition),
        transform var(--ec-transition),
        box-shadow var(--ec-transition),
        background var(--ec-transition);
}

.ec-meter-choice:hover {
    transform: translateY(-2px);
    border-color: #b8c9c0;
}

.ec-meter-choice:has(input:checked) {
    border-color: var(--ec-primary);
    background: var(--ec-primary-soft);
    box-shadow: 0 0 0 3px rgba(126, 163, 53, 0.08);
}

.ec-meter-choice input {
    accent-color: var(--ec-primary);
}

.ec-meter-image-placeholder {
    width: 100%;
    min-height: 130px;
    display: grid;
    place-items: center;
    padding: 14px;
    border-radius: 12px;
    background:
        linear-gradient(145deg, #f0f4f2, #e5ece8);
    color: #6c7d75;
    font-size: 0.9rem;
    font-weight: 700;
}


/* =========================================================
   INFO / WARNING
========================================================= */

.ec-info-box,
.ec-review-warning {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 14px;
}

.ec-info-box {
    border: 1px solid #d9e8c4;
    background: #f6faef;
}

.ec-review-warning {
    border: 1px solid #ead8b0;
    background: #fff8e8;
}

.ec-info-box strong,
.ec-review-warning strong {
    display: block;
    margin-bottom: 5px;
}

.ec-info-box p,
.ec-review-warning p {
    margin: 0;
    color: var(--ec-muted);
}


/* =========================================================
   ACTIONS / BUTTONS
========================================================= */

.ec-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.ec-btn {
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    font-weight: 700;
    transition:
        transform var(--ec-transition),
        box-shadow var(--ec-transition),
        background var(--ec-transition);
}

.ec-btn:hover {
    transform: translateY(-1px);
}

.ec-btn-primary {
    background: var(--ec-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(126, 163, 53, 0.2);
}

.ec-btn-primary:hover {
    background: var(--ec-primary-dark);
}

.ec-btn-secondary {
    border: 1px solid var(--ec-border);
    background: #fff;
    color: var(--ec-text);
}

.ec-btn-secondary:hover {
    background: #f6f8f7;
}

.ec-btn-outline {
    border: 1px solid var(--ec-primary);
    background: transparent;
    color: var(--ec-primary-dark);
}


/* =========================================================
   CHECKLIST
========================================================= */

.ec-checklist-card {
    padding-bottom: 28px;
}

.ec-case-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.ec-case-summary > div {
    padding: 16px;
    border: 1px solid var(--ec-border);
    border-radius: 14px;
    background: var(--ec-surface-soft);
}

.ec-case-summary span {
    display: block;
    margin-bottom: 4px;
    color: var(--ec-muted);
    font-size: 0.78rem;
}

.ec-case-summary strong {
    font-size: 0.92rem;
}

.ec-checklist {
    margin-top: 24px;
}

.ec-checklist h3 {
    margin-bottom: 12px;
}

.ec-document-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ec-border);
}

.ec-document-item:last-child {
    border-bottom: 0;
}

.ec-document-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ec-primary-soft);
    color: var(--ec-primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
}

.ec-document-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ec-document-content strong {
    font-size: 0.93rem;
}

.ec-document-content small {
    color: var(--ec-muted);
}


/* =========================================================
   SEND METHOD
========================================================= */

.ec-send-method {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--ec-border);
}

.ec-send-method h3 {
    margin: 0 0 15px;
}

.ec-send-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.ec-send-card {
    min-height: 170px;
    padding: 18px;
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius-md);
    background: #fff;
    color: var(--ec-text);
    text-align: left;
    transition:
        transform var(--ec-transition),
        border-color var(--ec-transition),
        box-shadow var(--ec-transition);
}

.ec-send-card:hover {
    transform: translateY(-2px);
    border-color: var(--ec-primary);
    box-shadow: 0 8px 22px rgba(30, 60, 45, 0.07);
}

.ec-send-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 10px;
    background: var(--ec-primary-soft);
    color: var(--ec-primary-dark);
    font-weight: 800;
}

.ec-send-card strong {
    display: block;
    margin-bottom: 8px;
}

.ec-send-card small {
    display: block;
    color: var(--ec-muted);
    line-height: 1.45;
}

.ec-pdf-area {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #d9e8c4;
    border-radius: var(--ec-radius-md);
    background: #f6faef;
}

.ec-pdf-area h3 {
    margin: 0 0 7px;
}

.ec-pdf-area p {
    margin: 0 0 16px;
    color: var(--ec-muted);
}


/* =========================================================
   FOOTER
========================================================= */

.ec-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 4px 0;
    color: var(--ec-muted);
    font-size: 0.78rem;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .ec-benefits {
        grid-template-columns: 1fr;
    }

    .ec-grid-3,
    .ec-meter-grid,
    .ec-case-summary,
    .ec-send-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ec-choice-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ec-grid-address {
        grid-template-columns: 1fr 0.7fr;
    }

    .ec-grid-address .ec-field-wide {
        grid-column: 1 / -1;
    }
}


@media (max-width: 680px) {

    .ec-app {
        width: min(100% - 20px, 1180px);
        padding-top: 14px;
    }

    .ec-header {
        align-items: flex-start;
    }

    .ec-secure-label {
        display: none;
    }

    .ec-hero,
    .ec-card {
        padding: 22px;
        border-radius: 20px;
    }

    .ec-hero h1 {
        font-size: 2rem;
    }

    .ec-grid-2,
    .ec-grid-3,
    .ec-grid-address,
    .ec-choice-grid,
    .ec-choice-grid-3,
    .ec-choice-grid-4,
    .ec-meter-grid,
    .ec-case-summary,
    .ec-send-grid {
        grid-template-columns: 1fr;
    }

    .ec-benefit {
        min-height: auto;
    }

    .ec-actions {
        flex-direction: column-reverse;
    }

    .ec-actions-start {
        flex-direction: column;
    }

    .ec-btn {
        width: 100%;
    }

    .ec-progress-info {
        flex-direction: column;
        gap: 3px;
    }

    .ec-section-heading {
        gap: 12px;
    }

    .ec-footer {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}