:root {
    --max-width: 1100px;
}

html, body {
    min-height: 100%;
    line-height: 1.4;
}

.layout {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.header__top {
    background: #088edd;
    padding: 5px 10px;
}
.header__top a {
    color: white;
}

.header__top-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    min-height: 32px;
}

.header__top-content-nav {
    text-align: center;
    width: 100%;
}

.header__top-content-nav-item {
    display: inline;
    margin: 0 0.2em;
}

.header__bottom {
    padding: 5px 10px;
    border-bottom: 1px solid #e1e1e1;
}

.header__bottom a {
    color: #666;
    text-decoration: none;
}

.header__bottom a:hover {
    color: #00a4ef;
}

.header__bottom-content {
    max-width: var(--max-width);
    position: relative;
    margin: 0 auto;
    display: block;
}

.header__bottom-content-header {
    display: flex;
}

a.navbar-toggle {
    background-color: #3a3a3a;
    color: #ffffff;
    font-size: 22px;
    border-radius: 4px;
    margin-bottom: 15px;
    margin-top: 15px;
    margin-left: auto;
    padding: 0 10px;
    line-height: 45px;
    border: none;
    cursor: pointer;
    display: block;
}

a.navbar-toggle:hover {
    background-color: #00a4ef;
    color: #ffffff;
}

.header__bottom-content-nav {
    position: absolute;
    width: 100%;
    background: #fff;
    display: none;
}

.header__bottom-content-nav.navbar-toggle-visible {
    display: block;
}

.header__bottom-content-nav-item {
    border-top: 1px solid #999;
    margin: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 20px;
}

.header__bottom-content-nav-item > a {
    padding: .2em;
}

.header__bottom-content-nav-item_has-children > a::after {
    color: #666;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 14px;
    margin-left: 7px;
}

.header__bottom-content-nav-item-submenu {
    margin-top: .2em;
}

.header__bottom-content-nav-item-submenu li {
    border-top: 1px solid #999;
    padding: .2em .2em .2em 1em;
}

main {
    padding: 2em 10px;
    flex: 1;
}

.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer__top {
    background: #3a3a3a;
    color: white;
    padding: 20px 10px;
}

.footer__top-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer__bottom {
    background: #2d2d2d;
    color: white;
    padding: 20px 10px;
}

.footer__bottom p {
    margin-bottom: 1em;
}

.footer__bottom a {
    color: white;
}

.footer__bottom-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer__bottom-content-nav {

}

.footer__bottom-content-nav-item {
    display: inline;
    margin: 0 .5em;
}

.info-box {
    margin-bottom: 1em;
}

.info-box strong {
    font-weight: bold;
}

.info-box__icon {
    float: left;
    font-size: 25px;
}
.info-box__content {
    margin-left: 35px;
    font-size: 14px;
}

.am-list-subscriptions .am-list-subscriptions-desc {
    white-space: unset;
}

.am-invoice-summary .am-invoice-summary-item-num {
    color: #777;
}

.am-invoice-summary .am-invoice-summary-item-terms {
    color: #777;
    margin-left: 1em;
}


@media (min-width: 768px) {
    .header__bottom-content {
        display: flex;
    }

    a.navbar-toggle {
        display: none;
    }

    .header__bottom-content-nav,
    .header__bottom-content-nav.navbar-toggle-visible {
        position: relative;
        margin-left: auto;
        display: flex;
        width: auto;
    }

    .header__bottom-content-nav-item {
        border: none;
        margin-left: 1em;
    }

    .header__bottom-content-nav-item > a {
        padding: 0;
    }

    .header__bottom-content-nav-item-submenu li {
        border: none;
        padding-left: 0;
    }

    .header__bottom-content-nav-item-submenu {
        position: absolute;
        display: none;
        padding: .5em;
        background: #fff;
        box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
        z-index: 1;
    }

    .header__bottom-content-nav-item_has-children:hover .header__bottom-content-nav-item-submenu {
        display: block;
    }


    .footer__top-content {
        display: flex;
        justify-content: space-between;
    }

    .footer__bottom-content {
        text-align: left;
        display: flex;
    }

    .footer__bottom p {
        margin-bottom: 0;
    }

    .footer__bottom-content-nav {
        margin-left: auto;
        display: flex;
    }

    .footer__bottom-content-nav-item {
        margin: 0 0 0 1em;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .header__top-content-nav {
        width: auto;
        margin-left: auto;
        display: flex;
    }

    .header__top-content-nav-item {
        margin: 0 0 0 1em;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
/* === Homepage responsive layout === */

.am-common img {
    max-width: 100%;
    height: auto;
}

.hp-flex {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    align-items: flex-start;
    box-sizing: border-box;
}

.hp-flex.hp-center {
    align-items: center;
}

.hp-card {
    flex: 1;
    text-align: center;
    padding: 1em;
    border-radius: 4px;
    box-sizing: border-box;
    min-width: 0;
}

.hp-card img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.hp-btn {
    display: inline-block;
    padding: 0.35em 1em;
    text-decoration: none !important;
    border-radius: 3px;
    font-size: 0.9em;
    margin: 0.25em;
    color: #fff !important;
    line-height: 1.4;
}

.hp-section {
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1em;
}

.hp-section-header {
    text-align: center;
    padding: 0.5em 1em;
    font-size: 1.3em;
    font-weight: bold;
    margin: 0;
    display: block;
}

.hp-section-header a {
    color: #fff !important;
    text-decoration: none;
}

.hp-section-body {
    padding: 1em;
}

.hp-banner {
    display: block;
    text-align: center;
    padding: 0.6em 1em;
    border-radius: 4px;
    margin: 0.75em 0;
}

.hp-note {
    background: #eaf4fb;
    border-left: 4px solid #2980b9;
    padding: 0.75em 1em;
    border-radius: 0 4px 4px 0;
    margin-bottom: 1em;
}

@media (max-width: 560px) {
    .hp-flex {
        flex-direction: column;
    }
    .hp-card {
        min-width: 100% !important;
    }
    .hp-btn {
        display: block;
        text-align: center;
        margin: 0.3em 0;
    }
    .hp-section-header {
        font-size: 1.1em;
    }
}

/* === Contact page === */

.am-ct-page { font-size:15px; line-height:1.7; }
.am-ct-formerly { display:inline-block; background:#f0f0f0; border:1px solid #ddd; border-radius:20px; font-size:0.82em; color:#666; padding:3px 14px; margin-bottom:2rem; }
.am-ct-callout { background:#e3f3fc; border:1px solid #9fd2f1; border-radius:10px; padding:18px 20px; margin-bottom:2rem; }
.am-ct-callout strong { color:#088edd; }
.am-ct-callout p { margin:6px 0 0; font-size:0.88em; color:#0674b7; }
.am-ct-badge { display:inline-flex; align-items:center; background:#088edd; color:#fff; font-size:0.78em; font-weight:700; padding:5px 16px; border-radius:20px; letter-spacing:.05em; text-transform:uppercase; margin-bottom:12px; }
.am-ct-divider { border:none; border-top:1px solid #e1e1e1; margin:0 0 2.5rem; }
.am-ct-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px; margin-bottom:2.5rem; }
.am-ct-grid-sm { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; margin-bottom:14px; }
.am-ct-grid-loc { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:12px; margin-bottom:2rem; }
.am-ct-card { border:1.5px solid #088edd; border-radius:10px; padding:18px 20px; background:#fff; }
.am-ct-card-head { font-weight:700; color:#088edd; font-size:0.88em; border-bottom:1px solid #e1e1e1; padding-bottom:10px; margin-bottom:14px; }
.am-ct-row { margin:7px 0; font-size:0.9em; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.am-ct-lbl { color:#888; font-size:0.82em; min-width:34px; flex:0 0 auto; }
.am-ct-red-tag { background:#fde8e8; color:#c0392b; font-size:0.72em; font-weight:700; padding:2px 9px; border-radius:10px; border:1px solid #f5a9a9; white-space:nowrap; }
.am-ct-email-row { margin-bottom:10px; }
.am-ct-email-lbl { font-size:0.8em; color:#888; margin-bottom:2px; }
.am-ct-tags { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:16px; }
.am-ct-tag { background:#e3f3fc; color:#0674b7; font-size:0.8em; padding:3px 11px; border-radius:12px; border:1px solid #9fd2f1; }
.am-ct-hint { background:#f5f5f5; border-radius:6px; padding:10px 13px; font-size:0.82em; color:#555; margin-bottom:8px; }
.am-ct-split { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); border:1px solid #ddd; border-radius:10px; overflow:hidden; margin-bottom:18px; }
.am-ct-split-left { background:#e3f3fc; padding:18px 20px; }
.am-ct-split-right { background:#f9f9f9; padding:18px 20px; }
.am-ct-split-lbl { font-size:0.78em; font-weight:700; text-transform:uppercase; letter-spacing:.05em; margin-bottom:5px; }
.am-ct-org-card { background:#fff; border:1px solid #ddd; border-top:3px solid #088edd; border-radius:8px; padding:16px 18px; }
.am-ct-org-lbl { color:#888; font-size:0.82em; display:inline-block; min-width:58px; }
.am-ct-org-hours { margin:10px 0 0; font-size:0.78em; color:#999; border-top:1px solid #eee; padding-top:8px; }
.am-ct-loc-card { border:1px solid #ddd; border-left:4px solid #088edd; border-radius:0 8px 8px 0; padding:14px 16px; background:#fff; }
.am-ct-loc-lbl { font-size:0.75em; font-weight:700; color:#088edd; text-transform:uppercase; letter-spacing:.05em; margin-bottom:6px; }
.am-ct-info-bar { display:flex; gap:13px; align-items:flex-start; border-radius:8px; padding:14px 18px; margin-bottom:12px; font-size:0.9em; }
.am-ct-info-blue { background:#e3f3fc; border:1px solid #9fd2f1; color:#0674b7; }
.am-ct-info-gray { background:#f7f7f7; border:1px solid #088edd; }

@media (max-width:560px) {
    .am-ct-grid, .am-ct-grid-sm, .am-ct-grid-loc { grid-template-columns:1fr; }
    .am-ct-split { grid-template-columns:1fr; }
    .am-ct-info-bar { flex-direction:column; gap:8px; }
}

/* === About page === */

.am-about-hero-img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin-bottom: 1.5em;
}

.am-about-intro {
    display: flex;
    gap: 1.5em;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1.5em;
}

.am-about-intro img {
    border-radius: 6px;
    max-width: 100%;
    height: auto;
    display: block;
}

.am-qa {
    margin: 1.2em 0;
}

.am-qa-item {
    border-left: 4px solid #1a3d6e;
    padding: 0.75em 1em;
    margin-bottom: 1em;
    background: #f7f9fc;
    border-radius: 0 6px 6px 0;
}

.am-qa-q {
    font-weight: bold;
    color: #1a3d6e;
    margin: 0 0 0.4em;
    font-size: 1.05em;
}

.am-qa-a {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.am-about-address {
    display: flex;
    gap: 1em;
    align-items: flex-start;
    background: #eaf4fb;
    border: 1px solid #aed6f1;
    border-radius: 6px;
    padding: 1em 1.2em;
    margin: 1.2em 0;
}

.am-about-address-icon {
    font-size: 2em;
    color: #2980b9;
    flex: 0 0 auto;
    margin-top: 0.1em;
}

.am-about-cta {
    display: flex;
    gap: 0.75em;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.5em 0 0.5em;
}

.am-about-cta a {
    flex: 1 1 160px;
    text-align: center;
    padding: 0.6em 1em;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 0.95em;
}

@media (max-width: 560px) {
    .am-about-intro {
        flex-direction: column;
    }
    .am-about-intro img {
        width: 100%;
    }
    .am-about-cta a {
        flex: 1 1 100%;
    }
}

/* === Product/Billing Plan Tiles (decorated forms only) === */

.am-products-tiles {
    margin: 0 0 1.5rem;
    padding: 0;
}

/* Horizontal layout (side-by-side); JS sets columns via inline style */
.am-products-tiles-horizontal {
    /* grid styles set via JS */
}

/* Vertical layout (stacked) */
.am-products-tiles-vertical {
    /* display set via JS to block */
}

/* Each label is a card/tile */
.am-products-tiles > label {
    border-radius: 0.75rem;
    border: 1px solid #ddd;
    padding: 1rem 1.25rem;
    background: #fff;
    display: block; /* back to block, structure comes from inner spans */
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
    cursor: pointer;
}

/* Hide the <br> aMember drops between options (between tiles) */
.am-products-tiles > br {
    display: none;
}

/* Keep radio/checkbox visible */
.am-products-tiles input[type="radio"],
.am-products-tiles input[type="checkbox"] {
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Safety: if some <br> survives right after the input, hide it */
.am-products-tiles label input + br {
    display: none;
}

/* --- Layout inside the tile --- */

/* Left side: radio + TITLE on the same line */
.am-products-tiles .am-tile-left {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Title inline with the radio */
.am-products-tiles .am-tile-left .am-product-title {
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

/* Content block under the radio+title (terms, desc, extra) */
.am-products-tiles .am-tile-content {
    display: block;
    margin-top: 0.35rem;
}

/* Text styling */
.am-products-tiles .am-product-terms {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.am-products-tiles .am-product-desc {
    font-size: 0.9rem;
    color: #555;
}

/* Extra HTML block under title/terms */
.am-products-tiles .am-product-extra {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #444;
}

/* Hover + selected states */
.am-products-tiles > label:hover {
    border-color: #007bff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.am-products-tiles > label.is-selected {
    border-color: #007bff;
    background: #eaf3ff;
}

/* === Center + Bold modes controlled by brick options === */

/* Center mode: radio stays left; only the TITLE text is centered */
.am-products-tiles-center .am-tile-left .am-product-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Content block (terms/desc/extra) stays left-aligned */
.am-products-tiles-center .am-tile-content,
.am-products-tiles-center .am-product-terms,
.am-products-tiles-center .am-product-desc,
.am-products-tiles-center .am-product-extra {
    text-align: left;
}

/* Bold mode */
.am-products-tiles-bold .am-product-title,
.am-products-tiles-bold .am-product-terms {
    font-weight: 700;
}