/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #FF6B00;
    --primary-hover: #e05e00;
    --primary-light: rgba(255, 107, 0, 0.1);
    --bg-dark: #0D0D0D;
    --bg-card: #161616;
    --bg-card-hover: #222222;
    --text-white: #F5F2EE;
    --text-muted: #8E8E93;
    --border-color: rgba(245, 242, 238, 0.1);
    --border-focus: rgba(255, 107, 0, 0.5);
    --success: #30D158;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/fundo_sutil.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.04; /* muito sutil */
    z-index: -1;
    pointer-events: none;
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 600px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    position: relative;
}

/* Header */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    z-index: 10;
}

.logo {
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Main Content Wrapper */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

/* Cards styling */
.step-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hidden {
    display: none !important;
}

/* Hero Section (Step 0) */
.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.badge {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.badge.success {
    background: rgba(48, 209, 88, 0.1);
    color: var(--success);
    border-color: var(--success);
}

.headline {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.subheadline {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 450px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    width: 100%;
    max-width: 320px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

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

/* Quiz Container & Progress Bar */
.quiz-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-bottom: 2.5rem;
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem;
    transition: var(--transition);
}

.btn-back:hover {
    color: var(--text-white);
}

.progress-bar-container {
    flex-grow: 1;
    height: 6px;
    background-color: var(--bg-card);
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 20%;
    background-color: var(--primary);
    border-radius: 99px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* Question Content */
.question-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.question-number {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.question-title {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-white);
}

/* Options Grid */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.option-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.1rem 1.3rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-height: 58px;
}

.option-card:hover {
    border-color: var(--primary);
    background-color: var(--bg-card-hover);
    transform: translateX(4px);
}

.option-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.option-card:hover .option-marker {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.option-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-white);
}

/* Form Content */
.form-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.form-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 450px;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.lead-form input {
    width: 100%;
    padding: 1.1rem 1.1rem 1.1rem 2.8rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1rem;
    transition: var(--transition);
}

.lead-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.btn-submit {
    margin: 1rem auto 0;
}

/* Confirmation Page */
.confirm-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.success-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.success-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(48, 209, 88, 0.1);
    border: 2px solid var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.check-icon {
    color: var(--success);
    width: 40px;
    height: 40px;
}

.confirm-title {
    font-size: 2rem;
    font-weight: 700;
}

.confirm-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 400px;
}

.notice-card {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.notice-icon {
    color: var(--primary);
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 2rem;
}

/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsiveness Settings */
@media (max-width: 480px) {
    .app-container {
        padding: 1rem;
    }
    
    .headline {
        font-size: 1.8rem;
    }
    
    .question-title {
        font-size: 1.4rem;
    }
    
    .option-card {
        padding: 0.9rem 1.1rem;
        min-height: 52px;
    }
    
    .btn {
        padding: 0.9rem 1.5rem;
    }
}

/* Pool Loading Animation */
.pool-loader-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.pool-loader {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid var(--primary); /* Laranja Proarts */
    position: relative;
    overflow: hidden;
    background: #111;
    box-shadow: 0 0 25px rgba(255, 107, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
}

.pool-loader::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(180deg, #00E5FF 0%, #0083B0 100%); /* Azul piscina cristal */
    border-radius: 38%;
    top: 100%;
    left: -50%;
    animation: waveFill 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards, spin 8s linear infinite;
    z-index: 1;
}

.pool-loader::after {
    content: '🏊';
    font-size: 2rem;
    z-index: 2;
    position: relative;
    animation: floatSwimmer 2s ease-in-out infinite;
}

@keyframes waveFill {
    from {
        top: 100%;
    }
    to {
        top: 15%; /* Fills the circle up to 85% */
    }
}

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

@keyframes floatSwimmer {
    0%, 100% {
        transform: translateY(3px) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(-5deg);
    }
}
