/* Contact Page Specific Styles */

.contact-container {
    max-width: auto; /* Adjust width as needed */
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-right: 20px;
    margin-left: 260px; /* Accommodate sidebar */
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease;

    /* Landing Page Animation */
    opacity: 0; /* Start invisible */
    transform: translateY(20px); /* Start slightly below */
    animation: fadeInSlideUp 1s ease-out forwards; /* Apply animation */
    animation-delay: 0.5s; /* Delay for better effect after sidebar is stable */
}

/* Common Section Heading Styles (matches other pages) */
.section-title {
    color: orange;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 700;
}

.section-description {
    text-align: center;
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 3rem; /* More space before content wrapper */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.contact-content-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 3rem; /* Space between info and form */
    margin-bottom: 3rem;
    justify-content: center; /* Center items when they wrap */
}

.contact-info,
.contact-form {
    flex: 1 1 45%; /* Allows sections to take about half width, and wrap */
    min-width: 300px; /* Minimum width before forcing wrap */
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.contact-info h3,
.contact-form h3 {
    color: orange;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.contact-info ul li {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #eee;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    word-break: break-word; /* Prevents long emails/phones from overflowing */
}

.contact-info ul li i {
    color: orange;
    font-size: 1.3rem;
}

.contact-info ul li a {
    color: #eee;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info ul li a:hover {
    color: orange;
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: auto; /* Pushes socials to the bottom of the info box */
}

.contact-socials a {
    color: #ccc;
    font-size: 2.2rem; /* Larger icons */
    transition: color 0.3s, transform 0.3s;
}

.contact-socials a:hover {
    color: orange;
    transform: translateY(-5px) scale(1.1); /* Lift and grow effect */
}

/* Contact Form Styles */
.contact-form {
    padding: 2rem; /* Consistent padding */
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    color: #eee;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08); /* Slightly lighter input background */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none; /* Remove default focus outline */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: orange;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.3); /* Orange glow on focus */
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 120px;
}

.submit-btn {
    width: 100%; /* Make button full width */
    padding: 1rem 2rem;
    background-color: orange;
    color: #111; /* Dark text on orange background */
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #eaa31f;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4);
}

/* Back to Home Button (at the bottom of the page) */
.back-btn {
    display: inline-block;
    margin-top: 3rem; /* More space from content */
    padding: 0.8rem 1.5rem;
    background-color: orange;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s;
}

.back-text {
    margin-left: 0;
    transition: margin-left 0.3s;
}

.back-btn:hover {
    background-color: #eaa31f;
}

.back-btn:hover .back-text {
    margin-left: 6px; /* Space appears only on hover */
}


/* Responsive adjustments for contact page */
@media (max-width: 768px) {
    /* Adjust main content position on mobile (similar to other pages) */
    .contact-container {
        margin-left: 0;
        margin-right: 0;
        padding: 1.5rem;
        transform: translateX(0);
        transition: transform 0.3s ease;
        margin-top: 1rem;
        margin-bottom: 1rem;
        width: calc(100% - 4rem);
    }

    body.sidebar-open .contact-container {
        transform: translateX(240px);
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .contact-content-wrapper {
        flex-direction: column; /* Stack contact info and form vertically */
        gap: 2rem;
    }

    .contact-info,
    .contact-form {
        flex: 1 1 100%; /* Take full width on mobile */
        min-width: unset; /* Remove min-width constraint */
        padding: 1.5rem;
    }

    .contact-info h3,
    .contact-form h3 {
        font-size: 1.6rem;
    }

    .contact-info ul li {
        font-size: 1rem;
        gap: 10px;
    }

    .contact-info ul li i {
        font-size: 1.2rem;
    }

    .contact-socials a {
        font-size: 1.8rem;
    }

    .contact-form input,
    .contact-form textarea,
    .submit-btn {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .submit-btn {
        gap: 8px;
    }
}
