.bloco-formulario {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 640px;
    padding: 28px 26px 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.form-cursinho-custom {
    gap: 0;
    font-family: "Segoe UI", system-ui, Arial, sans-serif;
    color: #1a1a1a;
}

.form-cursinho-custom .form-head h2 {
    margin: 0 0 4px;
    color: #e10600;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.form-cursinho-custom .form-head p {
    margin: 0 0 22px;
    color: #5c6370;
    font-size: 15px;
}

.form-cursinho-custom .form-sec {
    border: 0;
    margin: 0 0 18px;
    padding: 0;
    min-width: 0;
}

.form-cursinho-custom .form-sec legend {
    padding: 0;
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
}

.curso-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.curso-card {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.curso-card input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #e10600;
}

.curso-card:focus-within {
    outline: 2px solid #e10600;
    outline-offset: 2px;
}

.curso-card:has(input:checked) {
    border-color: #e10600;
    background: #fff7f7;
    box-shadow: 0 0 0 1px #e10600;
}

.curso-nome {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.curso-nota {
    display: block;
    margin-top: 2px;
    color: #c8102e;
    font-size: 12.5px;
    line-height: 1.35;
}

.curso-badge {
    background: #fdecef;
    color: #c8102e;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.dados-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.dados-grid .span-2 {
    grid-column: 1 / -1;
}

.form-cursinho-custom .form-field {
    margin: 0;
}

.form-cursinho-custom .form-field label {
    position: static;
    display: block;
    margin: 0 0 6px;
    padding: 0;
    color: #1a1a1a;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    pointer-events: auto;
}

.form-cursinho-custom .form-field input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    background: #fff;
    color: #1a1a1a;
    font-size: 15px;
    padding: 12px 14px;
}

.form-cursinho-custom .form-field input::placeholder {
    color: #9aa0a6;
}

.form-cursinho-custom .form-field input:focus {
    border-color: #e10600;
    outline: 2px solid #e10600;
    outline-offset: 1px;
}

.form-cursinho-custom .form-msg {
    min-height: 0;
    margin: 4px 0 0;
    font-size: 12px;
}

.form-cursinho-custom .form-msg:empty {
    display: none;
}

.form-cursinho-custom [data-origin-question] {
    margin: 0 0 18px;
}

.form-cursinho-custom [data-origin-question] label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
}

.form-cursinho-custom [data-origin-question] select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    background: #fff;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 400;
    padding: 12px 14px;
}

.form-cursinho-custom [data-origin-question] select:focus {
    border-color: #e10600;
    outline: 2px solid #e10600;
    outline-offset: 1px;
}

.form-cursinho-custom [data-origin-question] small {
    color: #6b7280;
    font-size: 12px;
}

.form-cursinho-custom .form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

#btn-enviar {
    width: auto;
    height: 52px;
    min-width: 0;
    margin: 0;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: #e10600;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: 0 8px 18px rgba(225, 6, 0, 0.28);
}

#btn-enviar:hover {
    background: #c10500;
}

#btn-enviar:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 3px;
}

#btn-enviar:disabled {
    opacity: 0.7;
    cursor: wait;
}

@media (min-width: 768px) {
    .blocos-cursinho-inner {
        max-width: 1180px;
        grid-template-columns: minmax(0, 640px) minmax(300px, 1fr);
        align-items: start;
        gap: 36px 48px;
    }

    .bloco-cursinho {
        max-height: none;
    }

    .video-thumb,
    .festa-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .festa-img {
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }
}

@media (max-width: 767px) {
    .bloco-formulario {
        padding: 20px 16px 16px;
        border-radius: 16px;
    }

    .form-cursinho-custom .form-head h2 {
        font-size: 24px;
    }

    .dados-grid {
        grid-template-columns: 1fr;
    }

    .curso-card {
        padding: 14px 12px;
    }

    .form-cursinho-custom .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    #btn-enviar {
        width: 100%;
    }
}
