:root {
    --primary-color: #e9e9e9;
    --secondary-color: #f8fafc;
    --accent-color: #C84228;
    --text-dark: #1e293b;
    --border-color: #e2e8f0;
}

/* body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            padding: 20px 0;
        } */

.form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px auto;
    max-width: 800px;
}

.form-header {
    background: linear-gradient(135deg, var(--accent-color));
    color: white;
    padding: 2rem;
    text-align: center;
}

.form-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.9;
    margin: 0;
}

.form-body {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--secondary-color);
    border-radius: 15px;
    border: 2px solid #e4e4e4;
}

.section-title {
    color: var(--text-dark);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: clamp(0.85rem, 2vw, 1rem);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-check {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.form-check:hover {
    background-color: rgba(235, 37, 37, 0.05);
}

.form-check-input {
    margin-top: 0.25rem;
    transform: scale(1.1);
}

.form-check-label {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: var(--text-dark);
    cursor: pointer;
    padding-left: 0.5rem;
}

.rating-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1rem 0;
}

.rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.rating-item:hover {
    background-color: rgba(37, 99, 235, 0.1);
}

.rating-item input[type="radio"] {
    transform: scale(1.2);
    margin-bottom: 0.25rem;
}

.rating-item label {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 500;
    margin: 0;
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-color));
    border: none;
    padding: 1rem 3rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
    border-radius: 50px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    margin-bottom: 2rem;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .form-body {
        padding: 1rem;
    }

    .form-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .rating-container {
        gap: 0.5rem;
    }

    .submit-btn {
        width: 100%;
        padding: 1rem;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .form-container {
        margin: 30px;
    }
}

/* Animation for form sections */
.form-section {
    animation: fadeInUp 0.6s ease-out;
}

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

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

/* Custom Success Modal */
.success-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.success-modal-content {
    background: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.5s ease-out;
    overflow: hidden;
}

.success-modal-header {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 2rem;
    text-align: center;
}

.success-modal-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: checkmarkPulse 1s ease-in-out;
}

.success-modal-header h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin: 0;
}

.success-modal-body {
    padding: 2rem;
    text-align: center;
}

.success-modal-body p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.success-modal-close {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.success-modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

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

@keyframes checkmarkPulse {

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

    50% {
        transform: scale(1.1);
    }
}

/* Mobile optimizations for modal */
@media (max-width: 768px) {
    .success-modal-content {
        margin: 20% auto;
        width: 95%;
    }

    .success-modal-header {
        padding: 1.5rem;
    }

    .success-modal-body {
        padding: 1.5rem;
    }
}


.form-check-input:checked {
    background-color: #C84228 !important;
    border-color: #C84228 !important;
}

.form-check .form-check-input {
    float: left;
    margin-left: -0.5em !important;
}