body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

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

h2 {
    color: #000000;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2.2rem;
}

.survey-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.survey-header img {
    max-height: 80px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.question-block {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(127, 174, 192, 0.1);
    transition: all 0.3s ease;
}

.question-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.question-block p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.question-block label {
    display: block;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
}

.question-block label:hover {
    background: #e3f2fd;
    border-color: #7FAEC0;
    transform: translateX(4px);
}

.question-block input[type="radio"],
.question-block input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.question-block input[type="radio"]:checked + label,
.question-block input[type="checkbox"]:checked + label {
    background: #7FAEC0;
    color: white;
    border-color: #7FAEC0;
    font-weight: 500;
}

.question-block textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    resize: vertical;
    min-height: 100px;
}

.question-block textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.contact-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(127, 174, 192, 0.1);
}

.contact-section h2 {
    color: #000000;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.contact-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.contact-section input[type="text"],
.contact-section input[type="email"],
.contact-section input[type="checkbox"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.contact-section input[type="text"]:focus,
.contact-section input[type="email"]:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.contact-section input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.submit-section {
    text-align: center;
    margin: 3rem 0;
}

.btn-primary {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #333333 0%, #000000 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .question-block {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .question-block p {
        font-size: 1rem;
    }
    
    .contact-section {
        padding: 1.5rem;
    }
    
    .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

/* Animation for form elements */
.question-block {
    animation: fadeInUp 0.6s ease-out;
}

.question-block:nth-child(1) { animation-delay: 0.1s; }
.question-block:nth-child(2) { animation-delay: 0.2s; }
.question-block:nth-child(3) { animation-delay: 0.3s; }
.question-block:nth-child(4) { animation-delay: 0.4s; }
.question-block:nth-child(5) { animation-delay: 0.5s; }
.question-block:nth-child(6) { animation-delay: 0.6s; }
.question-block:nth-child(7) { animation-delay: 0.7s; }
.question-block:nth-child(8) { animation-delay: 0.8s; }
.question-block:nth-child(9) { animation-delay: 0.9s; }

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

/* Progress indicator */
.progress-bar {
    background: linear-gradient(90deg, #000000 0%, #333333 100%);
    height: 4px;
    border-radius: 2px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Survey Form Enhancements */
.card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.card-title {
    color: #000000;
    font-weight: 600;
    font-size: 1.1rem;
}

.form-check-input:checked {
    background-color: #000000;
    border-color: #000000;
}

.form-check-input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25);
}

.form-control:focus,
.form-select:focus {
    border-color: #000000;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25);
}

.rating-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.rating-container .form-check-inline {
    margin-right: 0;
}

.rating-container label {
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.form-check.selected .form-check-label {
    color: #000000;
    font-weight: 600;
}

.btn-lg {
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress indicator */
.survey-progress {
    background: linear-gradient(90deg, #000000 0%, #333333 100%);
    height: 4px;
    border-radius: 2px;
    margin-bottom: 2rem;
}

/* Animation for form elements */
.form-group {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rating-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
}

/* Thank You Page Styles */
.thank-you-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.thank-you-card:hover {
    transform: translateY(-5px);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: bounceIn 0.8s ease-out;
}

.success-icon i {
    color: white;
    font-size: 2.5rem;
    animation: checkmark 0.6s ease-out 0.3s both;
}

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

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

/* Required field styling */
.text-danger {
    color: #dc3545 !important;
    font-weight: bold;
}

.question-block p .text-danger {
    font-size: 1.2rem;
    margin-left: 0.25rem;
}


.question-block textarea:required:valid,
.question-block input:required:valid {
    border-color: #198754;
}

/* Radio button group validation */
.question-block input[type="radio"]:required:invalid + label {
    border-color: #dc3545;
}

.question-block input[type="radio"]:required:valid + label {
    border-color: #198754;
}



.question-block input[type="checkbox"]:required:valid + label {
    border-color: #198754;
}

/* Contact section and fields animation */
#contactSection,
#contactFields {
    transition: opacity 0.3s ease-in-out;
}

#contactSection.d-none,
#contactFields.d-none {
    display: none !important;
}



/* Contact options styling */
.contact-options {
    margin: 1rem 0;
}

.contact-option {
    display: block;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
}

.contact-option:hover {
    background: #e3f2fd;
    border-color: #000000;
    transform: translateX(4px);
}

.contact-option input[type="radio"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.contact-option input[type="radio"]:checked + span {
    color: #000000;
    font-weight: 600;
}

.contact-option:has(input[type="radio"]:checked) {
    background: #f8f9fa;
    color: #000000;
    border-color: #000000;
    font-weight: 600;
}

/* Required question styling */
.required-question {
    border-left: 4px solid #000 !important;
    background-color: #fff !important;
}

/* Turn border red if invalid */
.required-question textarea:required:invalid,
.required-question input:required:invalid {
    outline: none;
}

