:root {
    --base-clr: #324B50;
    --line-clr: #42434a;
    --hover-clr: rgba(149, 176, 182, 0.3);
    --text-clr: #e6e6ef;
    --accent-clr: #81cad9;
    --secondary-text-clr: #b0b3c1;
    --Tertiary-Color: #95b0b6; /* Light Greyish/Blue */
}
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Figtree', sans-serif;
    background-color: #ffffff;
    background-image: url(../assets/images/WebBackground3.png);
    background-size: 100% auto;
    background-position: top center;
    background-repeat: repeat-y;
    background-attachment: scroll;
    min-height: 100vh;
}
main {
    margin: 0 auto;
    margin-top: 5%;
    max-width: 100%;
    padding: 20px;
}
/*Styling for the Contact Us Header*/
.TopLine {
    margin-top: 0px;
    margin-bottom: 5px;
    text-align: center;
    font-weight: 200;
    font-size: 3.0em;
}
.darkblue-font {
    color: var(--base-clr);
}

.blue-font {
    color: var(--Tertiary-Color);
}

.darkblue-font, .blue-font {
    font-weight: 800;
}
.italic {
    font-style: italic; 
}
.subheading {
    text-align: center;
    font-size: 2em;
    font-weight: 100;
    color: var(--base-clr);
    margin-bottom: 30px;
    max-width: 1200px;
}

.contact-container {
    display: flex;
    width: 100%;
    gap: 30px;
}

/* Keyframes for sliding in and fading in from the left */
@keyframes slide-in-left {
    0% {
        transform: translateX(-50px); /* Start slightly off-screen to the left */
        opacity: 0; /* Fully transparent */
    }
    100% {
        transform: translateX(0); /* End at the original position */
        opacity: 1; /* Fully visible */
    }
}

/* Keyframes for fading in */
@keyframes fade-in {
    0% {
        opacity: 0; /* Fully transparent */
    }
    100% {
        opacity: 1; /* Fully visible */
    }
}

.contact-left {
    width: 60%; /* Increase the width of the left container to balance */
    padding: 1rem;
    background-color: white; /* Light greyish/blue */
    color: var(--base-clr);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    border-radius: 25px;
    animation: slide-in-left 700ms ease-out; /* Slide in and fade in animation */
    margin-top: -10rem
}

.contact-left h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-left p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.contact-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 1.5em;
}

.contact-item .icon {
    width: 36px; /* Icon size */
    height: 36px; /* Ensure the icon is square */
    margin-right: 20px; /* Add spacing between the icon and the text */
    object-fit: contain; /* Ensure the image fits within the dimensions */
    transition: transform 0.8s ease; /* Smooth transition for scaling */
}

.contact-item .icon:hover {
    animation: rotate-both-ways 1.6s ease-in-out; /* Apply the animation on hover */
}

@keyframes rotate-both-ways {
    0% {
        transform: scale(1) rotate(0deg); /* Initial state */
    }
    25% {
        transform: scale(1.2) rotate(30deg); /* Rotate 45 degrees to the right */
    }
    50% {
        transform: scale(1.2) rotate(-15deg); /* Rotate 45 degrees to the left */
    }
    100% {
        transform: scale(1.2) rotate(0deg); /* Return to the original position */
    }
}
/* Right Side Contact Form Styles */

.contact-right {
    width: 35%; /* Reduce the width of the right container */
    padding: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    box-shadow: 0 2px 8px var(--base-clr);
    border-radius: 25px;
    opacity: 0; /* Start fully invisible */
    animation: fade-in 700ms ease-out; /* Fade in animation */
    animation-delay: 500ms; /* Optional: Add a delay for a staggered effect */
    animation-fill-mode: forwards; /* Ensure the final state of the animation is retained */
}

.contact-form {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--base-clr);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    font-size: 1em;
    border: 1px solid var(--line-clr);
    border-radius: 5px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: none; /* Prevent resizing */
}

.form-group .char-limit {
    font-size: 0.875em;
    color: var(--secondary-text-clr);
    margin-top: 5px;
}

.required {
    color: red;
}

.submit-btn {
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    color: #ffffff;
    background-color: var(--base-clr);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--Tertiary-Color);
}

.form-row {
    display: flex;
    gap: 15px; /* Space between the fields */
}

.form-row .form-group {
    flex: 1; /* Make both fields take up equal space */
}

.form-row .form-group input {
    width: 100%; /* Ensure the input fields stretch to fill their container */
}
@media (max-width: 768px) {
    /* General Body Adjustments */
    body {
        background-size: 100% auto; /* Adjust background size for mobile */
        background-position: top center; /* Center the background */
        overflow-x: hidden; /* Prevent horizontal scrolling */
        background-image: url(../assets/images/WebBackgroundLight.png);
    }

    main {
        margin-top: 5rem;
        padding: 1rem; /* Add padding for better spacing */
    }

    /* Header Adjustments */
    .TopLine {
        font-size: 2rem; /* Reduce font size */
        margin-top: 1rem; /* Adjust spacing */
    }

    .subheading {
        font-size: 1.2rem; /* Adjust font size for better readability */
        margin-bottom: 1rem; /* Adjust spacing */
    }

    /* Contact Container */
    .contact-container {
        flex-direction: column; /* Stack the left and right sections vertically */
        gap: 1.5rem; /* Add spacing between sections */
    }

    /* Left Section */
    .contact-left {
        width: 100%; /* Take up the full width */
        padding: 1rem; /* Add padding for spacing */
        margin-top: 0; /* Remove negative margin */
        background-color: transparent;
    }

    .contact-left h1 {
        font-size: 1.8rem; /* Adjust font size */
        margin-bottom: 1rem; /* Adjust spacing */
    }

    .contact-left p {
        font-size: 1rem; /* Adjust font size */
        line-height: 1.4; /* Adjust line height */
        margin-bottom: 1rem; /* Adjust spacing */
    }

    .contact-info {
        gap: 1rem; /* Reduce spacing between contact items */
    }

    .contact-item {
        font-size: 1rem; /* Adjust font size */
    }

    .contact-item .icon {
        width: 24px; /* Reduce icon size */
        height: 24px;
        margin-right: 10px; /* Adjust spacing between icon and text */
    }

    /* Right Section */
    .contact-right {
        width: 100%; /* Take up the full width */
        padding: 1rem; /* Add padding for spacing */
        box-shadow: none; /* Remove shadow for a cleaner look */
    }

    .contact-form {
        max-width: 100%; /* Allow the form to take up the full width */
        gap: 1rem; /* Reduce spacing between form elements */
    }

    .form-group label {
        font-size: 0.9rem; /* Adjust font size */
        margin-top: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem; /* Adjust font size */
        padding: 0.75rem; /* Adjust padding */
    }

    .form-group .char-limit {
        font-size: 0.8rem; /* Adjust font size */
    }

    .submit-btn {
        font-size: 1rem; /* Adjust button font size */
        padding: 0.75rem; /* Adjust button padding */
        margin-top: 0.5rem;
    }
}