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

:root {
    --primary: #00d4ff;
    --primary-dark: #00b8e6;
    --secondary: #6c5ce7;
    --success: #00b894;
    --danger: #ff7675;
    --dark: #2d3436;
    --gray: #636e72;
    --light-gray: #f5f6fa;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--light-gray);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    background: var(--gradient);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.logo-icon {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.brand-name {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Form Section */
.form-section {
    padding: 60px 20px;
    max-width: 800px;
    margin: -80px auto 0;
    position: relative;
    z-index: 2;
}

.form-container {
    background: var(--white);
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
}

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

.form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--gray);
    font-size: 16px;
}

/* Steps Indicator */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.step span {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
}

.step.active span {
    color: var(--dark);
    font-weight: 600;
}

.step-line {
    width: 60px;
    height: 3px;
    background: var(--light-gray);
    margin: 0 10px;
}

/* Form Cards */
.form-card {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.form-card:hover {
    border-color: rgba(102, 126, 234, 0.2);
}

.card-icon {
    position: absolute;
    top: -20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    box-shadow: var(--shadow-md);
}

.form-card h3 {
    color: var(--dark);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
    flex: 1;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
}

.form-group label i {
    color: var(--secondary);
    font-size: 16px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e9ed;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.form-group input::placeholder {
    color: #b2b9c4;
}

/* Buttons */
.btn-search-cep {
    width: 100%;
    padding: 14px 20px;
    background: var(--white);
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-search-cep:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit {
    width: 100%;
    padding: 18px 30px;
    background: var(--gradient);
    border: none;
    color: var(--white);
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

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

.terms-text {
    text-align: center;
    margin-top: 20px;
    color: var(--gray);
    font-size: 13px;
}

.terms-text a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Messages */
#message-container {
    margin: 25px 0;
    display: none;
}

.message {
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success);
}

.message.success strong {
    font-weight: 700;
}

.message.success em {
    font-size: 12px;
    opacity: 0.8;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.message i {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

    .brand-name {
        font-size: 32px;
    }

    .form-container {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .form-header h2 {
        font-size: 24px;
    }

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

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

    .steps-indicator {
        padding: 0;
    }

    .step span {
        display: none;
    }

    .step-line {
        width: 40px;
        margin: 0 5px;
    }

}

/* Loading Animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
