body {
    font-family: 'Lora', serif;
    margin: 0;
    padding: 0;
}

/* BACKGROUND COM OVERLAY */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('../img/Wallpaper_2025.jpeg') no-repeat center/cover;
    filter: brightness(0.9) contrast(1.1);
    z-index: -2;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, rgba(230, 130, 30, 0.85) 0%, rgba(190, 90, 10, 0.75) 100%);
  z-index: -1;
}

/* ANIMAÇÃO DE PARTÍCULAS */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

.logo-wrapper {
    width: 100%;
    margin: 20px 0;
    padding: 0;
}

.logo-wrapper img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    display: block;
}

.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative; /* Para ficar acima do background */
    z-index: 1;
}

.header {
    text-align: center;
    padding: 20px 0 20px;
    background: linear-gradient(to right, rgba(227, 108, 9, 0.97), rgba(239, 138, 23, 0.97));
    border-bottom: 5px solid #16805e;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header h1 {
    font-family: 'Playfair Display', serif;
    color: white;
    font-size: 2.6rem;
    font-weight: 700;
    margin: 10px 0 5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.header p {
    color: rgba(255,255,255,0.9);
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.3); /* Faixa translúcida atrás das abas */
    padding: 10px 10px 0 10px;
    border-radius: 15px 15px 0 0;
}

.tab-btn {
    background-color: rgba(245, 247, 250, 0.9); /* Branco gelo */
    border-radius: 10px 10px 0 0;
    border: none;
    color: #333;
    padding: 10px 24px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: #ffffff;
}

.tab-btn.active {
    background-color: #e36c09;
    color: white;
}

.form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    padding: 40px;
    margin-bottom: 40px;
}

.section-title h3 {
    font-family: 'Playfair Display', serif;
    color: #e36c09;
    border-bottom: 2px solid #e6e6e6;
    padding-bottom: 10px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    border-radius: 8px;
    border: 1px solid #dce4ec;
    padding: 12px;
    font-family: 'Lora', serif;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: #e36c09;
    outline: none;
}

.checkbox-group {
    margin: 15px 0;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
}

.checkbox-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.file-upload-group input[type="file"] {
    background-color: #f9fbfd;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 10px;
    min-width: 350px;
    max-width: 100%;
}

.file-upload-group input[type="file"]::file-selector-button {
    background: #e36c09;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    margin-right: 15px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.file-upload-group input[type="file"]::file-selector-button:hover {
    background: #c25906;
}

.submit-btn {
    background: linear-gradient(45deg,#e36c09,#ef8a17);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(26, 92, 75, 0.3);
    min-width: 200px;
    display: block;
    margin: 30px auto 0;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 92, 75, 0.4);
}

.error-text {
    color: red;
    font-size: 0.8rem;
    margin-top: 5px;
}

dialog {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 30px;
    max-width: 500px;
    margin: auto;
}

dialog::backdrop {
    background: rgba(0,0,0,0.5);
}

.dialog-content {
    text-align: center;
}

.dialog-content button {
    background: #e36c09;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.success-message {
    text-align: center;
    padding: 30px;
    background: #f0f8f5;
    border-radius: 8px;
    border: 1px solid #d4edda;
    color: #155724;
}

/* Modal Estóico e Bonito */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transform: translateY(-30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    border: 3px solid #e36c09;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #e36c09, #ef8a17);
    color: white;
    padding: 25px 20px 15px;
    text-align: center;
    border-bottom: none;
}

.modal-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 10px;
    animation: shake 0.5s ease-in-out infinite alternate;
}

@keyframes shake {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

.modal-header h2 {
    margin: 0;
    font-size: 1.6rem;
    color: white;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.modal-body {
    padding: 20px 25px;
    text-align: center;
    color: #444;
    font-size: 1rem;
    line-height: 1.5;
}

.modal-footer {
    padding: 15px 20px 20px;
    text-align: center;
}

.btn-fechar {
    background: #e36c09;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    width: 100%;
}

.btn-fechar:hover {
    background: #c25906;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 108, 9, 0.3);
}

.footer {
    text-align: center;
    color: #ffffff;
    padding: 20px;
    margin-top: 40px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3); /* Uma sombrinha leve para garantir a leitura no fundo */
}

.regulamento-section {
    text-align: center;
    margin-bottom: 20px;
}

.btn-regulamento {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    padding: 6px 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-regulamento:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
}

.modal-regulamento-content {
    max-width: 900px !important;
    width: 95% !important;
}

.btn-regulamento-download {
    background: #e36c09;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
}

.btn-regulamento-download:hover {
    background: #c25906;
    color: white;
}

/* RESPONSIVIDADE (Celular, Tablet e Notebook) */

/* Notebooks e telas médias (max-width: 1024px) */
@media (max-width: 1024px) {
    .main-wrapper {
        max-width: 900px;
        padding: 0 15px;
    }
    .form-container {
        padding: 30px;
    }
}

/* Tablets e iPads (max-width: 768px) */
@media (max-width: 768px) {
    body {
        background: #f4f6f9 !important;
    }
    .tabs {
        flex-direction: column;
        gap: 5px;
        background: transparent;
        padding: 0;
    }
    
    .tab-btn {
        width: 100%;
        border-radius: 8px;
        padding: 12px;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    
    .form-container {
        padding: 25px 20px;
        border-radius: 0 0 12px 12px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .logo-wrapper img {
        max-height: 200px;
    }
    
    .file-upload-group input[type="file"] {
        min-width: unset;
        width: 100%;
    }
    .checkbox-grid {
        flex-direction: column;
        gap: 10px;
    }
}

/* Celulares (max-width: 480px) */
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.6rem;
    }
    .header p {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 20px 15px;
    }
    
    .submit-btn {
        width: 100%;
        border-radius: 8px;
    }
}

/* CUSTOM FILE INPUTS STYLING */
.file-input-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    cursor: pointer;
    max-width: 100%;
}

.real-file-input {
    position: absolute;
    opacity: 0;
    /* pointer-events: none; */
}

.btn-file-select {
    background: #e36c09;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s;
    flex-shrink: 0;
}

.btn-file-select:hover {
    background: #c25906;
}

.file-name-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* WIDGET WHATSAPP HELP */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: slideUp 0.5s ease-out;
}

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

.whatsapp-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    font-size: 24px;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:active {
    transform: scale(0.95);
}

.whatsapp-btn svg {
    width: 28px;
    height: 28px;
    display: block;
    fill: white;
}

/* Modal customizado para WhatsApp Help */
#modal-help-whatsapp {
    display: flex;
    opacity: 0;
    visibility: hidden;
}

#modal-help-whatsapp.show {
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#modal-help-whatsapp .modal-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideInUp 0.4s ease-out;
}

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

#modal-help-whatsapp .modal-header {
    background: linear-gradient(135deg, #e36c09, #ef8a17);
    color: white;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#modal-help-whatsapp .modal-header h2 {
    margin: 10px 0 0 0;
    font-size: 1.5rem;
    color: white;
}

#modal-help-whatsapp .modal-body {
    padding: 25px;
    background: #fafafa;
}

#modal-help-whatsapp .modal-body p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

#modal-help-whatsapp .modal-footer {
    background: white;
    padding: 20px 25px;
}

#btn-enviar-help {
    background: linear-gradient(135deg, #e36c09, #ef8a17) !important;
    transition: all 0.3s ease;
}

#btn-enviar-help:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 108, 9, 0.3);
}

#btn-enviar-help:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
