/* Reset und Basis-Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.progress-timeline {
    position: relative;
    width: 100%;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: #e1e8ed;
    border-radius: 2px;
    margin-bottom: 30px;
}

.progress-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 11.11%;
}

.progress-steps-wrapper {
    overflow-x: auto;
    padding-bottom: 10px;
    padding-top: 10px;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f3f4;
}

.progress-steps-wrapper::-webkit-scrollbar {
    height: 6px;
}

.progress-steps-wrapper::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 3px;
}

.progress-steps-wrapper::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.progress-steps {
    display: flex;
    gap: 20px;
    min-width: max-content;
    padding: 0 10px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 80px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.4s ease;
    position: relative;
    background: #f8f9fa;
    border: 3px solid #e1e8ed;
    color: #6c757d;
    font-size: 0.9rem;
}

.step-circle i {
    font-size: 1.2rem;
}

.step-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}

.step-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
}

.step-subtitle {
    font-size: 0.7rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

/* Active Step */
.step-item.active .step-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.step-item.active .step-title {
    color: #667eea;
    font-weight: 700;
}

.step-item.active .step-subtitle {
    color: #495057;
}

/* Completed Steps */
.step-item.completed .step-circle {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    color: white;
    transform: scale(1.05);
}

.step-item.completed .step-circle::after {
    content: '✓';
    position: absolute;
    font-size: 1.1rem;
    font-weight: bold;
}

.step-item.completed .step-circle .step-number,
.step-item.completed .step-circle i {
    opacity: 0;
}

.step-item.completed .step-title {
    color: #28a745;
    font-weight: 600;
}

.step-item.completed .step-subtitle {
    color: #495057;
}

/* Hover Effects */
.step-item:hover:not(.active):not(.completed) .step-circle {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: scale(1.05);
}

.step-item:hover:not(.active):not(.completed) .step-title {
    color: #667eea;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .progress-container {
        padding: 20px 15px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .step-circle i {
        font-size: 1rem;
    }

    .step-title {
        font-size: 0.75rem;
    }

    .step-subtitle {
        font-size: 0.65rem;
    }

    .progress-steps {
        gap: 15px;
    }

    .step-item {
        min-width: 70px;
    }
}

/* Form Pages */
.form-page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prev-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e8ed;
}

.prev-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.next-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.submit-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.4);
}

.nav-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Hints */
.form-hint {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Captcha Group */
.captcha-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e1e8ed;
    margin-top: 30px;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.captcha-question {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    border: 2px solid #e1e8ed;
    min-width: 120px;
    text-align: center;
}

.captcha-container input[type="number"] {
    flex: 1;
    max-width: 100px;
}

.btn-icon {
    background: #667eea;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #5a6fd8;
    transform: rotate(180deg);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.header-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.header-content p {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h2 i {
    color: #667eea;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Rating Groups */
.rating-group {
    margin-top: 15px;
}

.rating-scale {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.rating-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

.rating-buttons {
    display: flex;
    gap: 10px;
}

.rating-buttons input[type="radio"] {
    display: none;
}

.rating-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #e1e8ed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    font-family: 'Poppins', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    color: #666;
    text-align: center;
    line-height: 50px;
    letter-spacing: -1px;
    padding: 0;
    margin: 0;
    vertical-align: middle;
}

.rating-btn:hover {
    border-color: #667eea;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.rating-buttons input[type="radio"]:checked + .rating-btn {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.rating-btn.above-selected {
    background: #e3f2fd;
    border-color: #667eea;
    color: #667eea;
}
.rating-btn.below-selected {
    background: #e3f2fd;
    border-color: #667eea;
    color: #667eea;
}
/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
    accent-color: #667eea;
}

.checkbox-group label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
}

/* Submit Button */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f1aeb5;
}

.message.warning {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
}

/* Retry Button */
.retry-btn {
    margin-left: 10px !important;
    padding: 8px 16px !important;
    background: #4f46e5 !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.retry-btn:hover {
    background: #3730a3 !important;
    transform: translateY(-1px) !important;
}

.retry-btn:active {
    transform: translateY(0) !important;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 30px;
    color: white;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer .separator {
    color: white;
    margin: 0 10px;
}

.footer p {
    color: white;
    margin-top: 15px;
    font-size: 0.9rem;
}

.footer-links {
    margin-bottom: 10px;
}

.admin-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-link:hover {
    color: white;
    transform: translateY(-2px);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.loading-spinner i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 15px;
}

.loading-spinner p {
    color: #666;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .main-content {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .rating-scale {
        flex-direction: column;
        gap: 15px;
    }

    .rating-label {
        min-width: auto;
    }

    .rating-buttons {
        justify-content: center;
    }

    .submit-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.8rem;
    }

    .main-content {
        padding: 15px;
    }

    .rating-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}
