
/* Hide floating appointment link on the contact page */
.appointment-link {
    display: none !important;
}

#contact-form *,
#contact-form *::before,
#contact-form *::after {
    box-sizing: border-box;
}
#contact-form-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 0;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin: 40px auto;
}

#contact-form-container.thanks {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Ensure the thank you section fills the viewport when the
       page has little content so the footer stays at the bottom */
    min-height: calc(100vh - var(--nav-height) - 60vh);
}


#contact-form-container h1,
#contact-form-container h2 {
    color: var(--dark-gray);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

#contact-form-container p {
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: left;
    line-height: 1.6;
}

#contact-form-container strong {
    white-space: nowrap;
}


#contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    text-align: left;
}
.required-asterisk {
    color: red;
}
.required-note {
    font-size: 0.9rem;
    margin: 0 0 15px;
    text-align: right;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-unit);
}

.form-group {
    flex: 1;
    text-align: left;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: calc(var(--spacing-unit) * 0.6);
    margin: calc(var(--spacing-unit) * 0.5) 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    text-align: left;
}

#contact-form textarea {
    resize: vertical;
    min-height: 150px;
    padding: calc(var(--spacing-unit) * 0.6);
}


#submit-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 0;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto 0;
    width: fit-content;
}

#submit-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}


#website {
    display: none;
}


@media screen and (max-width: 768px) {
    #contact-form-container {
        padding: 30px;
        max-width: 90%;
    }
    .form-row {
        flex-direction: column;
    }
    .form-group {
        width: 100%;
    }
    #contact-form input,
    #contact-form textarea {
        font-size: 14px;
    }
    #submit-button {
        font-size: 1rem;
        padding: 12px 30px;
    }
}

@media screen and (max-width: 480px) {
    #contact-form-container h1,
    #contact-form-container h2 {
        font-size: 1.2rem;
    }
    #contact-form-container p {
        font-size: 0.9rem;
    }
    #submit-button {
        padding: 10px 24px;
    }
}

@media screen and (min-width: 1025px) {
    #contact-form-container h1,
    #contact-form-container h2 {
        font-size: 1.35rem;
    }
}
