/* Footer Styles */
footer {
    background-color: var(--dark-color);
    padding: 90px 0px 40px 0px;
    color: var(--secondary-color);
    font-family: var(--font-body);
}

@media (max-width: 768px) {
    footer {
        padding: 70px 0px 40px 0px;
    }
}

.footer-container {
    width: 1200px;
    max-width: 90%;
    margin: 0px auto 0px auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 850px) {
    .footer-content {
        grid-template-columns: 1fr 1fr; /* Stack into two columns */
        gap: 30px;
    }

    /* Make the last item twice as wide */
    .footer-content > div:nth-child(5) {
        grid-column: span 2; /* Last column spans both columns */
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr; /* Stack into two columns */
        gap: 30px;
    }

    /* Make the last item twice as wide */
    .footer-content > div:nth-child(5) {
        grid-column: span 1; /* Last column spans both columns */
    }
}


.footer-box {
    display: flex;
    flex-direction: column;
}

.footer-phone {
    font-size: 18px;
    text-decoration: none;
    color: var(--secondary-color);
}

.footer-links, .footer-cities, .footer-counties {
    list-style-type: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 24px;
}

.footer-links a {
    text-decoration: none;
    color: var(--secondary-color);
}

.footer-links a:hover {
    opacity: 0.7; /* Hover effect for links */
    transition: opacity 0.3s ease;
}

.footer-links a.active {
    text-decoration: none;
    padding-bottom: 4px; /* Adjust this value to move the line down */
    border-bottom: 2px solid var(--secondary-color); /* Underline color and thickness */
}

.footer-box h4 {
    margin-bottom: 24px;
}


footer p {
    font-size: 16px;
}

/* Contact Form */

.section-contact {
    display: flex;
    justify-content: center; /* Centers horizontally */
}

.section-contact h2 {
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
    margin-bottom: 8px;
}

.section-contact p {
    margin: 0 auto;
    text-align: center;
    max-width: 600px;
    margin-bottom: 24px;
}

.contact-box {
    width: 100%;
    max-width: 600px;
    background-color: var(--secondary-color);  
    border-radius: 24px;
    padding: 30px;
    margin: 0 auto;
}

.contact-box button {
    width: 100%;
    border-radius: 10px;
}

.contact-content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-content input, 
.contact-content textarea {
    padding: 15px;
    font-size: 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-body);
}

.contact-content input::placeholder,
.contact-content textarea::placeholder {
    color: #888;
}

.error-message {
    color: #e74c3c;
    font-size: 16px;
    margin-top: 5px;
    text-align: left;
    display: none;
}

.input-group textarea {
    height: 120px;
    resize: none;
}

.confirmation-message {
    margin-top: 30px;
    color: var(--dark-color);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 18px;
    text-align: center;
    display: none;
    font-weight: 300;
}
