/*
 * Styles for the payment checkout page.
 *
 * This file contains the CSS previously embedded in payment.html.  Moving
 * these rules to an external stylesheet supports a stricter
 * Content‑Security‑Policy and enables caching.
 */

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;
}

/* Use gap on the parent to space out navigation links instead of per-link margins */
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;
}

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

/* Dropdown styling for the pricing menu on the payment page */
.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;
}

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

.payment h2 {
    margin-top: 0;
}

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

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

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

/* Styles for the mobile navigation hamburger and phone button.  Hidden on
   larger screens and displayed on screens 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 nav horizontal and relative on small screens so the mobile
       menu can be positioned beneath it */
    nav {
        position: relative;
        flex-direction: row;
        align-items: center;
    }
    /* Hide navigation links until toggled; show them as a drop-down
       underneath the header row */
    .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 icon */
    .phone-button,
    .menu-toggle {
        display: inline-block;
    }
}

/* Always display the inline Pricing Guide link next to the Pricing
   navigation item.  This enhances usability on 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;
}

/* Contact information bar styling */
.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 matches the primary blue of the navbar */
.footer {
    background: #083d77;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

/* Apple pay button default state hidden */
#apple-pay-button {
    display: none;
}