/* =========================
   Contact Us Page
   El Borondo Cafe
   ========================= */

.contact {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #FDFBF7;
    background-image: url('images/beans1.png');
    font-family: Georgia, serif;
    color: #1B3B2B;
}

/* Header */

.contact header {
    text-align: center;
    padding-top: 20px;
    background-image: url('images/banner1.png');
    background-position: center;
    background-size: cover;
}

.contact #Top {
    color: #1B3B2B;
    font-size: 36px;
    margin-bottom: 10px;
}

/* Navigation */

.contact nav {
    background-color: #FDFBF7;
    padding: 1rem 2rem;
}

.contact nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact nav a {
    color: #1B3B2B;
    text-decoration: none;
    font-family: Georgia, serif;
    transition: color 0.3s ease;
}

.contact nav a:hover,
.contact nav a.selected {
    color: #C86D51;
}

.contact nav a.selected {
    font-weight: bold;
    border-bottom: 2px solid #C86D51;
    padding-bottom: 5px;
}

/* Main Content */

.contact main {
    padding: 25px;
    background-color: #FDFBF7;
}

.contact main > p {
    max-width: 800px;
    margin: 0 auto 25px;
    line-height: 1.6;
    text-align: center;
}

/* Contact Form Table */

.contact table {
    width: 100%;
    max-width: 750px;
    margin: 0 auto 25px;
    border: 4px solid #C86D51;
    border-collapse: collapse;
    background-color: #FDFBF7;
}


.contact th,
.contact td {
    border: 1px solid #C86D51;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

.contact th {
    width: 35%;
    background-color: #1B3B2B;
    color: #FDFBF7;
    font-weight: bold;
}

.contact form {
    text-align: center;
}

.contact form table {
    text-align: left;
}

/* Form Controls */

.contact input[type="text"],
.contact input[type="email"],
.contact select,
.contact textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 9px;
    border: 1px solid #1B3B2B;
    border-radius: 4px;
    background-color: #FFFFFF;
    color: #1B3B2B;
    font-family: Georgia, serif;
    font-size: 16px;
}

.contact textarea {
    resize: vertical;
}

.contact input[type="checkbox"] {
    accent-color: #C86D51;
    margin-right: 5px;
}

.contact td label {
    margin-right: 12px;
}

/* Keyboard Focus */

.contact input:focus,
.contact select:focus,
.contact textarea:focus {
    outline: 2px solid #C86D51;
    outline-offset: 2px;
}

/* Form Buttons */

.contact button {
    display: inline-block;
    padding: 10px 22px;
    margin: 0 8px 10px 0;
    border: 2px solid #C86D51;
    border-radius: 5px;
    background-color: #1B3B2B;
    color: #FDFBF7;
    font-family: Georgia, serif;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease,
                color 0.3s ease;
}

.contact button:hover {
    background-color: #C86D51;
    color: #FFFFFF;
}

.contact button:focus-visible {
    outline: 2px solid #1B3B2B;
    outline-offset: 3px;
}

.contact .form-title {
    width: auto;
    text-align: center;
    background-color: #1B3B2B;
    color: #FDFBF7;
    font-size: 24px;
    padding: 14px;
    border-bottom: 2px solid #C86D51;
}

/* Required Field Asterisks */

.contact .required {
    color: #FF9999;
    font-weight: bold;
}

/* Mobile Layout */

@media screen and (max-width: 640px) {
    .contact nav {
        padding: 1rem;
    }

    .contact nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .contact main {
        padding: 15px;
    }

    .contact table {
        font-size: 14px;
    }

    .contact th,
    .contact td {
        padding: 8px;
    }

    .contact input[type="text"],
    .contact input[type="email"],
    .contact select,
    .contact textarea {
        font-size: 16px;
    }

    .contact td label {
        margin-right: 6px;
    }

    @media screen and (max-width: 640px) {
    .contact table {
        table-layout: fixed;
        overflow-wrap: break-word;
    }

    .contact th {
        width: 35%;
    }

    .contact td input[type="checkbox"] {
        margin-bottom: 6px;
    }
}
}