@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    background: #003366;
    color: #fff;
    line-height: 1.6;
}

/* Carrossel de Fundo */
.bg-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: #000;
}

.bg-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2.5s ease-in-out, transform 12s linear;
    transform: scale(1.1);
}

.bg-carousel img.active {
    opacity: 0.45;
    transform: scale(1);
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, rgba(0,40,80,0.35) 0%, rgba(0,10,25,0.9) 100%);
}

/* Partículas */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(184, 233, 134, 0.2);
    border-radius: 50%;
    animation: floatUp 25s linear infinite;
    box-shadow: 0 0 10px rgba(184, 233, 134, 0.4);
}

@keyframes floatUp {
    0% { transform: translateY(110vh) translateX(0) scale(0); opacity: 0; }
    20% { opacity: 0.6; transform: translateY(80vh) translateX(20px) scale(1); }
    80% { opacity: 0.6; transform: translateY(20vh) translateX(-20px) scale(1); }
    100% { transform: translateY(-10vh) translateX(10px) scale(0); opacity: 0; }
}

/* Header */
.header-banner {
    width: 100%;
    position: relative;
    z-index: 2;
    background: #003366;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.header-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Main Layout */
.main-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 40px auto 60px;
    padding: 0 24px;
}

/* Glassmorphism Card */
.form-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    padding: 50px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-title {
    text-align: center;
    font-size: 34px;
    margin-bottom: 8px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.form-subtitle {
    text-align: center;
    color: #B8E986;
    font-size: 17px;
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 0.95;
}

/* Form Fields */
.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    padding-left: 4px;
}

.form-group label span {
    color: #B8E986;
    margin-left: 2px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 22px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
    font-family: inherit;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.form-group input:focus,
.form-group select:focus {
    border-color: #B8E986;
    background: rgba(184, 233, 134, 0.06);
    box-shadow: 0 0 25px rgba(184, 233, 134, 0.25);
    transform: translateY(-2px);
}

.form-group select option {
    background-color: #003366;
    color: #fff;
}

/* Força caixa alta visualmente */
#nome_completo, #empresa_org, #cargo, #cidade, #uf {
    text-transform: uppercase;
}

/* LGPD Section */
.lgpd-group {
    margin: 32px 0;
    padding: 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lgpd-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.lgpd-label input {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #B8E986;
    cursor: pointer;
}

.lgpd-label b {
    color: #B8E986;
    font-weight: 700;
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 16px;
    font-size: 19px;
    font-weight: 700;
    color: #003366;
    background: linear-gradient(135deg, #B8E986 0%, #a2d26d 100%);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 30px rgba(184, 233, 134, 0.35);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 10px;
}

.submit-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 45px rgba(184, 233, 134, 0.5);
    background: linear-gradient(135deg, #c5f099 0%, #B8E986 100%);
}

.submit-button:active {
    transform: translateY(0) scale(0.98);
}

/* Error/Success Feedbacks */
.message-box {
    padding: 18px;
    border-radius: 12px;
    margin-top: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    display: none;
    animation: fadeIn 0.4s ease;
}

.error-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

/* Modal Overlay & Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 10, 30, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    overflow-y: auto;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: 520px;
    width: 100%;
    background: rgba(10, 30, 60, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.8) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Success Card Mascote */
.mascote-animado {
    width: 280px;
    height: auto;
    margin: 0 auto 25px;
    display: block;
    filter: drop-shadow(0 0 30px rgba(184, 233, 134, 0.8));
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* Sidebar/Footer */
.footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 20px;
    font-size: 14px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsividade */

@media (max-width: 768px) {
    .main-container {
        margin-top: 20px;
        padding: 0 20px;
    }

    .form-card {
        padding: 40px 30px;
        border-radius: 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-title {
        font-size: 30px;
    }

    .mascote-animado {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .main-container {
        margin-top: 20px;
        padding: 0 15px;
    }

    .form-card {
        padding: 35px 20px;
        border-radius: 18px;
    }

    .form-title {
        font-size: 26px;
    }

    .form-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group input,
    .form-group select {
        padding: 14px 18px;
        font-size: 15px;
    }

    .lgpd-group {
        padding: 15px;
        margin: 25px 0;
    }

    .lgpd-label {
        font-size: 13px;
        gap: 10px;
    }

    .lgpd-label input {
        width: 18px !important;
        height: 18px !important;
    }

    .submit-button {
        padding: 16px;
        font-size: 16px;
        letter-spacing: 1px;
    }

    .footer {
        font-size: 12px;
        padding: 30px 15px;
    }

    .modal-content {
        padding: 10px;
    }

    .mascote-animado {
        width: 160px;
    }
}
