/* Fase 4 — Evento e Inscrição (novo_layout/IMPLEMENTACAO.md) */

.l01-event-hero {
    padding: 32px 0 0;
}

.l01-event-hero .content,
.l01-event-layout,
.l01-event-cta {
    max-width: 1280px;
}

.l01-event-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    color: #fff;
}

.l01-event-banner__video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.l01-event-banner__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.l01-event-banner__body {
    position: relative;
    z-index: 2;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.l01-event-banner__body .l01-tag {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink-900);
}

.l01-event-banner__body h1 {
    font-family: var(--font-heading);
    font-size: 2em;
    margin: 0;
}

.l01-event-banner__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 0.95em;
    opacity: 0.95;
}

.l01-event-banner__dot {
    opacity: 0.7;
}

/* Layout: conteúdo + card de inscrição */
.l01-event-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 40px;
    align-items: start;
}

.l01-event-main:only-child {
    grid-column: 1 / -1;
}

/* Páginas sem conteúdo/capa de evento (ex.: associado) — o card fica sozinho no
   grid, então ganha a largura toda em vez de ficar preso aos 480px da coluna. */
.l01-form-card:only-child {
    grid-column: 1 / -1;
    max-width: 720px;
    margin: 0 auto;
    position: static;
    width: 100%;
}

.l01-event-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.l01-event-closed {
    background: var(--amber-100);
    color: var(--amber-700);
    border-radius: 12px;
    padding: 18px 20px;
    font-weight: 600;
}

/* Conteúdo do evento (WYSIWYG) — h2 vira título de seção, p texto normal,
   ul/li vira checklist em 2 colunas ("O que está incluso"). Regra combinada
   no IMPLEMENTACAO.md, seção Fase 4: não separar em campos novos no cadastro. */
.evento_descricao {
    font-family: var(--font-body);
    color: var(--ink-900);
    line-height: 1.7;
}

.evento_descricao h1,
.evento_descricao h2 {
    font-family: var(--font-heading);
    font-size: 1.4em;
    color: var(--ink-900);
    margin: 1.6em 0 0.7em;
}

.evento_descricao h1:first-child,
.evento_descricao h2:first-child {
    margin-top: 0;
}

.evento_descricao p {
    margin: 0 0 1.1em;
}

.evento_descricao img {
    max-width: 100%;
    border-radius: 10px;
}

.evento_descricao ul {
    list-style: none;
    margin: 0 0 1.4em;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}

.evento_descricao ul li {
    position: relative;
    padding-left: 26px;
    line-height: 1.4;
}

.evento_descricao ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--green-700);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/60% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/60% no-repeat;
}

.evento_descricao ol {
    margin: 0 0 1.4em;
    padding-left: 1.4em;
}

/* Capa do evento (master 1600x900 já usado no upload) — mostrada no tamanho/proporção
   real ao final do texto, sem cortar. O banner do topo é só gradiente (seção 4 do
   IMPLEMENTACAO.md), então não precisa de um segundo tamanho de imagem cadastrado. */
.l01-event-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: var(--cream-100);
    border-radius: 14px;
    margin-top: 28px;
}

/* Card de inscrição */
.l01-form-card {
    position: sticky;
    top: 24px;
    background: var(--cream-50);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.l01-form-card h2 {
    font-family: var(--font-heading);
    font-size: 1.3em;
    margin: 0 0 6px;
}

.l01-form-card__lote {
    font-size: 0.88em;
    color: var(--ink-600);
    margin: 0 0 20px;
}

/* Campos do formulário — mesmas classes que o scripts.js já usa (wc_nome, formCep,
   b-contain, calc_off, add_field_button...), só reestilizadas. */
.l01-form .label {
    margin-bottom: 16px;
}

.l01-form .label span,
.l01-form .label .legend {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85em;
    text-transform: none;
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: 6px;
}

.l01-form .label span i {
    color: var(--green-700);
    margin-right: 4px;
}

.l01-form input[type="text"],
.l01-form input[type="email"],
.l01-form input[type="number"],
.l01-form input[type="tel"],
.l01-form select,
.l01-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--cream-50);
    font-family: var(--font-body);
    font-size: 0.95em;
    color: var(--ink-900);
}

.l01-form input:focus,
.l01-form select:focus,
.l01-form textarea:focus {
    outline: none;
    border-color: var(--green-700);
    background: var(--cream-100);
}

.l01-form .label_50 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.l01-form__section-title {
    font-family: var(--font-heading);
    font-size: 1.05em;
    color: var(--ink-900);
    margin: 22px 0 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.l01-payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.l01-payment-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--cream-50);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--ink-900);
}

.l01-payment-option input {
    position: absolute;
    opacity: 0;
}

.l01-payment-option:has(input:checked) {
    border-color: var(--green-700);
    background: var(--cream-100);
    color: var(--green-700);
}

.l01-payment-option:has(input:focus-visible) {
    outline: 2px solid var(--green-700);
    outline-offset: 1px;
}

.l01-form .b-contain {
    padding: 10px 10px 10px 34px;
    background: var(--cream-50);
    border-radius: 10px;
    margin-bottom: 8px;
    width: 100%;
}

.l01-form .b-contain span {
    font-size: 0.92em;
    color: var(--ink-900);
}

.l01-form .b-contain input[type="checkbox"] ~ .b-input {
    left: 10px;
    top: 10px;
}

.l01-form .b-contain input[type="checkbox"]:checked ~ .b-input,
.l01-form .b-contain input[type="checkbox"]:checked:focus ~ .b-input,
.l01-form .b-contain:hover input[type="checkbox"]:not([disabled]):checked ~ .b-input {
    background: var(--green-700);
    border-color: var(--green-700);
}

.l01-form__lgpd {
    margin: 20px 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.l01-form__lgpd label:first-child {
    font-size: 0.8em;
    color: var(--ink-600);
    line-height: 1.5;
}

.l01-form__lgpd .b-contain {
    font-size: 0.85em;
    line-height: 1.4;
}

.l01-form__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-family: var(--font-heading);
    font-size: 1.15em;
    color: var(--ink-900);
}

.l01-form__submit {
    margin-top: 8px;
}

.l01-form__submit-btn {
    width: 100%;
    justify-content: center;
    border: 0;
    cursor: pointer;
    font-size: 1em;
}

.add_field_button {
    display: inline-flex;
    margin-bottom: 12px;
}

.input_fields_wrap .label_50 {
    margin-bottom: 4px;
}

@media (max-width: 64em) {
    .l01-event-layout {
        grid-template-columns: 1fr;
    }

    .l01-form-card {
        position: static;
    }
}

@media (max-width: 50em) {
    .l01-event-banner__body h1 {
        font-size: 1.5em;
    }

    .evento_descricao ul {
        grid-template-columns: 1fr;
    }

    .l01-form .label_50 {
        grid-template-columns: 1fr;
    }
}
