.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.footer h2 {
    margin-bottom: 10px;
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 40px;
}



.contact-form {
    margin: 0 auto;
    padding: 20px;
    align-self: center;
    max-width: 600px;
}

.contact-form h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

input,
textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-weight: 600;
    border: 1.5px solid var(--text-color);
}

.btn-submit {
    background-color: var(--text-color);
    color: var(--background-color);
    border: none;
    cursor: pointer;
    margin: 0 auto;
    width: 100%;
    align-self: center;
    max-width: 600px;
    position: relative;
}

.btn-submit:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-submit.loading {
    color: transparent;
    /* Hide button text during loading */
}

.btn-submit.loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--background-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.reach {
    font-size: 14px;
    margin-bottom: 10px;
    /* Added margin-bottom for spacing */
}

.footer a {
    margin-bottom: 16px;
    margin-top: 1px;
}

.copy {
    font-size: 8px;
    margin: 0 10px;
    /* Combined margin-left, margin-right, and margin-bottom */
}

/* Styles for screens smaller than 768px (typical mobile devices) */
@media only screen and (max-width: 767px) {
    .reach {
        font-size: 12px;
    }

    /* Adjustments for iOS devices */
    @supports (-webkit-overflow-scrolling: touch) {
        .reach {
            margin-bottom: 12px;
            /* Adjusted margin for iOS */
        }

        .copy {
            margin: 0 12px;
            /* Adjusted margin for iOS */
        }
    }
}
