:root {
    --primary-color: #6200EA; /* Purple */
    --primary-hover: #3700B3;
    --text-color: #333;
    --gray-light: #f5f5f5;
    --border-color: #ddd;
    --error-color: #ff4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    height: 100vh;
    overflow: hidden; /* Prevent scrolling on body, handle in containers */
}

.main-container {
    display: flex;
    height: 100%;
    width: 100%;
}

/* Sidebar (Left) */
.sidebar {
    width: 45%;
    background-color: #1a1a1a;
    background-image: url('equipe.png'); /* Team photo */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: white;
}

.sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.9));
    z-index: 1;
}

.sidebar-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.logo-container {
    position: absolute;
    top: -80vh; /* Position logo at top */
    left: 0;
}

.logo {
    height: 40px;
    width: auto;
}

/* Team Banner (Mobile Only) - Simple Container */
.team-banner-mobile {
    display: none; /* Always hidden by default */
}

.team-banner-mobile img {
    width: 100%;
    height: auto;
    display: block;
}

/* Dynamic Testimonial Card (Below Form) - Original Style + Logo */
.form-testimonial-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: 30px;
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.testimonial-logo {
    display: none;
    text-align: center;
    padding: 20px 20px 10px;
    border-bottom: 1px solid #f5f5f5;
    transition: opacity 0.3s ease;
}

.testimonial-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%; /* Logo redonda */
    object-fit: contain; /* Mantém proporção sem cortar */
    background: white;
    padding: 10px;
    border: 3px solid #f3e5f5;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #9c27b0);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(98, 0, 234, 0.3);
}

.quote-icon {
    color: var(--primary-color);
    font-size: 40px;
    line-height: 1;
    font-family: serif;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
    padding: 25px 30px 20px;
    text-align: center;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

/* Hide quote icon when logo is present */
.form-testimonial-card:has(.testimonial-logo img) .quote-icon {
    display: none;
}

.testimonial-author {
    background-color: #f3e5f5;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid #e1bee7;
    transition: opacity 0.3s ease;
}

/* Form Area (Right) */
.form-area {
    width: 55%;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow-y: auto;
}

.form-header {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.btn-back {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.2s;
}

.btn-back:hover {
    background: #f0f0f0;
}

.mobile-logo {
    display: none; /* Hidden on desktop */
}

.mobile-logo img {
    height: 30px;
}

    #wizard-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto; /* Center form on mobile when display is block */
}

.step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-intro {
    color: #888;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.step-question {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #111;
}

.step-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
    font-weight: 400;
}

.step-subtitle:last-of-type {
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 30px;
}

input, select, textarea {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Inter', sans-serif;
    background: white;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(98, 0, 234, 0.1);
}

/* Phone Input Styling */
.phone-group {
    position: relative;
}

.phone-group input {
    padding-left: 60px;
}

.flag-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
}

.btn-next {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px; /* Mais arredondado */
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-next:hover {
    background-color: var(--primary-hover);
}

.btn-next:active {
    transform: scale(0.98);
}

.arrow {
    font-size: 20px;
    line-height: 1;
}

.footer-links {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #999;
    padding: 0 20px;
}

.footer-links a {
    color: #777;
    text-decoration: none;
}

.footer-links p {
    margin-bottom: 5px;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 0;
}

.check-icon {
    width: 80px;
    height: 80px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        display: none; /* Hide sidebar on mobile as per standard wizard pattern */
    }

    .form-area {
        width: 100%;
        height: 100vh; /* Fixed height for scroll to work */
        display: block; /* Change from flex to block for scroll to work */
        padding: 20px;
        padding-bottom: 60px; /* Extra space at bottom */
        padding-top: 80px;
        overflow-y: scroll; /* Force scroll */
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    }

    .form-header {
        top: 20px;
        left: 20px;
        right: 20px;
    }

    .mobile-logo {
        display: block;
    }

    /* Show team banner on mobile ONLY with .show class - Full width, no margins */
    .team-banner-mobile.show {
        display: block;
        width: 100vw; /* Full viewport width */
        margin: 0 0 20px 0;
        margin-left: -20px; /* Compensate for form-area padding */
        max-width: none;
    }
    
    .team-banner-mobile.show img {
        border-radius: 0; /* No rounded corners */
        width: 100%;
        height: auto; /* Natural height - no cropping */
        max-width: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }
    
    /* Adjust padding on step 1 */
    .form-area.step-1 {
        padding-top: 0 !important; /* No top padding, banner is at top */
        padding-bottom: 80px !important; /* More space for scrolling */
    }

    .step-question {
        font-size: 24px;
    }

    input, select, textarea {
        font-size: 14px; /* Smaller font for mobile */
        padding: 12px 10px;
        text-overflow: ellipsis;
    }

    select {
        padding-right: 30px; /* Space for arrow */
    }
    
    /* Ensure long text in dropdowns doesn't break layout */
    option {
        font-size: 12px;
        white-space: normal;
    }

    .btn-next {
        width: 100%;
        justify-content: center;
    }
    
    /* Mobile testimonial adjustments */
    .form-testimonial-card {
        margin-top: 15px; /* Reduced margin */
        margin-bottom: 20px; /* Space at bottom for scroll */
    }

    .testimonial-text {
        font-size: 14px;
        padding: 35px 20px 15px;
    }

    .testimonial-author {
        font-size: 13px;
        padding: 10px 15px;
    }

    .testimonial-logo {
        padding: 15px 15px 10px;
    }

    .testimonial-logo img {
        width: 100px !important;
        height: 100px !important;
        max-width: none;
        max-height: none;
        border-radius: 50% !important;
        object-fit: contain !important;
        background: white;
        padding: 10px;
        border: 3px solid #f3e5f5;
    }
    
    .footer-links {
        position: relative;
        margin-top: 40px;
        bottom: auto;
    }
}
