.cig-wrap,
.cig-wrap * {
    box-sizing: border-box;
}

.cig-wrap {
    --cig-bg: #f4f0e7;
    --cig-card: #fffdf8;
    --cig-text: #142218;
    --cig-muted: #5e675f;
    --cig-green: #2f6f49;
    --cig-green-dark: #1d5034;
    --cig-border: rgba(20, 34, 24, 0.15);
    --cig-shadow: 0 18px 55px rgba(16, 31, 21, 0.14);
    width: 100%;
    color: var(--cig-text);
    font-family: inherit;
}

.cig-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid var(--cig-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 95% 0%, rgba(91, 147, 103, 0.16), transparent 35%),
        linear-gradient(145deg, var(--cig-card), var(--cig-bg));
    box-shadow: var(--cig-shadow);
}

.cig-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--cig-green-dark), var(--cig-green));
}

.cig-notice {
    margin-bottom: 22px;
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.6;
}

.cig-notice > :first-child { margin-top: 0; }
.cig-notice > :last-child { margin-bottom: 0; }

.cig-confirmations {
    display: grid;
    gap: 12px;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.cig-check {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border: 1px solid var(--cig-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.cig-check:hover {
    transform: translateY(-1px);
    border-color: rgba(47, 111, 73, 0.45);
    background: rgba(255, 255, 255, 0.9);
}

.cig-required-check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cig-checkmark {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border: 2px solid #839087;
    border-radius: 7px;
    background: #fff;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.cig-required-check:focus-visible + .cig-checkmark {
    outline: 3px solid rgba(47, 111, 73, 0.28);
    outline-offset: 3px;
}

.cig-required-check:checked + .cig-checkmark {
    border-color: var(--cig-green);
    background: var(--cig-green);
    box-shadow: inset 0 0 0 4px var(--cig-green);
}

.cig-required-check:checked + .cig-checkmark::after {
    content: "✓";
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.cig-check-label {
    min-width: 0;
    font-size: 15px;
    line-height: 1.48;
}

.cig-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: auto;
    min-width: min(100%, 270px);
    min-height: 54px;
    padding: 15px 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cig-green), var(--cig-green-dark));
    box-shadow: 0 10px 24px rgba(29, 80, 52, 0.25);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.cig-cta:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(29, 80, 52, 0.32);
}

.cig-cta:focus-visible {
    outline: 3px solid rgba(47, 111, 73, 0.32);
    outline-offset: 3px;
}

.cig-cta:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
}

.cig-arrow {
    font-size: 22px;
    line-height: 1;
    transition: transform .18s ease;
}

.cig-cta:not(:disabled):hover .cig-arrow {
    transform: translateX(3px);
}

.cig-no-file {
    margin: 13px 0 0;
    color: var(--cig-muted);
    font-size: 13px;
}

html.cig-modal-open,
html.cig-modal-open body {
    overflow: hidden;
}

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

.cig-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
}

.cig-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 14, 8, 0.79);
    backdrop-filter: blur(5px);
}

.cig-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 96vw);
    max-height: 94vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.cig-modal-close {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 32, 20, 0.9);
    color: #fff;
    font: inherit;
    font-size: 31px;
    line-height: 1;
    cursor: pointer;
}

.cig-modal-close:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.cig-modal-content {
    max-height: 94vh;
    overflow: auto;
    background: #ecece8;
}

.cig-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 92vh;
    margin: 0 auto;
    object-fit: contain;
}

.cig-pdf-shell {
    min-height: min(86vh, 850px);
    padding: 0;
    background: #efefec;
}

.cig-pdf {
    display: block;
    width: 100%;
    height: min(88vh, 900px);
    border: 0;
    background: #fff;
}

.cig-pdf-fallback {
    margin: 0;
    padding: 10px 14px;
    background: #fff;
    text-align: center;
    font-size: 14px;
}

.cig-pdf-fallback a {
    color: var(--cig-green-dark);
    font-weight: 700;
}

.cig-empty-state {
    padding: 70px 24px;
    background: #fff;
    color: #444;
    text-align: center;
}

@media (max-width: 767px) {
    .cig-card {
        padding: 22px 18px 20px;
        border-radius: 18px;
    }

    .cig-check {
        padding: 13px 13px;
    }

    .cig-cta {
        width: 100%;
        min-width: 0;
    }

    .cig-modal {
        padding: 0;
    }

    .cig-modal-dialog {
        width: 100vw;
        max-height: 100dvh;
        border-radius: 0;
    }

    .cig-modal-content {
        max-height: 100dvh;
    }

    .cig-image {
        max-height: none;
        width: 100%;
    }

    .cig-pdf,
    .cig-pdf-shell {
        height: 100dvh;
        min-height: 100dvh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cig-wrap *,
    .cig-wrap *::before,
    .cig-wrap *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
