/* contact.css */

.contact-main {
    padding-top: 6rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Contact Profiles Section */
.contact-profiles {
    margin-bottom: 4rem;
}

.section-title, .form-title, .info-title {
    text-align: center;
    font-size: 2.5rem;
    color: #64B2F4;
    margin-bottom: 2rem;
}

.profile-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.profile {
    text-align: center;
    flex-basis: calc(33.333% - 2rem);
    max-width: 250px;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid #64B2F4;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.profile-position {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.email-button {
    background-color: #F5A664;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.email-button:hover {
    background-color: #e69354;
}

/* Contact Form Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto 4rem;
    background-color: #f0f8ff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
}

small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.8rem;
}

.submit-button {
    background-color: #64B2F4;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 1rem;
}

.submit-button:hover {
    background-color: #4a8ac7;
}

/* h-captcha styles */
.h-captcha {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Contact Information Section */
.contact-info {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f0f8ff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.info-content {
    font-size: 1rem;
    line-height: 1.6;
}

.company-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.department-name {
    font-size: 1.2rem;
    color: #64B2F4;
    margin-bottom: 1rem;
}

.address, .phone-numbers, .mobile-numbers {
    margin-bottom: 1rem;
}

.address span, .phone-numbers span, .mobile-numbers span {
    font-weight: bold;
    color: #64B2F4;
}

/* Error and success message styles */
.error-message,
.success-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-weight: bold;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* Style for form fields with errors */
.error {
    border-color: #c62828;
}

/* Animation for success and error messages */
@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

.error-message,
.success-message {
    animation: fadeInOut 5s ease-in-out;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .contact-main {
        padding: 1rem;
    }

    .section-title, .form-title, .info-title {
        font-size: 2rem;
    }

    .profile {
        flex-basis: 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .contact-form, .contact-info {
        padding: 1.5rem;
    }

    .company-name {
        font-size: 1.3rem;
    }

    .department-name {
        font-size: 1.1rem;
    }

    .info-content {
        font-size: 0.9rem;
    }
}

/* Animation for form submission */
@keyframes formSubmitted {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.form-submitted {
    animation: formSubmitted 0.5s ease-in-out;
}


.form-feedback {
    margin-top: 10px;
    font-weight: bold;
}