/* ======================= CONTACT ======================== */

.contact-tile {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 50%;
    height: 50vh;
    padding: 80px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-tile:hover {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.contact-tile img {
    position: absolute;       /* Position the image absolutely within .contact-tile */
    bottom: -70px;                /* Align to the bottom of .contact-tile */
    right: 0;                 /* Align to the right of .contact-tile */
    width: 25%;
}

.form-title{
    font-family: 'Glass Antiqua', 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 68px;
    margin-bottom: 80px;
    text-align: center;
}

#contactForm {
    display: flex;
    flex-direction: column; /* Stack fields vertically */
    align-items: flex-start; /* Align fields to the left */
    width: 100%; /* Ensure form uses full width or adjust as needed */
    max-width: 600px; /* Optional: Adjust max-width for form */
    margin: 0 auto; /* Center the form within the container */
    position: relative;
}

.form-group {
    width: 100%;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input, .form-group textarea {
    font-family: 'Raleway', 'Open Sans', 'Helvetica Neue', sans-serif;
    width: 100%;
    padding: 10px;
    outline: none;
    border: none;
    background: none;
    border-bottom: 2px solid var(--border-color);
    font-size: 16px;

}

.form-group textarea {
    font-family: 'Raleway', 'Open Sans', 'Helvetica Neue', sans-serif;
    resize: vertical;
    height: 10vh;
}

.submit-container {
    display: flex;
    justify-content: center; /* Center the button horizontally */
    width: 100%; /* Full width of the form */
}

.form-group button {
    outline: none;
    font-size: 18px;
    font-weight: bold;
    height: 3rem;
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 10px 40px;
    border-radius: 3rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative; /* Added for effect positioning */
}

.form-group button:hover {
    cursor: pointer;
    font-weight: bold;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    background-color: white;
    box-shadow: 1px 2px 8px #3b3d416c;
}

.form-group button.effect1 {
    position: relative;
    width: 3rem;
    height: 3rem;
    font-size: 0;
    padding: 10px 20px;
}

.form-group button.effect1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--border-color);
    border-right-color: var(--secondary-color);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
    box-sizing: border-box;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-group button.effect2 {
    position: relative;
    background-color: var(--secondary-color) ;
    padding: 1rem; /* Ensure the content fits within the background */
    border-radius: 3rem; /* Optional: Add some border radius for rounded corners */
    display: inline-flex; /* Center the content and icon */
    align-items: center;
    justify-content: center;
    width: 150px;
    transition: all 0.2s ease-in-out;
}

.form-group button.effect2::before {
    content: "\f00c"; /* Correct Unicode for FontAwesome checkmark icon */
    font-family: "FontAwesome"; /* Ensure FontAwesome is included */
    color: white;
    font-size: 1.5rem;
    position: absolute; /* Positioning relative to the parent */
}

.success-message {
    width: 100%;
    text-align: center;
    display: none;
    margin-top: 20px;
    color: green;
}

.wip {
    position: absolute;
    top: 20%;
    left: 20%;
}