/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

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

/* Survey card styles */
.survey-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
}

/* Header Styles */
.survey-header {
    text-align: center;
    margin-bottom: 30px;
}

.survey-header h2 {
    color: #333;
    margin-bottom: 15px;
}

/* Progress Bar */
.progress-container {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #4CAF50;
    width: 0;
    transition: width 0.3s ease;
}

/* Form Styles */
.survey-form {
    margin-top: 20px;
}

.survey-section {
    margin-bottom: 30px;
}

.survey-section h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #444;
}

/* Input Styles */
.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-group label, .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

input[type="radio"], input[type="checkbox"] {
    margin: 0;
}

input[type="text"], textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

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

/* Table Styles */
.satisfaction-table, .rating-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.satisfaction-table th, .satisfaction-table td,
.rating-table th, .rating-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.satisfaction-table th, .rating-table th {
    background-color: #f8f8f8;
    font-weight: bold;
}

/* Rating Scale */
.rating-scale {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.rating-scale label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: #666;
    color: white;
}

.btn-secondary:hover {
    background-color: #555;
}

/* Error States */
.error {
    border-color: #ff0000 !important;
}

.error-message {
    color: #ff0000;
    font-size: 14px;
    margin-top: 5px;
}

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

    .survey-card {
        padding: 20px;
    }

    .satisfaction-table, .rating-table {
        font-size: 14px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Specify Input */
.specify-input {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Section Transitions */
.survey-section {
    transition: opacity 0.3s ease;
}

.survey-section[style*="display: none"] {
    opacity: 0;
}

.survey-section[style*="display: block"] {
    opacity: 1;
}

/* Contact info styles */
.contact-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Intro text styles */
.intro-text {
    margin-bottom: 2rem;
}

.intro-text p {
    margin-bottom: 1rem;
}

ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

/* Form validation styles */
.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Radio and checkbox group styles */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

/* Rating styles */
.rating-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.rating-label {
    min-width: 100px;
}

/* Skip logic styles */
.skip-section {
    display: none;
}

.skip-section.active {
    display: block;
}

/* Success Message Styles */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.4s ease-in-out;
    backdrop-filter: blur(5px);
}

.success-content {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.success-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

.success-content h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
}

.success-content h2::after {
    content: '✓';
    display: inline-block;
    margin-left: 10px;
    color: #4CAF50;
    font-size: 1.8rem;
    animation: checkmark 0.5s ease-in-out;
}

.success-content p {
    color: #34495e;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.success-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    animation: progress 3s linear forwards;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes progress {
    from { width: 0; }
    to { width: 100%; }
}

/* Add responsive styles for the success message */
@media (max-width: 768px) {
    .success-content {
        padding: 2rem;
        margin: 1rem;
    }

    .success-content h2 {
        font-size: 1.8rem;
    }

    .success-content p {
        font-size: 1.1rem;
    }
}

/* Pre-screening Section Styles */
.screening-section {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.screening-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.screening-section p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Message Box Styles */
.message-box {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
}

.message-box p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.button-group {
    margin-top: 2rem;
}

.button-group .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
} 