/* Survey Form Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.survey-form-container {
    padding: 3rem 0;
}

.survey-container {
    max-width: 59.375rem;
    margin: 0rem auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 73, 82, 0.1);
    overflow: hidden;
}

/* Header Styles */
.survey-header {
    background: linear-gradient(135deg, #004952 0%, #003A43 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.survey-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.progress-step.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.progress-step.active .step-number {
    background: white;
    color: #004952;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Form Styles */
.survey-form {
    padding: 2.5rem;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.step-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.step-header h2 {
    color: #004952;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.step-header p {
    color: rgba(0, 73, 82, 0.7);
    font-size: 1rem;
    line-height: 1.5;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #004952;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E8F2F2;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004952' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

.form-group select:hover {
    border-color: #003A43;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #004952;
    box-shadow: 0 0 0 3px rgba(0, 73, 82, 0.1);
}

.form-group select option {
    padding: 0.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Performance Section */
.performance-section {
    background: #F9F3ED;
    padding: 2rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
}

.performance-section h3 {
    color: #003A43;
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Rating Groups */
.rating-group {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid #E8F2F2;
}

.rating-group label:first-child {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #003A43;
}

.rating-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

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

.rating-options label {
    padding: 0.75rem 1rem;
    background: #F5F8F8;
    border: 2px solid #E8F2F2;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.875rem;
    color: #004952;
    margin-bottom: 0;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.rating-options input[type="radio"]:checked+label {
    background: #004952;
    color: white;
    border-color: #004952;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 73, 82, 0.3);
}

.rating-options label:hover {
    border-color: #004952;
    transform: translateY(-1px);
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
}

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

.radio-group label {
    padding: 0.75rem 1.5rem;
    background: #F5F8F8;
    border: 2px solid #E8F2F2;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #004952;
    margin-bottom: 0;
}

.radio-group input[type="radio"]:checked+label {
    background: #004952;
    color: white;
    border-color: #004952;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 73, 82, 0.3);
}

.radio-group label:hover {
    border-color: #004952;
    transform: translateY(-1px);
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #E8F2F2;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #004952 0%, #003A43 100%);
    color: white;
    margin-left: auto;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 73, 82, 0.3);
}

.btn-prev {
    background: transparent;
    color: #004952;
    border: 2px solid #004952;
}

.btn-prev:hover {
    background: #004952;
    color: white;
    transform: translateY(-2px);
}

/* Error States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.form-group.error .rating-options label {
    border-color: #e74c3c;
    background: #fdf2f2;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }

    .survey-container {
        margin: 0;
        border-radius: 0;
    }

    .survey-header {
        padding: 1.5rem;
    }

    .survey-header h1 {
        font-size: 1.5rem;
    }

    .progress-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .progress-step {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .survey-form {
        padding: 1.5rem;
    }

    .step-header h2 {
        font-size: 1.5rem;
    }

    .performance-section {
        padding: 1.5rem;
    }

    .rating-options {
        flex-direction: column;
    }

    .rating-options label {
        min-width: unset;
    }

    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .survey-header {
        padding: 1rem;
    }

    .survey-header h1 {
        font-size: 1.25rem;
    }

    .survey-form {
        padding: 1rem;
    }

    .step-header h2 {
        font-size: 1.25rem;
    }

    .performance-section {
        padding: 1rem;
    }

    .rating-group {
        padding: 1rem;
    }
}

/* Loading Animation */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Reason Input Styles */
.reason-input {
    margin-top: 1rem;
    padding: 1rem;
    background: #FFF9F5;
    border: 2px solid #FFE4D6;
    border-radius: 0.5rem;
    animation: slideDown 0.3s ease-in-out;
}

.reason-input label {
    color: #D2691E;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.reason-input textarea {
    background: white;
    border-color: #FFE4D6;
    font-size: 0.9rem;
    padding: 0.75rem;
}

.reason-input textarea:focus {
    border-color: #D2691E;
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }
}

/* Success Animation */
@keyframes successPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.success-animation {
    animation: successPulse 0.6s ease-in-out;
}