/* The rendered question: its section wrapper, option buttons, and text inputs. */

.question-section {
    text-align: center;
    display: none;
    animation: fadeIn 0.4s ease-out;
    width: 100%;
    max-width: 100%;
}
.question-section.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.question {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 500;
}

.options {
    margin: 20px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.option-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 16px 24px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
    text-align: center;
}
/* Touch feedback for option buttons */
.option-btn:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}
.option-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.option-btn.selected {
    background: var(--gradient-success);
    color: white;
    border-color: var(--accent-success);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.text-input {
    width: 100%;
    max-width: 400px;
    padding: 16px;
    font-size: 1.1em;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin: 20px auto;
    display: block;
    text-align: center;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.text-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.text-input::placeholder {
    color: var(--text-muted);
}

.textarea-input {
    width: 100%;
    max-width: 500px;
    padding: 16px;
    font-size: 1.1em;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin: 20px auto;
    display: block;
    min-height: 120px;
    resize: vertical;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.textarea-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.textarea-input::placeholder {
    color: var(--text-muted);
}

/* Mobile question section adjustments */
@media (max-width: 768px) {
    .question-section {
        display: none;
        margin: 0 auto;
        width: 100%;
    }
    .question-section.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .question {
        font-size: 1.15em;
        margin-bottom: 24px;
        padding: 0 5px;
    }
    .options {
        margin: 16px 0;
        width: 100%;
        gap: 10px;
    }
    .option-btn {
        max-width: 100%;
        margin: 0;
        padding: 16px 20px;
        font-size: 1em;
        min-height: 52px;
    }
    .text-input, .textarea-input {
        max-width: 100%;
        margin: 16px 0;
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    .textarea-input {
        min-height: 100px;
    }
}

/* Small phone adjustments */
@media (max-width: 375px) {
    .question {
        font-size: 1.05em;
        margin-bottom: 18px;
    }
    .option-btn {
        padding: 14px 16px;
        font-size: 0.95em;
    }
}
