/* ===========================================================
 * Checklist Animada - Frontend Styles
 *
 * CSS escopado ao container do plugin para reduzir conflito com temas,
 * builders e bibliotecas externas.
 * =========================================================== */

@font-face {
    font-family: 'Checklist Animada Barlow';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/barlow-400.ttf') format('truetype');
}

@font-face {
    font-family: 'Checklist Animada Barlow';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/barlow-500.ttf') format('truetype');
}

@font-face {
    font-family: 'Checklist Animada Barlow';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/barlow-600.ttf') format('truetype');
}

@font-face {
    font-family: 'Checklist Animada Barlow';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/barlow-700.ttf') format('truetype');
}

.ca-checklist-root {
    --ca-brand-color: #0959b8;
    --ca-brand-strong: #064085;
    --ca-brand-light: rgba(9, 89, 184, 0.08);
    --ca-text-color: #333b3e;
    --ca-danger-color: #b00020;
    --ca-border-color: #d1d1d1;
    --ca-font-family: 'Checklist Animada Barlow', Arial, Helvetica, sans-serif;

    display: flow-root;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    overflow-x: hidden;
    overflow-x: clip;
    color: var(--ca-text-color);
    background-color: transparent;
    font-family: var(--ca-font-family);
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    contain: layout style;
}

.ca-checklist-root *,
.ca-checklist-root *::before,
.ca-checklist-root *::after {
    box-sizing: border-box;
}

.ca-checklist-root .ca-checklist-header {
    margin: 0 0 24px;
    padding: 0;
}

.ca-checklist-root .ca-checklist-title {
    margin: 0 0 10px;
    padding: 0;
    color: var(--ca-text-color);
    font-family: var(--ca-font-family);
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.ca-checklist-root .ca-checklist-description {
    margin: 0;
    padding: 0;
    color: var(--ca-text-color);
    font-family: var(--ca-font-family);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.85;
    overflow-wrap: anywhere;
}

.ca-checklist-root .ca-checklist-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ca-checklist-root .ca-checklist-item {
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--ca-text-color);
    background-color: transparent;
    opacity: 1;
    transform: none;
    transition: background-color 0.3s ease;
    cursor: default;
}

.ca-checklist-root .ca-checklist-item:hover {
    background-color: var(--ca-brand-light);
}

.ca-checklist-root.ca-js-ready .ca-visible-initially {
    opacity: 0;
    transform: translateX(-30px);
}

.ca-checklist-root .ca-animate-on-scroll {
    animation: ca-slide-in-left 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

.ca-checklist-root.ca-js-ready .ca-hidden-item {
    display: none;
    opacity: 0;
}

.ca-checklist-root .ca-revealed {
    display: flex;
    animation: ca-slide-in-left 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.ca-checklist-root.ca-js-ready .ca-checklist-item:not(.ca-animate-on-scroll):not(.ca-revealed) {
    opacity: 0;
    transform: translateX(-30px);
}

.ca-checklist-root .ca-checklist-item-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.ca-checklist-root .ca-checklist-number {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    color: var(--ca-brand-color);
    background-color: var(--ca-brand-light);
    font-family: var(--ca-font-family);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.ca-checklist-root .ca-custom-checkbox {
    display: flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--ca-brand-color), var(--ca-brand-strong));
    box-shadow: 0 4px 10px rgba(9, 89, 184, 0.3);
    transition: transform 0.3s ease;
}

.ca-checklist-root .ca-checklist-item:hover .ca-custom-checkbox {
    transform: scale(1.1);
}

.ca-checklist-root .ca-custom-checkbox svg {
    display: block;
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ca-checklist-root .ca-check-path {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: ca-draw-check 0.8s 0.4s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.ca-checklist-root .ca-item-text {
    min-width: 0;
    color: var(--ca-text-color);
    font-family: var(--ca-font-family);
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.ca-checklist-root .ca-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    max-width: 100%;
    min-height: 42px;
    margin: 15px 0 0;
    padding: 10px 22px;
    border: 1px solid var(--ca-border-color);
    border-radius: 6px;
    color: var(--ca-brand-color);
    background: transparent;
    box-shadow: none;
    font-family: var(--ca-font-family);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
    cursor: pointer;
    opacity: 0;
    animation: ca-fade-in-btn 0.8s 0.5s forwards;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.ca-checklist-root .ca-load-more-btn:hover,
.ca-checklist-root .ca-load-more-btn:focus-visible {
    border-color: var(--ca-brand-color);
    color: #ffffff;
    background-color: var(--ca-brand-color);
    box-shadow: 0 4px 12px rgba(9, 89, 184, 0.2);
    text-decoration: none;
    transform: translateY(-2px);
    outline: none;
}

.ca-checklist-root .ca-load-more-btn:focus-visible {
    outline: 2px solid rgba(9, 89, 184, 0.35);
    outline-offset: 2px;
}

.ca-checklist-root .ca-load-more-btn:active {
    transform: translateY(0);
}

.ca-checklist-root .ca-btn-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ca-checklist-root .ca-btn-arrow-icon {
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.4s ease;
}

.ca-checklist-root .ca-load-more-btn.ca-expanded .ca-btn-arrow-icon {
    transform: rotate(180deg);
}

.ca-checklist-error {
    margin: 0;
    color: #b00020;
    font-family: 'Checklist Animada Barlow', Arial, Helvetica, sans-serif;
}

@keyframes ca-slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ca-draw-check {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes ca-fade-in-btn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .ca-checklist-root {
        padding: 8px 0;
        font-size: 15px;
    }

    .ca-checklist-root .ca-checklist-header {
        margin-bottom: 18px;
    }

    .ca-checklist-root .ca-checklist-title {
        font-size: 24px;
    }

    .ca-checklist-root .ca-checklist-description {
        font-size: 15px;
    }

    .ca-checklist-root .ca-checklist-item {
        padding: 8px 0;
    }

    .ca-checklist-root .ca-checklist-item-inner {
        gap: 10px;
    }

    .ca-checklist-root .ca-item-text {
        font-size: 14px;
        line-height: 1.45;
    }

    .ca-checklist-root .ca-load-more-btn {
        width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ca-checklist-root .ca-checklist-item,
    .ca-checklist-root .ca-animate-on-scroll,
    .ca-checklist-root .ca-revealed,
    .ca-checklist-root .ca-load-more-btn,
    .ca-checklist-root .ca-check-path,
    .ca-checklist-root .ca-custom-checkbox,
    .ca-checklist-root .ca-btn-arrow-icon {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .ca-checklist-root .ca-check-path {
        stroke-dashoffset: 0 !important;
    }
}
