/* ==========================================
   Interactive Questionnaire Styling
   ========================================== */

body {
    background-color: var(--ake-light-bg);
    margin: 0;
    overflow-x: hidden; 
    overflow-y: auto;
}

.q-navbar {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

.q-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    padding-top: 120px;
    padding-bottom: 80px;
}

.q-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(22, 119, 255, 0.1);
    z-index: 100;
}

.q-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--ake-blue);
    transition: width 0.4s ease-in-out;
}

.q-content-wrapper {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin: auto 0;
    min-height: 400px;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.fade-out-up {
    animation: fadeOutUp 0.4s ease forwards;
}

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

@keyframes fadeOutUp {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Typography */
.q-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--ake-blue);
    margin-bottom: 12px;
    line-height: 1.2;
}

.q-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 500;
}

/* Options */
.q-options-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.q-option {
    background: var(--ake-white);
    border: 2px solid rgba(22, 119, 255, 0.1);
    border-radius: 12px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ake-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.q-option:hover {
    transform: translateY(-2px);
    border-color: var(--ake-blue);
    box-shadow: 0 8px 25px rgba(22, 119, 255, 0.1);
}

.q-option.selected {
    background: rgba(22, 119, 255, 0.05);
    border-color: var(--ake-blue);
    color: var(--ake-blue);
}

/* Form inputs */
.q-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(22, 119, 255, 0.2);
    font-size: 2rem;
    font-weight: 700;
    color: var(--ake-blue);
    padding: 10px 0;
    outline: none;
    transition: border-color 0.3s;
    font-family: 'Satoshi', sans-serif;
}

.q-input::placeholder {
    color: rgba(22, 119, 255, 0.3);
}

.q-input:focus {
    border-color: var(--ake-blue);
}

/* Checkboxes */
.q-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 20px;
    background: rgba(22, 119, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(22, 119, 255, 0.1);
}

.q-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-top: 2px;
    accent-color: var(--ake-blue);
}

.q-checkbox-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ake-dark);
    line-height: 1.5;
    cursor: pointer;
}

/* Navigation Buttons */
.q-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    width: 100%;
    justify-content: flex-start;
}

.q-btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.q-btn-primary {
    background: var(--ake-blue);
    color: var(--ake-white);
    box-shadow: 0 4px 15px rgba(22, 119, 255, 0.3);
}

.q-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 119, 255, 0.4);
    background: var(--ake-blue-dark);
}

.q-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid rgba(22, 119, 255, 0.2);
}

.q-btn-secondary:hover {
    background: rgba(22, 119, 255, 0.05);
    color: var(--ake-blue);
}

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

/* Summary Box */
.q-summary-box {
    background: var(--ake-white);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 24px;
}

.q-summary-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.q-summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.q-summary-q {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 700;
}

.q-summary-a {
    font-size: 1.1rem;
    color: var(--ake-dark);
    font-weight: 500;
}
