/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    min-height: 100vh;
    background: #0a0e27;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    position: relative;
}

/* Parallax Container */
.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.layer-1 {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1729 100%);
    opacity: 1;
}

.layer-2 {
    background: radial-gradient(circle at 20% 50%, rgba(28, 69, 135, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(42, 92, 170, 0.15) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.layer-3 {
    background: url('../imgs/bg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    filter: blur(3px);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

/* Overlay para melhor legibilidade */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.8) 0%, rgba(10, 14, 39, 0.95) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Container principal com animação de entrada */
.container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0;
    border-radius: 24px;
    color: #fff;
    position: relative;
    background: linear-gradient(135deg, rgba(30, 35, 60, 0.98), rgba(15, 20, 40, 0.98));
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
                0 0 100px rgba(28, 69, 135, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6),
                0 0 120px rgba(28, 69, 135, 0.15);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header com gradiente melhorado */
.header {
    text-align: center;
    padding: 50px 40px 40px;
    background: linear-gradient(135deg, rgba(28, 69, 135, 0.2), rgba(42, 92, 170, 0.15));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(28, 69, 135, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 25px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    position: relative;
    z-index: 1;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, #b8d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    margin: 0;
    position: relative;
    z-index: 1;
}

.modern-form {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeInUp 0.6s ease-out backwards;
}

.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; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group label i {
    color: #4a8fdd;
    width: 18px;
    font-size: 1.1rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    padding: 16px 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: #4a8fdd;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(74, 143, 221, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.select-wrapper {
    position: relative;
}

select {
    width: 100%;
    padding: 16px 18px;
    padding-right: 50px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

select:focus {
    outline: none;
    border-color: #4a8fdd;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(74, 143, 221, 0.15);
}

select option {
    background: #1e2340;
    color: #fff;
    padding: 12px;
}

.select-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transition: transform 0.3s ease;
}

select:focus + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: #4a8fdd;
}

textarea {
    min-height: 140px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

#contador-caracteres {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
    margin-top: -5px;
    transition: color 0.3s ease;
}

.cidade-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    position: relative;
}

.checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.checkbox-item label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.2);
}

.checkbox-item input[type="checkbox"]:checked + label .checkbox-custom {
    background: linear-gradient(135deg, #4a8fdd, #2a5caa);
    border-color: #4a8fdd;
    box-shadow: 0 0 12px rgba(74, 143, 221, 0.4);
}

.checkbox-item input[type="checkbox"]:checked + label .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    color: white;
    font-size: 13px;
    font-weight: bold;
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.checkbox-item input[type="checkbox"]:checked + label {
    background: rgba(74, 143, 221, 0.15);
    border-color: rgba(74, 143, 221, 0.4);
    box-shadow: 0 4px 12px rgba(74, 143, 221, 0.1);
}

.file-upload-wrapper {
    position: relative;
}

input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 25px;
    border: 3px dashed rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.file-upload-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 143, 221, 0.1), transparent);
    transition: left 0.5s;
}

.file-upload-label:hover::before {
    left: 100%;
}

.file-upload-label:hover {
    border-color: #4a8fdd;
    background: rgba(74, 143, 221, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 143, 221, 0.2);
}

.file-upload-label i {
    font-size: 2.5rem;
    color: #4a8fdd;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.file-upload-label:hover i {
    transform: translateY(-5px);
}

.file-upload-label span {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
}

.file-upload-label small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.file-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 8px;
    display: none;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.submit-btn {
    background: linear-gradient(135deg, #4a8fdd 0%, #2a5caa 100%);
    color: #fff;
    padding: 18px 36px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(74, 143, 221, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #5a9fed 0%, #3d6bc7 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 143, 221, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(74, 143, 221, 0.3);
}

.submit-btn i,
.submit-btn span {
    position: relative;
    z-index: 1;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        margin: 20px;
        border-radius: 20px;
    }
    
    .header {
        padding: 40px 30px 30px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .modern-form {
        padding: 30px 25px;
        gap: 25px;
    }
    
    .cidade-checkboxes {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .checkbox-item label {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 15px;
        border-radius: 18px;
    }
    
    .header {
        padding: 35px 20px 25px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .modern-form {
        padding: 25px 20px;
        gap: 22px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 16px 32px;
        font-size: 1.05rem;
    }
    
    .file-upload-label {
        padding: 35px 20px;
    }
}

/* Animação de loading */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}
