/*
 * Styles for the scheduling and payment page.
 *
 * The rules in this file were extracted from the inline <style>
 * element previously embedded in schedule-payment.html.  Moving
 * them to a dedicated stylesheet improves security by eliminating
 * inline styles and allows browsers to cache the CSS more
 * effectively.
 */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #083d77;
    color: white;
    flex-wrap: wrap;
}

.left-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Remove explicit right margin on nav links; use gap on parent for spacing */
nav a {
    color: white;
    text-decoration: none;
    margin: 0;
    font-weight: bold;
}

nav select {
    margin-right: 20px;
    padding: 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    appearance: none;
}

nav select option {
    background: #fff;
    color: #000;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #083d77;
    min-width: 160px;
    top: 100%;
    left: 0;
    z-index: 1;
    border-radius: 0 0 4px 4px;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: white;
    white-space: nowrap;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-top: 40px;
    background: #f8f8f8;
    padding: 30px;
    border-radius: 6px;
}

section h2 {
    margin-top: 0;
    color: #083d77;
}

.schedule form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.schedule input,
.schedule textarea,
.schedule select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

.schedule button {
    grid-column: 1 / -1;
    padding: 10px 20px;
    background: #083d77;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.payment h3 {
    margin-bottom: 10px;
    margin-top: 20px;
}

.payment div,
.payment button {
    margin-bottom: 20px;
}

.payment button {
    padding: 10px 20px;
    background: #083d77;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    /* Stack logo and links vertically with a reduced gap */
    .left-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    nav a {
        margin: 0;
    }
    nav select {
        margin: 5px 0;
    }
    .schedule form {
        grid-template-columns: 1fr;
    }
}

/* Contact information bar styling: white background with centered text */
.contact-info {
    background: #fff;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

.contact-info a {
    color: #083d77;
    text-decoration: underline;
}

.contact-info a:hover {
    text-decoration: none;
}

/* Footer styling containing only copyright. Use the same blue as the header */
.footer {
    background: #083d77;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

/* Logo styling for navigation bar */
.logo {
    height: 40px;
    width: auto;
    margin-right: 15px;
}

/* Hide honeypot inputs for spam prevention */
.honeypot {
    display: none !important;
}

/*
 * Utility class to visually hide elements while keeping them accessible
 * for screen readers.  Used for labels in the schedule form to
 * satisfy accessibility guidelines without altering the visual design.
 */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Styles for the mobile navigation hamburger and phone button.  Hidden on
   wider screens and shown on viewports narrower than 600px. */
.phone-button,
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
    padding: 5px;
}

.phone-button {
    background: #ffcc00;
    color: #083d77;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
}

@media (max-width: 600px) {
    /* Keep the navigation header horizontal and relative so that
       the mobile menu can be positioned below it. */
    nav {
        position: relative;
        flex-direction: row;
        align-items: center;
    }
    /* Hide navigation links until toggled open; when shown they
       are absolutely positioned beneath the header with the same
       background colour and padding. */
    .left-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        margin: 0;
        gap: 10px;
        background: #083d77;
        padding: 10px 0;
        z-index: 1000;
    }
    nav.menu-open .left-nav {
        display: flex;
    }
    /* Show the call button and hamburger toggle on narrow screens */
    .phone-button,
    .menu-toggle {
        display: inline-block;
    }
}

/* Always display the inline Pricing Guide link next to the Pricing
   navigation item.  This improves usability on both desktop and mobile. */
.price-guide-inline {
    display: inline;
}

/* Hide the dropdown contents entirely since the inline link replaces
   the hover-based dropdown behaviour. */
.dropdown-content {
    display: none !important;
}

/* Hide Apple Pay button by default; it is shown conditionally via JS */
#apple-pay-button {
    display: none;
}