.animation-container {
    width: 50%;
    background: linear-gradient(135deg, #002c5f, #001a36); /* Changed to Hyundai blue gradient */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.car-animation {
    position: relative;
    height: 200px;
    margin-bottom: 30px;
}

.car {
    position: absolute;
    bottom: 18px;
    left: -100px;
    width: 120px;
    height: 60px;
    background: #fff;
    border-radius: 20px;
    animation: drive 8s linear infinite;
}

.car:before {
    content: '';
    position: absolute;
    top: -25px;
    left: 20px;
    width: 60px;
    height: 30px;
    background: #fff;
    border-radius: 20px;
}

.wheel {
    position: absolute;
    bottom: -10px;
    width: 20px;
    height: 20px;
    background: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.wheel.front {
    left: 10px;
}

.wheel.back {
    right: 10px;
}

.road {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 10px;
    background: #333;
}

.road:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fff 50%, transparent 50%);
    background-size: 30px 100%;
    transform: translateY(-50%);
    animation: roadLine 0.5s linear infinite;
}

@keyframes drive {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(600px);
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes roadLine {
    100% {
        background-position: -30px 0;
    }
}

.animation-text {
    z-index: 2;
}

.animation-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.animation-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.benefits {
    list-style: none;
}

.benefits li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
}

.benefits li:nth-child(1) {
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.benefits li:nth-child(2) {
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.benefits li:nth-child(3) {
    animation: fadeUp 0.8s ease forwards 1s;
}

.benefits li:before {
    content: '✓';
    display: inline-block;
    margin-right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;
    border-radius: 50%;
}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 40px;
    height: 40px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container {
    width: 50%;
    padding: 40px;
}

.form-container h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    position: relative;
}

.form-container h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 4px;
    background: #002c5f; /* Changed to Hyundai blue */
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #002c5f; /* Changed to Hyundai blue */
    box-shadow: 0 0 0 2px rgba(0, 44, 95, 0.2); /* Changed to Hyundai blue with opacity */
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-group input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #002c5f; /* Changed to Hyundai blue */
}

.checkbox-group label {
    font-size: 0.9rem;
}

.checkbox-group a {
    color: #002c5f; /* Changed to Hyundai blue */
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.submit-btn {
    background: #002c5f; /* Changed to Hyundai blue */
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: #00417d; /* Slightly lighter Hyundai blue for hover */
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    .animation-container,
    .form-container {
        width: 100%;
    }
    .animation-container {
        padding: 30px;
    }
}