* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('assets/wallpaper.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    color: #333;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 42, 134, 0.8) 0%, rgba(30, 64, 175, 0.7) 50%, rgba(1, 42, 134, 0.8) 100%);
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.form-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(1, 42, 134, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 45px;
    width: 100%;
    max-width: 700px;
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #012A86 0%, #1e40af 50%, #012A86 100%);
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    gap: 20px;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

h1 {
    color: #012A86;
    font-size: 2.2em;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 2px 4px rgba(1, 42, 134, 0.1);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

h2 {
    color: #012A86;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}

.subtitle {
    text-align: right;
    color: #7f8c8d;
    margin-bottom: 35px;
    font-size: 0.85em;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-style: italic;
}

.form-group {
    margin-bottom: 28px;
    position: relative;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #012A86;
    font-size: 0.9em;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    background-color: #fafbfc;
    font-weight: 500;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #012A86;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(1, 42, 134, 0.1);
}

input[type="text"].invalid,
input[type="email"].invalid,
input[type="tel"].invalid,
select.invalid,
textarea.invalid {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

input[type="text"].valid,
input[type="email"].valid,
input[type="tel"].valid,
select.valid,
textarea.valid {
    border-color: #27ae60;
    background-color: #f8fffe;
}

textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Outfit', sans-serif;
}

select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    appearance: none;
    font-family: 'Outfit', sans-serif;
}

.file-input-container {
    position: relative;
}

input[type="file"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.file-input-label {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 2px dashed #bdc3c7;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafbfc;
    color: #7f8c8d;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.file-input-label:hover {
    border-color: #012A86;
    background-color: #e1f5fe;
    color: #012A86;
}

.file-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.file-info {
    display: block;
    margin-top: 5px;
    color: #95a5a6;
    font-size: 0.85em;
    font-family: 'Outfit', sans-serif;
}

/* Mensagens de erro */
.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.85em;
    margin-top: 5px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}

/* Botões */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 35px;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    min-width: 150px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #012A86 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(1, 42, 134, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 42, 134, 0.4);
}

.btn-secondary {
    background: #f8fafc;
    color: #012A86;
    border: 2px solid #cbd5e1;
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #012A86;
}

.btn:active {
    transform: translateY(0);
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .form-container {
        padding: 25px 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 25px;
    }

    .form-actions {
        flex-direction: column-reverse;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container {
    animation: fadeInUp 0.6s ease-out;
}

.form-group {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }
.form-group:nth-child(7) { animation-delay: 0.7s; }
.form-group:nth-child(8) { animation-delay: 0.8s; }

.form-description {
    background: #f4f8fb;
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 18px;
    color: #1e293b;
    font-size: 1.05em;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.04);
    text-align: justify;
}
.form-description p {
    margin-bottom: 12px;
}
.form-description p:last-child {
    margin-bottom: 0;
}
.form-description ul {
    margin-top: 10px;
    margin-bottom: 0;
    padding-left: 20px;
}
.form-description li {
    margin-bottom: 4px;
}
.form-description a {
    color: #2563eb;
    text-decoration: underline;
}