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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Progress bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e9ecef;
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
    transition: width 0.4s ease;
    width: 0%;
}

/* Form wrapper - centers the card */
.form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    margin-top: 4px;
}

/* Main form card */
.form-card {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    overflow: hidden;
    max-height: calc(100vh - 80px);
    flex-direction: column;
}

/* Question container */
.question {
    padding: 48px;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    overflow-x: hidden;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #ff6b35 #f1f1f1;
}

/* Only animate welcome screen on first load */
.welcome-screen {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-header {
    margin-bottom: 32px;
}

.question-number {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ff6b35;
    background: #fff5f0;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.question-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 8px;
}

.question-description {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Question body */
.question-body {
    flex: 1;
}

/* Choices */
.choices {
    display: grid;
    gap: 12px;
}

.choice-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 20px 24px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.choice-btn:hover {
    background: #fff;
    border-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.12);
}

.choice-btn.selected {
    background: #fff5f0;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.choice-btn::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.choice-btn.selected::before {
    border-color: #ff6b35;
    background: #ff6b35;
    box-shadow: inset 0 0 0 4px white;
}

.choice-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    padding-right: 40px;
}

.choice-description {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    padding-right: 40px;
}

/* Input fields */
.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.input-field:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Navigation - INSIDE the card */
.question-footer {
    padding: 32px 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    position: relative;
}

.btn {
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: 0;
}

.btn-primary {
    background: #ff6b35;
    color: white;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: #f7931e;
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Back arrow - subtle, on the left */
.back-arrow {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: #6c757d;
    font-size: 1.2rem;
}

.back-arrow:hover {
    background: #f8f9fa;
    color: #ff6b35;
}

/* Welcome screen specific */
.welcome-screen {
    text-align: center;
}

.welcome-screen .question-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.welcome-screen .question-description {
    font-size: 1.15rem;
    max-width: 500px;
    margin: 0 auto 40px;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

/* Interactive slider */
.scale-container {
    margin: 30px 0;
}

.slider-label-display {
    text-align: center;
    margin-bottom: 30px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-label-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b35;
    transition: all 0.3s ease;
}

.slider-wrapper {
    position: relative;
    padding: 20px 0;
}

.slider-track {
    position: relative;
    height: 8px;
    background: linear-gradient(to right, #e9ecef 0%, #ff6b35 50%, #f7931e 100%);
    border-radius: 10px;
    margin: 0 10px;
}

.slider-input {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ff6b35;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    cursor: grab;
    transition: all 0.2s ease;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.5);
}

.slider-input::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.15);
}

.slider-input::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ff6b35;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    cursor: grab;
    transition: all 0.2s ease;
}

.slider-input::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.5);
}

.slider-input::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(1.15);
}

.slider-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0 10px;
}

.slider-marker {
    font-size: 0.75rem;
    color: #adb5bd;
    font-weight: 600;
}

.slider-value-display {
    text-align: center;
    margin-top: 16px;
    font-size: 2rem;
    font-weight: 800;
    color: #ff6b35;
}

/* Calendly question - full screen */
.calendly-question {
    padding: 20px !important;
}

.calendly-question .question-header {
    margin-bottom: 8px !important;
}

.calendly-body {
    flex: 1;
}

.calendly-inline-widget {
    min-width: 320px;
    height: calc(100vh - 180px);
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
}

/* Thank you screen */
.thank-you-icon {
    font-size: 5rem;
    margin-bottom: 24px;
}

.booth-info {
    background: #fff5f0;
    border: 2px solid #ff6b35;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
}

.booth-info h3 {
    color: #ff6b35;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.booth-info ul {
    list-style: none;
    margin-left: 0;
}

.booth-info li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 10px;
        align-items: flex-start;
    }

    .form-card {
        border-radius: 12px;
        min-height: auto;
        max-height: calc(100vh - 20px);
    }

    .question {
        padding: 24px 20px;
    }

    .question-header {
        margin-bottom: 20px;
    }

    .question-number {
        font-size: 0.65rem;
        padding: 4px 10px;
        margin-bottom: 10px;
    }

    .question-footer {
        padding: 16px 20px;
    }

    .back-arrow {
        left: 20px;
        width: 36px;
        height: 36px;
    }

    .question-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .question-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .welcome-screen .question-title {
        font-size: 1.8rem;
    }

    .welcome-screen .question-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .welcome-icon {
        font-size: 3.5rem;
        margin-bottom: 16px;
    }

    .choice-btn {
        padding: 14px 16px;
    }

    .choice-title {
        font-size: 1rem;
        margin-bottom: 3px;
    }

    .choice-description {
        font-size: 0.85rem;
    }

    .input-group {
        margin-bottom: 14px;
    }

    .input-label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .input-field {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .btn {
        padding: 10px 28px;
        font-size: 0.9rem;
    }

    .scale-container {
        margin: 20px 0;
    }

    .slider-label-text {
        font-size: 1.2rem;
    }

    .slider-label-display {
        min-height: 50px;
        margin-bottom: 20px;
    }

    .slider-value-display {
        font-size: 1.5rem;
    }

    .calendly-question {
        padding: 16px !important;
    }

    .calendly-inline-widget {
        height: calc(100vh - 160px);
    }

    .booth-info {
        padding: 20px;
        margin: 20px 0;
    }

    .booth-info h3 {
        font-size: 1.1rem;
        margin-bottom: 14px;
    }

    .booth-info li {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .thank-you-icon {
        font-size: 4rem;
        margin-bottom: 16px;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .question {
        padding: 20px 16px;
    }

    .question-title {
        font-size: 1.2rem;
    }

    .question-description {
        font-size: 0.85rem;
    }

    .scale-options {
        gap: 3px;
    }

    .scale-option {
        padding: 8px 2px;
        font-size: 0.8rem;
    }

    .choice-btn {
        padding: 12px 14px;
    }

    .btn {
        padding: 10px 24px;
    }
}

/* Landscape mobile - even more compact */
@media (max-height: 700px) and (max-width: 768px) {
    .question {
        padding: 16px 20px;
    }

    .question-header {
        margin-bottom: 16px;
    }

    .question-title {
        font-size: 1.2rem;
    }

    .question-footer {
        padding: 12px 20px;
    }

    .slider-label-text {
        font-size: 1rem;
    }

    .slider-label-display {
        min-height: 40px;
    }

    .calendly-question {
        padding: 12px !important;
    }

    .calendly-inline-widget {
        height: calc(100vh - 140px);
    }
}

/* Scrollbar visível na área de conteúdo */
.question::-webkit-scrollbar {
    width: 12px;
}

.question::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.question::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 10px;
}

.question::-webkit-scrollbar-thumb:hover {
    background: #e55a25;
}
