/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Hero Section */
.contact-hero {
    text-align: center;
    padding: 120px 20px;
    border-radius: 25px;
    background: linear-gradient(to right, #1139cb, #2575fc);
    color: white;
}

/* Contact Section */
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 40px auto;
    background: rgb(0, 112, 129);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.575);
    animation: fadeIn 1s ease-in-out;
    gap: 30px; /* Ensure spacing between form and info */
}

/* Left Side: Contact Info */
.contact-info {
    flex: 1;
    padding: 20px;
}

.contact-info h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
}

.info-box {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info-box i {
    font-size: 24px;
    color: #2575fc;
    margin-right: 15px;
}

.info-box p {
    font-size: 16px;
    color: #11accb;
    margin: 0;
}

/* Social Icons */
.social-icons {
    text-align: center;
    margin-top: 25px;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    font-size: 24px;
    color: #2575fc;
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #11cbbf;
}

/* Right Side: Contact Form */
.contact-form {
    flex: 1;
    padding: 30px;
    background: linear-gradient(to right, #2575fc, #11accb);
    border-radius: 10px;
    color: white;
    animation: slideIn 1s ease-in-out;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 10px;
}

.contact-form p {
    text-align: center;
    margin-bottom: 20px;
}

/* Input Group */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    transition: 0.3s ease-in-out;
    pointer-events: none;
}

/* Input Focus Effect */
.input-group input:focus + label,
.input-group textarea:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 14px;
    color: #fff;
}

/* Button */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: white;
    color: #2575fc;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}

.btn-submit:hover {
    background: #ddd;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .contact-info, 
    .contact-form {
        width: 100%;
        padding: 20px;
    }

    .info-box {
        justify-content: center;
    }
    
    .social-icons {
        text-align: center;
    }
}
