/**
 * German VAT Platform - Questionnaire Stylesheet v2
 * ===================================================
 */

/* === Container === */
.q-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

/* === Progress Bar === */
.q-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--gv-border, #e5e7eb);
    border-radius: 3px;
    margin-bottom: 2.5rem;
    overflow: hidden;
}
.q-progress-fill {
    height: 100%;
    background: var(--gv-accent, #10b981);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* === Step Indicator === */
.q-step-indicator {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gv-accent, #10b981);
    margin-bottom: 0.75rem;
}

/* === Question === */
.q-question {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gv-text, #1e293b);
    line-height: 1.25;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.q-description {
    font-size: 1rem;
    color: var(--gv-secondary, #64748b);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* === Single Choice Options === */
.q-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.q-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.125rem 1.25rem;
    background: #fff;
    border: 2px solid var(--gv-border, #e5e7eb);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}
.q-option:hover {
    border-color: var(--gv-primary, #1e3a5f);
    background: #f8fafc;
    transform: translateX(4px);
}
.q-option:active { transform: translateX(2px); }
.q-option-radio {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border: 2px solid var(--gv-border, #e5e7eb);
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
}
.q-option:hover .q-option-radio { border-color: var(--gv-primary, #1e3a5f); }
.q-option:hover .q-option-radio::after {
    content: '';
    position: absolute; top: 4px; left: 4px;
    width: 10px; height: 10px;
    background: var(--gv-primary, #1e3a5f);
    border-radius: 50%; opacity: 0.3;
}
.q-option-content { flex: 1; min-width: 0; }
.q-option-label { display: block; font-weight: 600; font-size: 1rem; color: var(--gv-text, #1e293b); line-height: 1.3; }
.q-option-sublabel { display: block; font-size: 0.875rem; color: var(--gv-secondary, #64748b); margin-top: 0.2rem; line-height: 1.4; }
.q-option-arrow { flex-shrink: 0; color: var(--gv-border, #e5e7eb); font-size: 1rem; transition: all 0.2s ease; }
.q-option:hover .q-option-arrow { color: var(--gv-primary, #1e3a5f); transform: translateX(3px); }

/* === PE Confirmation === */
.q-pe-confirm {
    margin-bottom: 2rem;
}
.q-pe-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0 1.5rem;
}
.q-pe-disclaimer i {
    color: var(--gv-accent, #10b981);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.q-pe-disclaimer small {
    color: var(--gv-secondary, #64748b);
    line-height: 1.6;
    font-size: 0.825rem;
}
.q-pe-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === Checklist === */
.q-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.q-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 2px solid var(--gv-border, #e5e7eb);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    line-height: 1.5;
}
.q-checklist-item:hover { border-color: var(--gv-primary, #1e3a5f); }
.q-checklist-item input[type="checkbox"] { display: none; }
.q-checklist-box {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border: 2px solid var(--gv-border, #e5e7eb);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
    margin-top: 1px;
}
.q-checklist-box i { font-size: 0.875rem; color: transparent; transition: color 0.2s; }
.q-checklist-item input:checked + .q-checklist-box {
    background: var(--gv-accent, #10b981);
    border-color: var(--gv-accent, #10b981);
}
.q-checklist-item input:checked + .q-checklist-box i { color: #fff; }
.q-checklist-actions {
    display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.q-checklist-actions .btn { flex: 1; min-width: 200px; }

/* === Navigation === */
.q-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gv-border, #e5e7eb);
}
.q-back-btn { font-weight: 500; }

/* === Summary Table === */
.q-summary-table {
    background: #fff;
    border: 1px solid var(--gv-border, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.q-summary-row {
    display: flex;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--gv-border, #e5e7eb);
    gap: 1rem;
    align-items: flex-start;
}
.q-summary-row:last-child { border-bottom: none; }
.q-summary-label {
    flex: 0 0 180px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gv-secondary, #64748b);
    padding-top: 2px;
}
.q-summary-value {
    flex: 1;
    font-size: 0.95rem;
    color: var(--gv-text, #1e293b);
    line-height: 1.4;
}
.q-summary-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.q-summary-actions .btn { min-width: 200px; }

/* === Result Screen === */
.q-result {
    text-align: center;
    padding: 1rem 0;
}
.q-result-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}
.q-result-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gv-text, #1e293b);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.q-result-message {
    font-size: 1.05rem;
    color: var(--gv-secondary, #64748b);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 2rem;
}
.q-result-extra {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-align: left;
    max-width: 560px;
    margin: 0 auto 2rem;
    font-size: 0.925rem;
    line-height: 1.6;
}
.q-result-extra > i {
    font-size: 1.5rem; color: #f59e0b; flex-shrink: 0; margin-top: 2px;
}
.q-result-extra-green {
    background: #f0fdf4;
    border-color: #86efac;
}
.q-result-extra-green > i { color: var(--gv-accent, #10b981); }
.q-result-summary {
    background: var(--gv-bg-light, #f8fafc);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-align: left;
    max-width: 560px;
    margin: 2rem auto 1.5rem;
}
.q-result-summary h6 {
    font-weight: 700; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--gv-secondary, #64748b);
    margin-bottom: 0.75rem;
}
.q-result-summary ul { list-style: none; padding: 0; margin: 0; }
.q-result-summary li {
    padding: 0.3rem 0; font-size: 0.9rem; color: var(--gv-text, #1e293b);
}
.q-result-disclaimer {
    display: flex; align-items: flex-start; gap: 0.5rem;
    max-width: 560px; margin: 0 auto 2rem;
    padding: 1rem; background: #f1f5f9; border-radius: 8px; text-align: left;
}
.q-result-disclaimer i { color: var(--gv-secondary, #64748b); flex-shrink: 0; margin-top: 2px; }
.q-result-disclaimer small { color: var(--gv-secondary, #64748b); line-height: 1.6; font-size: 0.8rem; }
.q-result-actions {
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.q-result-actions .btn-lg { min-width: 280px; }
.q-restart-btn { font-size: 0.875rem; }

/* === Reference Key Box === */
.q-ref-key-box {
    background: #f0fdf4;
    border: 2px solid var(--gv-accent, #10b981);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}
.q-ref-key-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gv-secondary, #64748b);
    margin-bottom: 0.5rem;
}
.q-ref-key-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--gv-text, #1e293b);
    font-family: 'Courier New', monospace;
}
.q-ref-key-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.q-ref-key-note i { color: var(--gv-accent, #10b981); }
.q-ref-key-note small { color: var(--gv-secondary, #64748b); }

/* === Date Picker === */
.q-date-picker {
    display: flex;
    gap: 1rem;
    max-width: 400px;
}
.q-date-picker .form-select {
    flex: 1;
    border: 2px solid var(--gv-border, #e5e7eb);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.q-date-picker .form-select:focus {
    border-color: var(--gv-accent, #10b981);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* === Start Disclaimer === */
.q-start-disclaimer {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.q-start-disclaimer i { color: var(--gv-secondary, #64748b); flex-shrink: 0; font-size: 1.1rem; margin-top: 2px; }
.q-start-disclaimer p { font-size: 0.85rem; color: var(--gv-secondary, #64748b); line-height: 1.6; margin: 0; }

/* === Responsive === */
@media (max-width: 576px) {
    .q-container { padding: 1.5rem 1rem 2rem; }
    .q-question { font-size: 1.4rem; }
    .q-option { padding: 1rem; }
    .q-option-sublabel { font-size: 0.8rem; }
    .q-result-title { font-size: 1.4rem; }
    .q-result-message { font-size: 0.95rem; }
    .q-checklist-actions, .q-summary-actions { flex-direction: column; }
    .q-checklist-actions .btn, .q-summary-actions .btn { min-width: unset; }
    .q-summary-row { flex-direction: column; gap: 0.25rem; }
    .q-summary-label { flex: none; }
    .q-ref-key-value { font-size: 1.5rem; }
    .q-date-picker { flex-direction: column; }
}
