* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #fe1a6b;
    --primary-purple-light: #fe1a6b;
    --primary-purple-dark: #e0155d;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background: #ffffff;
    --background-secondary: #f9fafb;
    --background-tertiary: #f3f4f6;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #192029;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    position: relative;
}

.header-brand h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.025em;
}

.description {
    font-size: 1.125rem;
    opacity: 0.95;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Progress */
.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-purple-light));
    width: 20%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Form Container */
.form-container {
    background: var(--background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

.form-section {
    padding: 3rem 2rem;
    display: none;
    animation: fadeIn 0.3s ease-out;
    min-height: 600px;
}

.form-section.active {
    display: block;
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Grid */
.form-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
}

.label-hint {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-style: italic;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background);
    color: var(--text-primary);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(164, 55, 25, 0.1);
}

.form-group input::placeholder {
    color: var(--text-light);
}

/* Textarea */
.textarea-input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background);
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
    line-height: 1.5;
}

.textarea-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(164, 55, 25, 0.1);
}

.textarea-input::placeholder {
    color: var(--text-light);
}

/* Full-width text input (for conditional reveals) */
.text-input-full {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background);
    color: var(--text-primary);
    font-family: inherit;
}

.text-input-full:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(164, 55, 25, 0.1);
}

.text-input-full::placeholder {
    color: var(--text-light);
}

/* Radio Groups */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-label {
    padding: 0.75rem 1rem;
    background: var(--background-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
    font-size: 0.875rem;
}

.radio-label:hover {
    border-color: var(--primary-purple-light);
    background: rgba(164, 55, 25, 0.05);
}

.radio-group input[type="radio"]:checked + .radio-label {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Slider text label (for text-based sliders) */
.slider-text-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-purple);
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(164, 55, 25, 0.08);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(164, 55, 25, 0.15);
}

/* Comfort Scenarios (reused for all sliders) */
.comfort-scenarios {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.scenario-item {
    padding: 1.5rem;
    background: var(--background-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
}

.scenario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.scenario-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    padding-right: 1rem;
}

.scenario-value {
    background: var(--primary-purple);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.scenario-slider {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #ef4444, #f59e0b, #eab308, #84cc16, #10b981);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 0.75rem;
}

.scenario-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--primary-purple);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.scenario-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--primary-purple);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.scenario-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Challenges/Barriers Grid */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.acompanha-grid {
    grid-template-columns: repeat(2, 1fr);
}

.challenge-card {
    padding: 1.5rem;
    background: var(--background-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.challenge-card:hover {
    border-color: var(--primary-purple-light);
    background: rgba(164, 55, 25, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.challenge-card.selected {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-lg);
}

.challenge-card.selected .material-icons {
    color: white !important;
}

.challenge-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.challenge-icon .material-icons {
    font-size: inherit;
    color: var(--primary-purple);
}

.challenge-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.challenge-card p {
    font-size: 0.875rem;
    opacity: 0.8;
    line-height: 1.4;
}

/* Outro input reveal */
.outro-input {
    margin-top: 0.75rem;
}

/* Consent Section */
.consent-section {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.consent-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--background-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
}

.consent-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.consent-content h4 .material-icons {
    color: var(--primary-purple);
    font-size: 1.25rem;
}

.consent-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.consent-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: var(--transition);
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

input:checked + .toggle-slider {
    background-color: var(--primary-purple);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

.final-message {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(164, 55, 25, 0.08), rgba(209, 94, 62, 0.08));
    border-radius: var(--radius-md);
    border: 2px solid rgba(164, 55, 25, 0.15);
}

.message-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.message-icon .material-icons {
    font-size: inherit;
    color: var(--primary-purple);
}

.final-message h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.final-message p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Section Footer */
.section-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 2rem;
    gap: 1rem;
}

.section-footer:has(.btn-primary:only-child) {
    justify-content: center;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 120px;
}

.btn-primary {
    background: var(--primary-purple);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-purple-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-primary.large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-secondary {
    background: var(--background-secondary);
    color: var(--text-secondary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--background-tertiary);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--background);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
    position: relative;
}

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

.modal-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border);
}

.modal-icon {
    font-size: 3rem;
    color: var(--warning);
    margin-bottom: 1rem;
    display: block;
}

.modal-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.modal-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--background-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.modal-benefits li .material-icons {
    color: var(--error);
    font-size: 1.25rem;
}

.modal-highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--background-tertiary);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-purple);
}

.modal-highlight .material-icons {
    color: var(--primary-purple);
    font-size: 1.25rem;
}

.modal-highlight p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.modal-actions {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.btn-modal-primary,
.btn-modal-secondary {
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-modal-primary {
    background: var(--primary-purple);
    color: white;
    order: 1;
}

.btn-modal-primary:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-modal-primary .material-icons {
    font-size: 1.125rem;
}

.btn-modal-secondary {
    background: var(--background-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    order: 2;
}

.btn-modal-secondary:hover {
    background: var(--background-tertiary);
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .modal-actions {
        flex-direction: row-reverse;
    }
    .btn-modal-primary,
    .btn-modal-secondary {
        flex: 1;
    }
}

.consent-toggle.accepted .toggle-slider {
    background: var(--primary-purple) !important;
}

.consent-toggle.accepted .toggle-text {
    color: var(--primary-purple);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .form-section {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .form-grid {
        gap: 1rem;
    }

    .radio-group {
        grid-template-columns: 1fr 1fr;
    }

    .challenges-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .acompanha-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .consent-item {
        flex-direction: column;
        gap: 1rem;
    }

    .consent-toggle {
        flex-direction: row;
        align-items: center;
        align-self: flex-start;
    }

    .section-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .scenario-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .challenges-grid {
        grid-template-columns: 1fr;
    }

    .acompanha-grid {
        grid-template-columns: 1fr;
    }

    .radio-group {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
