/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais */
    --primary-color: #00D4AA;
    --primary-dark: #00B894;
    --background-dark: #0A0A0A;
    --background-darker: #000000;
    --text-white: #FFFFFF;
    --text-gray: #B0B0B0;
    --text-light-gray: #E0E0E0;
    --border-color: #333333;
    --success-color: #00D4AA;
    --error-color: #FF6B6B;
    
    /* Tipografia */
    --font-primary: 'Inter', sans-serif;
    --font-brand: 'Sora', sans-serif;
    
    /* Espaçamentos */
    --border-radius: 12px;
    --border-radius-large: 20px;
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Tipografia base */
body {
    font-family: var(--font-primary);
    /* background-color: var(--background-darker); */
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background com bg-desk */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/bg-desk.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    opacity: 1;
    z-index: -2;
    display: block !important;
}

/* Overlay escuro sobre o fundo */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.brand-name {
    font-family: var(--font-brand);
    font-weight: 700;
    color: var(--text-white);
}

/* Top Header */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.header-logo-img {
    height: 45px;
    width: auto;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.header-logo-img:hover {
    opacity: 1;
}

/* Main Container */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 40px; /* Top padding aumentado para compensar o header maior */
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Form Section */
.form-section {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.form-container {
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-white);
    line-height: 1.2;
}

.form-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Styling */
.lead-form {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--border-radius-large);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

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

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-light-gray);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
    min-height: 48px;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
    background: rgba(0, 0, 0, 0.8);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23B0B0B0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.form-group select option {
    background: var(--background-darker);
    color: var(--text-white);
}

/* Checkbox personalizado */
.form-terms {
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-gray);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-top: 2px;
    background: rgba(0, 0, 0, 0.3);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: var(--background-darker);
    font-weight: bold;
    font-size: 12px;
}

.terms-text {
    flex: 1;
    line-height: 1.6;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.terms-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Botão */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--background-darker);
    border: none;
    padding: 16px 32px;
    border-radius: var(--border-radius-large);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 56px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.3);
}

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

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--background-darker);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Disclaimer */
.disclaimer {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.disclaimer-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.disclaimer-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.footer-left {
    display: flex;
    align-items: center;
}

.footer-contact {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-large);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer-contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="diamond" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse"><polygon points="5,0 10,5 5,10 0,5" fill="%23333" stroke="%23555" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23diamond)"/></svg>') repeat;
    opacity: 0.3;
    z-index: 0;
}

.footer-contact h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-white);
    position: relative;
    z-index: 1;
}

.btn-contact {
    background: var(--text-white);
    color: var(--background-darker);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.btn-contact:hover {
    background: var(--text-light-gray);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-white);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--background-darker);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.3);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-logo {
    display: flex;
    justify-content: flex-end;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    opacity: 0.8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-large);
    padding: 40px;
    max-width: 500px;
    margin: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.modal-body p {
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--text-light-gray);
}

.modal-signature {
    margin-top: 24px;
    text-align: center;
    color: var(--primary-color);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Estados de validação */
.form-group.error input,
.form-group.error select {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group.success input,
.form-group.success select {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .main-container {
        padding: 100px 15px 20px;
        min-height: auto;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lead-form {
        padding: 30px 20px;
    }
    
    .form-header h1 {
        font-size: 1.8rem;
    }
    
    .modal-content {
        margin: 10px;
        padding: 30px 20px;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .header-logo-img {
        height: 35px;
    }
    
    .top-header {
        padding: 15px 0;
    }
    
    /* Footer responsivo */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-contact {
        padding: 30px 20px;
    }
    
    .footer-contact h3 {
        font-size: 1.3rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 780px) {
    .main-container {
        padding: 90px 10px 15px;
    }
    
    .lead-form {
        padding: 25px 15px;
    }
    
    .form-header {
        margin-bottom: 30px;
    }
    
    .form-header h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .form-header p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    /* Melhorias para inputs mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Evita zoom no iOS */
        padding: 12px 15px;
        min-height: 48px; /* Tamanho mínimo para toque */
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    .form-group textarea {
        min-height: 80px;
        resize: vertical;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    /* Ajustes para selects longos */
    .form-group select {
        background-size: 12px;
        padding-right: 35px;
    }
    
    /* Ajustes para botões */
    .btn-primary {
        padding: 14px 24px;
        font-size: 15px;
        min-height: 50px;
        width: 100%; /* Botão full width no mobile */
    }
    
    /* Ajustes para checkbox */
    .checkbox-label {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .checkmark {
        min-width: 20px;
        min-height: 20px;
    }
    
    .header-logo-img {
        height: 30px;
    }
    
    .top-header {
        padding: 12px 0;
    }
    
    /* Footer mobile */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        padding: 0 15px;
        gap: 30px;
    }
    
    .footer-contact {
        padding: 25px 15px;
    }
    
    .footer-contact h3 {
        font-size: 1.2rem;
    }
    
    .footer-columns {
        gap: 25px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
    
    .social-icon svg {
        width: 18px;
        height: 18px;
    }
    
    /* Melhorias adicionais para mobile */
    .form-container {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .form-grid {
        gap: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    /* Ajustes para modal mobile */
    .modal-content {
        margin: 10px;
        padding: 25px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .modal-body p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Ajustes para disclaimer mobile */
    .disclaimer {
        padding: 20px 15px;
    }
    
    .disclaimer-content h3 {
        font-size: 1.2rem;
    }
    
    .disclaimer-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* Ajustes específicos para telas muito pequenas */
@media (max-width: 360px) {
    .main-container {
        padding: 80px 8px 10px;
    }
    
    .lead-form {
        padding: 20px 12px;
    }
    
    .form-header h1 {
        font-size: 1.4rem;
    }
    
    .form-header p {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    .btn-primary {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .modal-content {
        margin: 5px;
        padding: 20px 15px;
    }
}


/* Estilos específicos para textarea */
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    resize: vertical;
    min-height: 100px;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
    background: rgba(0, 0, 0, 0.8);
}

.form-group textarea::placeholder {
    color: var(--text-gray);
    opacity: 0.8;
}

/* Estados de validação para textarea */
.form-group.error textarea {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group.success textarea {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}
