/* Modern, mobil-optimalizált kérdőív stílus */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-gray: #f9fafb;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
                 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    padding: 8px 20px 0 20px;
    margin: 0;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tab-button {
    flex: 1;
    padding: 14px 20px;
    background: #e9ecef;
    border: none;
    border-radius: 12px 12px 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.05);
}

.tab-button:hover {
    background: #dee2e6;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.tab-button.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 -2px 8px rgba(37, 99, 235, 0.15);
    transform: translateY(0);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intro section */
.intro {
    padding: 40px 30px;
    background: var(--bg-gray);
    border-bottom: 2px solid var(--border-color);
}

.intro h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.intro p {
    margin-bottom: 15px;
    color: var(--text-medium);
}

.intro a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.intro a:hover {
    text-decoration: underline;
}

.info-box {
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.info-box p {
    margin: 0;
    color: var(--text-dark);
}

.thank-you {
    font-style: italic;
    color: var(--text-medium);
}

/* Progress Bar */
.progress-container {
    position: sticky;
    top: 0;
    background: var(--white);
    padding: 15px 30px;
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.progress-bar {
    height: 8px;
    background: var(--bg-gray);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--success-color) 0%, var(--primary-color) 100%);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-medium);
}

/* Form Sections */
.section {
    padding: 40px 30px;
    border-bottom: 2px solid var(--border-color);
}

.section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.subsection-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 30px 0 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Questions */
.question {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.question:hover {
    background: #f3f4f6;
    box-shadow: var(--shadow-sm);
}

.question.required .question-label::before {
    content: '';
}

.question-label {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.5;
}

.required-mark {
    color: var(--error-color);
    font-weight: 700;
}

.question-note {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 12px;
}

/* Radio buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-label:hover {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.radio-label input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--primary-color);
}

.radio-label:has(input:checked) {
    border-color: var(--primary-color);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Scale groups (1-5, 0-3) */
.scale-group {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.scale-group label {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scale-group label:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.scale-group label input[type="radio"] {
    display: none;
}

.scale-group label span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-medium);
}

.scale-group label:has(input:checked) {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.scale-group label:has(input:checked) span {
    color: var(--white);
}

/* Input fields */
.input-number,
.input-text {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    background: var(--white);
}

.input-number:focus,
.input-text:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Conditional questions */
.question.conditional {
    display: none;
    border-left: 4px solid var(--primary-color);
}

.question.conditional.visible {
    display: block;
}

/* Messages */
.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 16px 20px;
    margin: 20px 30px;
    border-radius: 8px;
    border-left: 4px solid var(--error-color);
    font-weight: 500;
}

.success-message {
    text-align: center;
    padding: 60px 30px;
}

.success-message h2 {
    color: var(--success-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.success-message p {
    font-size: 1.125rem;
    color: var(--text-medium);
}

/* Submit Button */
.submit-container {
    padding: 40px 30px;
    text-align: center;
    background: var(--bg-gray);
}

.btn-submit {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 700;
    padding: 16px 48px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 30px;
    text-align: center;
}

.footer p {
    margin: 5px 0;
    font-size: 0.875rem;
}

.footer a {
    color: var(--white);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Mobile optimalizáció */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 12px;
    }

    .header {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .intro,
    .section,
    .submit-container {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .question {
        padding: 15px;
    }

    .question-label {
        font-size: 1rem;
    }

    .scale-group {
        gap: 6px;
    }

    .scale-group label {
        padding: 10px 6px;
    }

    .scale-group label span {
        font-size: 1rem;
    }

    .btn-submit {
        width: 100%;
        padding: 16px 24px;
    }

    .progress-container {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.25rem;
    }

    .subtitle {
        font-size: 0.875rem;
    }

    .scale-group label {
        padding: 8px 4px;
    }

    .scale-group label span {
        font-size: 0.875rem;
    }
}

/* Animációk */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question {
    animation: fadeIn 0.3s ease;
}

/* Print stílus */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .progress-container,
    .submit-container,
    .btn-submit {
        display: none;
    }

    .container {
        box-shadow: none;
    }

    .question {
        page-break-inside: avoid;
    }
}

/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(31, 41, 55, 0.98);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text p {
    margin: 5px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent-text strong {
    font-size: 1.1rem;
}

.cookie-consent-text a {
    color: #60a5fa;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #93c5fd;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-consent-buttons .btn-accept,
.cookie-consent-buttons .btn-reject {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-consent-buttons .btn-accept {
    background: var(--success-color);
    color: var(--white);
}

.cookie-consent-buttons .btn-accept:hover {
    background: #059669;
    transform: translateY(-2px);
}

.cookie-consent-buttons .btn-reject {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cookie-consent-buttons .btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        gap: 20px;
    }

    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-consent-buttons .btn-accept,
    .cookie-consent-buttons .btn-reject {
        width: 100%;
    }
}
