/* Contact Section Styles */
.flat-spacing {
    padding: 80px 0;
    overflow: hidden;
}

/* Left to Right Animation for Contact Info */
.contact-info-section {
    animation: slideFromLeft 1s ease-out;
}

.contact-title-left {
    animation: slideFromLeft 0.8s ease-out;
}

.contact-info-card.card-1 {
    animation: slideFromLeft 1s ease-out 0.2s both;
}

.contact-info-card.card-2 {
    animation: slideFromLeft 1s ease-out 0.4s both;
}

.contact-info-card.card-3 {
    animation: slideFromLeft 1s ease-out 0.6s both;
}

/* Right to Left Animation for Contact Form */
.contact-form-section {
    animation: slideFromRight 1s ease-out 0.3s both;
}

.contact-title-right {
    animation: slideFromRight 0.8s ease-out 0.3s both;
}

.form-field:nth-child(1) {
    animation: slideFromRight 1s ease-out 0.5s both;
}

.form-field:nth-child(2) {
    animation: slideFromRight 1s ease-out 0.6s both;
}

.form-field:nth-child(3) {
    animation: slideFromRight 1s ease-out 0.7s both;
}

.form-field:nth-child(4) {
    animation: slideFromRight 1s ease-out 0.8s both;
}

.btn-submit {
    animation: slideFromRight 1s ease-out 0.9s both;
}

/* Keyframe Animations */
@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Contact Info Card Styles */
.contact-info-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #9d361c 0%, #8a2f18 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(157, 54, 28, 0.3);
}

/* SVG Gear Icon Styling */
.contact-icon.gst-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
    animation: rotateGear 6s linear infinite;
}

@keyframes rotateGear {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.contact-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, #9d361c 0%, transparent 100%);
    margin-top: 10px;
    min-height: 40px;
}

.contact-info-card:last-child .contact-line {
    display: none;
}

.contact-content {
    flex: 1;
}

.contact-content h5 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.contact-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* Contact Form Styles */
.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-form .form-label {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: block;
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #9d361c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(157, 54, 28, 0.15);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: linear-gradient(135deg, #9d361c 0%, #8a2f18 100%);
    border: none;
    padding: 14px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    color: #fff;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(157, 54, 28, 0.4);
    background: linear-gradient(135deg, #b13d1f 0%, #9d361c 100%);
}

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

/* Responsive Design */
@media (max-width: 991px) {
    .contact-form-section {
        margin-top: 40px;
    }
    
    .flat-spacing {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .contact-info-card {
        padding: 20px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .flat-spacing {
        padding: 40px 0;
    }
    
    /* Simplify animations on mobile */
    .contact-info-section,
    .contact-form-section,
    .contact-info-card,
    .form-field,
    .contact-title-left,
    .contact-title-right {
        animation: fadeIn 0.8s ease-out both;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
}