/* ============================================================ */
/* FORMULÁRIO HALLOWEEN ASMG 2026                                */
/* ============================================================ */

:root {
    --primary-blue: #002b80;
    --dark-blue: #001a4d;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --success-green: #28a745;
    --warning-orange: #fd7e14;
}

body {
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    color: #333;
}

/* ============================================================ */
/* BOTÃO VOLTAR                                                  */
/* ============================================================ */
.btn-back-to-event {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--primary-blue);
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: #fff;
}
.btn-back-to-event:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: translateX(-5px);
}

/* ============================================================ */
/* SEÇÕES E TÍTULOS                                              */
/* ============================================================ */
.section-padding { padding: 50px 0; }
.section-title-form {
    font-weight: 800;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}
.section-title-form::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 4px;
}

/* ============================================================ */
/* TERMOS                                                        */
/* ============================================================ */
.termos-box {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 43, 128, 0.06);
}
.termos-box ul {
    padding-left: 20px;
    color: #4a4a4a;
    line-height: 1.8;
}
.termos-box ul li { margin-bottom: 8px; }

/* ============================================================ */
/* VÍDEO EM LIBRAS — TOPO DO CARD DE TERMOS                      */
/* ============================================================ */
.libras-video-termos {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}
.libras-video-termos .libras-video-wrapper {
    max-width: 640px;   /* tamanho padrão de embed do YouTube */
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 15px rgba(0, 43, 128, 0.08);
}
.libras-video-termos .libras-video-wrapper iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

/* ============================================================ */
/* CARDS DE CATEGORIA (PERFIL)                                   */
/* ============================================================ */
.categoria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.categoria-card {
    position: relative;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 18px;
    padding: 26px 18px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 220px;
    user-select: none;
}
.categoria-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 43, 128, 0.15);
}
.categoria-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.categoria-card .cat-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.25s ease;
}
.categoria-card.selected {
    border-color: var(--primary-blue);
    background: linear-gradient(160deg, #f4f8ff 0%, #e8f0fe 100%);
    box-shadow: 0 12px 32px rgba(0, 43, 128, 0.18);
    transform: translateY(-3px);
}
.categoria-card.selected .cat-check {
    opacity: 1;
    transform: scale(1);
}
.categoria-card .cat-icon {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}
.categoria-card .cat-title {
    font-weight: 800;
    color: var(--primary-blue);
    font-size: 1rem;
    margin: 0 0 6px;
    line-height: 1.2;
}
.categoria-card .cat-desc {
    font-size: 0.83rem;
    color: #6c757d;
    line-height: 1.35;
    margin: 0 0 auto;
    padding-bottom: 14px;
}
.categoria-card .cat-price {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-top: auto;
}
.cat-price.gratis {
    background: #d4edda;
    color: #155724;
    border: 1px solid #b1dfbb;
}
.cat-price.pago {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}
.cat-price.porta {
    background: #ffe0b2;
    color: #e65100;
    border: 1px solid #ffcc80;
}

/* ============================================================ */
/* AVISO DINÂMICO                                                */
/* ============================================================ */
#avisoDinamico .alert {
    border: none;
    border-left: 4px solid;
    border-radius: 12px;
}

/* ============================================================ */
/* ANEXOS — PLACEHOLDER + BOX + IMAGENS DE EXEMPLO               */
/* ============================================================ */
#anexosPlaceholder {
    border-radius: 12px;
    font-size: 0.95rem;
}

#anexosBox .anexo-item {
    animation: fadeInAnexo 0.3s ease;
}

@keyframes fadeInAnexo {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Caixa de cada anexo */
.anexo-box {
    background: #fafbfc;
    border: 2px dashed var(--border-color);
    border-radius: 14px;
    padding: 16px;
    height: 100%;
    transition: all 0.25s ease;
}
.anexo-box:hover {
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 43, 128, 0.06);
}
.anexo-box .form-label {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.9rem;
}
.anexo-box .form-control[type="file"] {
    padding: 10px 12px;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    transition: all 0.25s ease;
    background: #fafbfc;
}
.anexo-box .form-control[type="file"]:hover,
.anexo-box .form-control[type="file"]:focus {
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 43, 128, 0.08);
}

/* Bloco da imagem de exemplo */
.doc-example {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #eef1f5;
    text-align: center;
}

/* Imagem única (PIX, RG criança) */
.doc-img-example {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Layout lado a lado (2 mini cards) */
.doc-dual {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: flex-start;
}
.doc-mini {
    flex: 1;
    max-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.doc-mini .doc-img-example {
    max-height: 100px;
    width: 100%;
    object-fit: contain;
}
.doc-mini-label {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.doc-label-vermelho {
    background: #fde8e8;
    color: #c1121f;
    border: 1px solid #f5b8b8;
}
.doc-label-amarelo {
    background: #fff4d6;
    color: #8a6d00;
    border: 1px solid #f0d97a;
}
.doc-label-rg {
    background: #e0f0ff;
    color: #0d6efd;
    border: 1px solid #9ecaf5;
}
.doc-label-cnh {
    background: #e7f4ea;
    color: #217a3a;
    border: 1px solid #a8dbb5;
}

/* ============================================================ */
/* PIX                                                           */
/* ============================================================ */
.pix-card {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 43, 128, 0.08);
    text-align: center;
}
.pix-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}
.pix-icon { color: #32BCAD; margin-right: 10px; }

.pix-value-box {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}
.pix-value-box span {
    display: block;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}
.pix-value-box h3 {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 2.5rem;
    margin: 5px 0 0 0;
}

.pix-key-container {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #e2e8f0;
}
.pix-key-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}
.pix-key-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pix-code {
    background: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    flex: 1;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    border: 1px solid var(--border-color);
    word-break: break-all;
}
.btn-copy-pix {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn-copy-pix:hover {
    background: var(--dark-blue);
    transform: scale(1.02);
}
.pix-instructions {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #64748b;
    background: var(--light-gray);
    padding: 12px;
    border-radius: 50px;
}

/* ============================================================ */
/* FORMULÁRIO                                                    */
/* ============================================================ */
.form-section { background: #fff; }
.form-section-title {
    color: var(--primary-blue);
    font-weight: 700;
    border-left: 4px solid var(--primary-blue);
    padding-left: 12px;
}
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 43, 128, 0.1);
}
.btn-submit {
    background: var(--primary-blue);
    color: #fff;
    padding: 14px 40px;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 0 auto;
}
.btn-submit:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 43, 128, 0.3);
}

/* ============================================================ */
/* BACK TO TOP                                                   */
/* ============================================================ */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top-btn.visible { opacity: 1; visibility: visible; }
.back-to-top-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-3px);
}

/* ============================================================ */
/* RESPONSIVIDADE                                                */
/* ============================================================ */
@media (max-width: 992px) {
    .categoria-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .categoria-grid { grid-template-columns: 1fr; }
    .categoria-card { min-height: auto; padding: 20px 16px; }
    .pix-card { padding: 25px 20px; }
    .pix-key-row { flex-direction: column; }
    .btn-copy-pix { width: 100%; }
    .back-to-top-btn { right: 20px; bottom: 20px; width: 45px; height: 45px; }
    .doc-img-example { max-height: 110px; }
    .doc-mini .doc-img-example { max-height: 80px; }
    .doc-mini { max-width: 100px; }

    /* Vídeo Libras (termos) mobile */
    .libras-video-termos { margin-bottom: 22px; padding-bottom: 20px; }
    .libras-video-termos .libras-video-wrapper { border-radius: 10px; }
}