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

/* Classe para ocultar elementos */
.hidden {
    display: none !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Registration Screen */
.registration-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
}

.registration-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-width: 450px;
    width: 90%;
    text-align: center;
    animation: slideInUp 0.6s ease-out;
    margin: 20px auto;
    flex-shrink: 0;
}

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

.registration-card .logo-section {
    margin-bottom: 25px;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.brand-container .logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db;
    flex-shrink: 0;
}

.brand-info h1 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.brand-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #555;
}

.brand-item .emoji {
    font-size: 0.9rem;
}

.brand-item span:last-child {
    line-height: 1.2;
}

.youtube-link {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.youtube-link:hover {
    color: #FF0000;
    text-decoration: underline;
}


.registration-card h1 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.registration-card h2 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.registration-card > p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.5;
}

.registration-form {
    text-align: left;
}

.registration-form .form-group {
    margin-bottom: 20px;
}

.registration-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.registration-form .form-group label i {
    color: #3498db;
    width: 16px;
}

.registration-form .form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    box-sizing: border-box;
}

.registration-form .form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: white;
}

.access-btn {
    width: 100%;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.access-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
}

.privacy-note {
    margin-top: 20px;
    color: #666;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.privacy-note i {
    color: #27ae60;
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-brand .logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.header-info h1 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: white;
}

.header-tagline {
    display: flex;
    gap: 8px;
    font-size: 0.7rem;
    opacity: 0.9;
    flex-wrap: wrap;
}

.header-tagline span {
    background: rgba(255,255,255,0.15);
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

.header-youtube-link {
    background: rgba(255,0,0,0.2);
    color: white;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.header-youtube-link:hover {
    background: rgba(255,0,0,0.4);
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 5px;
}

nav a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}


/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.results-cards {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 25px 0;
}

.result-card {
    background: rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    min-width: 250px;
    text-align: center;
    position: relative;
    flex: 1;
    max-width: 320px;
}

.result-card.updating {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.patrimony-card {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.max-value-card {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.patrimony-card .result-value {
    color: #3498db !important;
}

.max-value-card .result-value {
    color: #2ecc71 !important;
}

.result-label {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.result-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.user-info {
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.user-info span {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Calculator Section */
.calculator-section {
    padding: 50px 0;
    background: white;
}

.calculator-section h3 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.calculator-form {
    max-width: 800px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.form-section h4 {
    color: #2c3e50;
    margin-bottom: 18px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h4 i {
    color: #3498db;
}

.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.form-group label i {
    color: #3498db;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: #6c757d;
    font-size: 0.8rem;
}

/* Highlight sections and inputs */
.highlight-section {
    border-left: 4px solid #f39c12 !important;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%) !important;
}

.highlight-section h3 {
    color: #e67e22 !important;
}

.highlight-input {
    background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%) !important;
    border: 2px solid #f39c12 !important;
    font-weight: 600;
}

.highlight-input:focus {
    border-color: #e67e22 !important;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.15) !important;
}

.salary-input label {
    color: #e67e22 !important;
    font-weight: 700;
}

.auto-calculate-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    text-align: center;
    justify-content: center;
}

.auto-calculate-info i {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Results */
.results {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 12px;
    color: white;
    display: none;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item.main-result {
    font-size: 1.1rem;
    font-weight: 700;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: none;
}

.result-item .result-value {
    font-weight: 700;
    font-size: 1.2rem;
}

.main-result .result-value {
    font-size: 1.8rem;
    color: #ffd700;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.contact-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-form .form-group label {
    color: white;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.3);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 90, 36, 0.3);
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 0;
}

footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #2ecc71;
    text-decoration: underline;
}

/* Responsivo */
@media (max-width: 768px) {
    .registration-card {
        padding: 25px 20px;
        margin: 10px;
        width: 95%;
        max-width: 400px;
    }
    
    .brand-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .brand-container .logo-img {
        width: 70px;
        height: 70px;
    }
    
    .brand-info h1 {
        font-size: 1.1rem;
    }
    
    .brand-item {
        justify-content: center;
        font-size: 0.75rem;
    }
    
    
    .registration-card h2 {
        font-size: 1.2rem;
    }
    
    .header-brand {
        flex-direction: column;
        gap: 8px;
    }
    
    .header-info h1 {
        font-size: 1rem;
        text-align: center;
    }
    
    .header-tagline {
        justify-content: center;
        font-size: 0.65rem;
        gap: 4px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .results-cards {
        flex-direction: column;
        gap: 15px;
        margin: 30px 0;
    }
    
    .result-card {
        min-width: auto;
        max-width: none;
        padding: 20px;
    }
    
    .result-value {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .calculator-form {
        padding: 20px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav {
        gap: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .registration-card {
        padding: 20px 15px;
        margin: 5px;
        width: 98%;
        max-width: 350px;
    }
    
    .brand-container .logo-img {
        width: 60px;
        height: 60px;
    }
    
    .brand-info h1 {
        font-size: 1rem;
    }
    
    .brand-item {
        font-size: 0.7rem;
    }
    
    .registration-card h2 {
        font-size: 1.1rem;
    }
    
    .registration-card > p {
        font-size: 0.95rem;
    }
    
    .header-brand .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .header-info h1 {
        font-size: 0.9rem;
    }
    
    .header-tagline {
        font-size: 0.6rem;
        gap: 3px;
    }
    
    .header-tagline span {
        padding: 1px 4px;
    }
    
    .header-youtube-link {
        padding: 1px 4px;
    }
    
    
    .hero {
        padding: 60px 0;
    }
    
    .calculator-section {
        padding: 60px 0;
    }
    
    .calculator-form {
        padding: 15px;
    }
    
    .results-cards {
        margin: 20px 0;
        gap: 10px;
    }
    
    .result-card {
        padding: 15px;
    }
    
    .result-value {
        font-size: 1.8rem;
    }
}

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

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

.form-section:nth-child(2) { animation-delay: 0.1s; }
.form-section:nth-child(3) { animation-delay: 0.2s; }
.form-section:nth-child(4) { animation-delay: 0.3s; }

/* Estados de validação */
.form-group input:invalid {
    border-color: #e74c3c;
}

.form-group input:valid {
    border-color: #27ae60;
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.calculate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(46, 204, 113, 0.3);
}

/* Loading state */
.calculate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}