.contact-form-section {
    padding: 80px 0;
}

.contact-form-wrapper {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #c81d25, #a01620, #c81d25);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
    position: relative;
}

.form-header h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #c81d25;
    border-radius: 2px;
}

.form-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 20px;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form .form-control {
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
    background: #fafafa;
}

.contact-form .form-control:focus {
    border-color: #c81d25;
    box-shadow: 0 0 0 0.2rem rgba(200,29,37,.15);
    outline: none;
    background: #fff;
    transform: translateY(-2px);
}

.contact-form .form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,.15);
    background: #fff5f5;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    justify-content: center;
}

.radio-label {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-weight: 500;
    overflow: hidden;
}

.radio-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(200,29,37,0.1), rgba(160,22,32,0.1));
    transition: left 0.3s ease;
}

.radio-label:hover {
    border-color: #c81d25;
    background: #fff5f5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200,29,37,0.1);
}

.radio-label:hover::before {
    left: 0;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-label .radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-label .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    background: #c81d25;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #c81d25;
    background: #ffe5e7;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-label input[type="radio"]:checked ~ .radio-text {
    color: #c81d25;
    font-weight: 600;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: #c81d25;
    background: #ffe5e7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200,29,37,0.15);
}

.radio-text {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.quiz-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.quiz-input {
    max-width: 120px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.contact-form .btn {
    background: linear-gradient(45deg, #c81d25, #a01620);
    border: none;
    padding: 15px 50px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    transition: left 0.3s ease;
}

.contact-form .btn:hover {
    background: linear-gradient(45deg, #a01620, #800f18);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200,29,37,.4);
}

.contact-form .btn:hover::before {
    left: 0;
}

.contact-form .btn:active {
    transform: translateY(-1px);
}

.contact-form .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.form-message.success {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 25px;
        margin: 20px 10px;
        border-radius: 10px;
    }
    
    .form-header h3 {
        font-size: 24px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .radio-label {
        padding: 12px 15px;
        justify-content: flex-start;
    }
    
    .contact-form .form-control {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .contact-form .btn {
        padding: 12px 30px;
        font-size: 14px;
        width: 100%;
    }
    
    .quiz-input {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .contact-form-section {
        padding: 40px 0;
    }
    
    .contact-form-wrapper {
        padding: 20px;
        margin: 15px 5px;
    }
    
    .form-header h3 {
        font-size: 20px;
    }
    
    .form-header p {
        font-size: 14px;
    }
}

/* Animation for form elements */
.contact-form .form-group {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.contact-form .form-group:nth-child(1) { animation-delay: 0.1s; }
.contact-form .form-group:nth-child(2) { animation-delay: 0.2s; }
.contact-form .form-group:nth-child(3) { animation-delay: 0.3s; }
.contact-form .form-group:nth-child(4) { animation-delay: 0.4s; }
.contact-form .form-group:nth-child(5) { animation-delay: 0.5s; }
.contact-form .form-group:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
