/* Pricing Table Styles */
.pricing-table {
    background: #fafbfc;
    border-radius: 10px;
    box-shadow: 0 1.5px 6px rgba(0,0,0,0.04);
    border: 1px solid #e3e6ea;
    min-width: 320px;
    max-width: 480px;
    width: 100%;
    margin-bottom: 2em;
    color: #222;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-size: 1.08em;
    overflow: hidden;
}
.pricing-table th, .pricing-table td {
    padding: 0.8em 0.5em;
    text-align: left;
}
.pricing-table th {
    background: #e3e6ea;
    font-weight: 700;
}
.pricing-table td {
    background: #fafbfc;
}
.pricing-table td:last-child, .pricing-table th:last-child {
    text-align: right;
}
@media (max-width: 600px) {
    .pricing-table {
        font-size: 0.98em;
        min-width: 0;
    }
}
.dark-theme .pricing-table {
    background: #181c22;
    border-color: #333a44;
    color: #e0e6f0;
}
.dark-theme .pricing-table th {
    background: #232a33;
    color: #e0e6f0;
}
.dark-theme .pricing-table td {
    background: #181c22;
    color: #e0e6f0;
}

/* Optional services header row */
.pricing-table .optional-header-row .optional-header {
    background: transparent;
    text-align: center;
    font-weight: 700;
    padding: 0.6em 0.5em;
    color: #333;
}
.dark-theme .pricing-table .optional-header-row .optional-header {
    color: #d6e3ff;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Common upsells for poop scooper companies (for your reference):
   - Deodorizing/sanitizing yard spray
   - Cat litter box cleaning
   - Pet waste station installation/refill
   - Dog walking or pet sitting
   - Lawn brown spot treatment
   - One-time deep cleans (spring/fall)
   - Trash bin cleaning
*/
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* HERO/INTRO SECTION - REDUCED HEIGHT & CENTERED */
.intro-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 24px 0 8px 0;
    padding: 0 10px;
    width: 100%;
    max-width: 100vw;
    min-height: 260px;
    text-align: center;
    box-sizing: border-box;
}
.intro-img {
    display: flex;
    justify-content: center;
    width: 100%;
}
.intro-img img {
    width: 180px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    max-width: 100%;
    display: block;
    transition: width 0.3s;
}
@media (min-width: 700px) {
    .intro-section {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 36px;
        margin-bottom: 24px;
        min-height: 320px;
    }
    .intro-img {
        flex: 0 0 160px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .intro-img img {
        width: 320px;
    }
    .intro-text {
        flex: 1 1 0;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
    .intro-text h2 {
        font-size: 2rem;
    }
    .intro-text p {
        font-size: 1.1rem;
        max-width: 45%;
    }
}

footer {
    width: 100%;
    background: #0F5257;
    color: #fff;
    text-align: center;
    padding: 2em 0 1em 0;
    font-size: 1em;
    margin-top: 3em;
    letter-spacing: 0.03em;
}
main, section, .intro-section, .service-card {
        max-width: 96vw;
        width: 96vw;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
}

/* Article Section Styles from ArticleCards */
.c-posts {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2.5em 2em;
    padding: 5% 2% 5% 2%;
    font-family: 'Georgia', Times, serif;
    line-height: 1.6em;
    justify-content: flex-start;
}
.c-posts__item {
    /* ...existing code... */
    text-align: left;
    align-items: flex-start;
}
.c-posts__item h1,
.c-posts__item h2,
.c-posts__item h3 {
    color: #111;
    font-family: 'Georgia', Times, serif;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 0.5em;
    text-align: left;
}
.c-posts__item h1 {
    font-size: calc(130% + 1vw);
}
.c-posts__item h2 {
    font-size: 1.5em;
}
.c-btn {
    color: #0F5257;
    display: inline-block;
    border-bottom: 2px solid #0F5257;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-weight: 900;
    letter-spacing: .1em;
    padding: .3em 0 .3em 0;
    position: relative;
    transition: .2s all;
    overflow: hidden;
    background: none;
    margin-top: 1.5em;
    font-size: 1.08em;
    line-height: 1.2em;
}
.c-btn:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #FF521B;
    height: 0%;
    transition: .2s all;
    z-index: -10;
}
.c-btn:hover {
    padding-left: .75em;
    padding-right: .75em;
    color: #fff;
    border-color: #FF521B;
}
.c-btn:hover:before {
    height: 100%;
}
@media (max-width: 700px) {
    .c-posts {
        flex-direction: column;
        gap: 1.5em 0;
        padding: 5% 0.5em 5% 0.5em;
    }
    .c-posts__item {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        margin: 0 auto;
        padding: 1.5em 1em 2em 1em;
    }
}

.c-posts__item {
    flex-grow: 1;
    padding: 2.2em 2em 2.7em 2em;
    margin: 0;
    background: #fafbfc;
    border-radius: 10px;
    box-shadow: 0 1.5px 6px rgba(0,0,0,0.04);
    border: 1px solid #e3e6ea;
    position: relative;
    font-family: 'Georgia', Times, serif;
    line-height: 1.6em;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 220px;
    max-width: 400px;
    transition: box-shadow 0.2s, border 0.2s;
}
.dark-theme .c-posts__item {
    background: #111;
}
.c-posts__item:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    border: 1.5px solid #b3c6e0;
}
/* READ MORE button style for article cards */
.c-btn {
    color: #0F5257;
    display: inline-block;
    border-bottom: 4px solid #0F5257;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-weight: 900;
    letter-spacing: .1em;
    padding: .3em 0;
    position: relative;
    transition: .2s all;
    overflow: hidden;
    background: none;
    margin-top: 1.5em;
    font-size: 1.08em;
}
.c-btn:before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #FF521B;
    height: 0%;
    transition: .2s all;
    left: 0;
    z-index: -10;
}
.c-btn:hover {
    padding-left: .75em;
    padding-right: .75em;
    color: #fff;
    border-color: #FF521B;
}
.c-btn:hover:before {
    height: 100%;
}
.c-posts__item:first-child {
    flex-grow: 2;
}
@media all and (min-width:600px) {
    .c-posts {
        gap: 2.5em 2em;
    }
    .c-posts__item {
        flex-basis: 48%;
        margin: 0;
        padding-right: 2.5%;
    }
    .c-posts__item:first-child {
        flex-basis: 100%;
    }
}
@media all and (min-width:1000px) {
    .c-posts__item {
        flex-basis: 31%;
    }
    .c-posts__item:first-child {
        flex-basis: 64%;
    }
}
@media all and (min-width:1400px) {
    .c-posts__item {
        flex-basis: 23%;
    }
    .c-posts__item:first-child {
        flex-basis: 48%;
    }
}

/* Article Typography */
.c-posts__item h1 {
    font-size: calc(130% + 1vw);
    font-weight: normal;
    font-family: 'Georgia', Times, serif;
}
.c-posts__item h2 {
    font-size: 1.5em;
    font-weight: normal;
    margin-bottom: 0;
    margin-top: 0;
    font-family: 'Georgia', Times, serif;
}
.c-posts__item p {
    font-family: 'Georgia', Times, serif;
    line-height: 1.6em;
}
.intro-text h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
}
.intro-text p {
    margin: 0;
    color: #4b3e3e;
    font-size: 1.05rem;
}
.dark-theme .intro-text p {
    color: #ddd;
}
.dark-theme .c-posts__item h1,
.dark-theme .c-posts__item h2,
.dark-theme .c-posts__item h3,
.dark-theme .article-headline {
    color: #7ab7ff !important; /* Modern blue for dark theme */
    text-shadow: 0 2px 8px rgba(0,0,0,0.32);
}
.dark-theme .c-posts__item h1 a,
.dark-theme .c-posts__item h2 a,
.dark-theme .c-posts__item h3 a {
    color: #7ab7ff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.32);
}
.dark-theme .c-posts__item h1 a:visited,
.dark-theme .c-posts__item h2 a:visited,
.dark-theme .c-posts__item h3 a:visited {
    color: #7ab7ff !important;
}

@media (min-width: 700px) {
    .intro-section {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 36px;
        margin-bottom: 24px;
    }

/* Booking wizard layout defaults (move inline styles into CSS) */
/* Booking wizard — modern mobile-first styling */
#booking-wizard { width:100%; box-sizing:border-box; padding: 0 12px; display:flex; flex-direction:column; gap:12px; align-items:center; }
.wizard-step { width:100%; max-width:540px; background: #ffffff; border-radius:12px; padding:16px; box-shadow: 0 8px 24px rgba(15,82,87,0.06); border:1px solid rgba(15,82,87,0.06); box-sizing:border-box; }
.wizard-step h3 { margin:0 0 12px 0; font-size:1.06rem; color:#0f5257; }
.wizard-step[data-step="4"] { display:none; }

.dog-row { display:flex; gap:10px; width:100%; justify-content:space-between; align-items:center; flex-wrap:wrap; }
.wizard-step .dog-count, .wizard-step button.dog-count {
    flex: 1 1 0;
    min-width: 56px;
    padding: 12px 0;
    border-radius: 10px;
    border: 1px solid rgba(15,82,87,0.08);
    background: #f7fafb;
    color: #0f5257;
    font-weight: 700;
    font-size: 1.04rem;
    text-align: center;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.wizard-step .dog-count:focus { outline: 3px solid rgba(15,82,87,0.12); }
.wizard-step .dog-count.active,
.wizard-step .dog-count[aria-pressed="true"] {
    background: #0f5257 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15,82,87,0.12);
}

.frequency-list { display:flex; flex-direction:column; gap:8px; align-items:stretch; }
.frequency-list label { display:flex; align-items:center; gap:12px; padding:10px; border-radius:10px; background:#fbfdfe; border:1px solid rgba(15,82,87,0.04); cursor:pointer; }
.frequency-list label:hover { background:#f1f6f7; }
.frequency-list input[type="radio"] { transform:scale(1.15); accent-color: #0f5257; margin-right:6px; }

.svc-mults { display:none; gap:8px; margin-top:8px; flex-wrap:wrap; }
.svc-mults .mult { padding:8px 10px; border-radius:8px; border:1px solid rgba(15,82,87,0.06); display:inline-flex; align-items:center; gap:8px; background:#fff; font-size:0.98rem; }
.svc-mults .mult input { transform: scale(1.12); }

.wiz-actions { display:flex; gap:10px; align-items:center; }
.wiz-actions .c-btn { padding:10px 14px; border-radius:10px; border:none; background: #0f5257; color:#fff; box-shadow:none; font-weight:700; }
.wiz-actions .c-btn.secondary { background: #f1f1f1; color:#0f5257; border:1px solid rgba(15,82,87,0.06); }

#wiz-summary { padding:12px; background:#fbfdfe; border:1px solid rgba(15,82,87,0.04); border-radius:8px; color:#0f5257; font-weight:600; }

/* Make sure hidden/inline display toggles are handled */
.svc-mults.show { display:flex; }
.wizard-step.visible { display:block; }

/* Larger touch targets on small screens */
@media (max-width:420px) {
    .wizard-step { padding:14px; }
    .wizard-step .dog-count { padding:14px 0; font-size:1.08rem; border-radius:12px; }
    .frequency-list label { padding:12px; font-size:1.02rem; }
    .wiz-actions .c-btn { padding:12px 16px; font-size:1.02rem; }
}

/* Medium screens: add a little breathing room */
@media (min-width:700px) {
    .dog-row { gap:12px; }
    .wizard-step { padding:20px; }
}

/* New utility and layout rules to replace removed inline styles in petwaste/index.php */
.center-flex { display:flex; justify-content:center; }
.service-card.narrow { max-width: 400px; width:100%; }
.service-cards { width:100%; }
.svc-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.svc-check { display:flex; align-items:center; gap:10px; }
.svc-price { font-weight:700; color: #0f5257; }
#schedule-form { display:none; }
#form-success { color: #1b8a3e; margin-top:8px; font-weight:600; }
.muted-note { margin-top:1em; font-size:0.95em; color:#555; }
#pricing-section { margin-top:2em; }
.pricing-sep { border-top:1.5px dashed #bbb; margin:0 10%; height:1px; }
.pricing-sep-td { background:transparent; border:none; padding:0; height:18px; }
.muted-small { opacity:0.7; font-size:0.8em; }
.pricing-note { text-align:center; color:#888; font-size:0.98em; max-width:520px; margin:0 auto 1.5em auto; }
.c-posts.center-flex { justify-content:center; }


/* Wizard styles previously duplicated in a desktop-only block were removed
   to make the booking wizard mobile-first and prevent conflicting rules.
   Keep a single mobile-first wizard definition further down the file. */

/* subtle reveal animation for step 4 */
.wizard-step[style*="display:none"] { opacity:0; transform: translateY(6px); }
.wizard-step[style*="display:block"] { opacity:1; transform: translateY(0); }

/* Booking wizard styles - mobile first, modern card UI */
#booking-wizard { width:100%; display:flex; flex-direction:column; gap:12px; align-items:center; }
.wizard-step { width:100%; max-width:540px; background:linear-gradient(180deg, #ffffff, #fbfcfd); border-radius:12px; padding:16px; box-shadow:0 6px 24px rgba(16,24,40,0.06); border:1px solid rgba(15,82,87,0.06); }
.wizard-step h3 { margin:0 0 8px 0; font-size:1.05rem; color:#0f5257; }
.wizard-step .dog-count, .wizard-step button.dog-count { background:#f7fafb; border:1px solid #e6eef0; padding:10px 14px; border-radius:10px; cursor:pointer; font-weight:700; color:#0f5257; transition:all .15s ease-in-out; }
.wizard-step .dog-count.active,
.wizard-step .dog-count[aria-pressed="true"] {
    background:#0f5257 !important;
    color:#fff !important;
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(15,82,87,0.12);
}
.wizard-step input[type="radio"], .wizard-step input[type="checkbox"] { transform:scale(1.05); margin-right:8px; }
#wiz-summary { font-size:1rem; color:#111; background:transparent; padding:8px 0; }
.wiz-note { font-size:0.9rem; color:#6b7280; }

.wiz-actions { display:flex; gap:10px; }
.wiz-actions .c-btn { padding:10px 14px; border-radius:10px; border:none; box-shadow:none; background:transparent; color:#0f5257; border:1px solid rgba(15,82,87,0.08); }
.wiz-actions .c-btn:hover { background:#0f5257; color:#fff; border-color:#0f5257; }
/* Request Quote specific hover color (subtle teal) */
#wiz-quote:hover { background: #0F8C90 !important; color: #fff !important; border-color: #0F8C90 !important; }

/* Contact block that appears on submit */
.wizard-contact { margin-top:12px; display:flex; flex-direction:column; gap:8px; }
.wizard-contact input { padding:10px 12px; border-radius:8px; border:1px solid #e6eef0; }
.wizard-contact button.c-btn { padding:10px 12px; border-radius:8px; }

/* Button loading/spinner for wizard submit */
#wiz-submit-final { position: relative; }
#wiz-submit-final.loading { padding-right: 44px; }
#wiz-submit-final.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.65);
    border-top-color: rgba(255,255,255,1);
    border-radius: 50%;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    animation: spin 0.9s linear infinite;
}
@keyframes spin { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg); } }

/* Disabled button appearance */
.c-btn[disabled], button[disabled] { opacity: 0.65; cursor: not-allowed; }


/* Wizard is intentionally theme-neutral: no dark-theme overrides. */

@media (min-width:800px) {
    #booking-wizard { gap:18px; }
    .wizard-step { padding:22px; }
    .wizard-step .dog-count { padding:12px 18px; }
}

/* Mobile-friendly dog count layout */
.dog-row { display:flex; gap:10px; justify-content:center; align-items:center; flex-wrap:wrap; }
/* Stronger mobile-first rules for dog-count buttons */
.wizard-step .dog-count, .wizard-step button.dog-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    font-size: 1rem;
    padding: 10px 14px;
    min-width: 56px;
    flex: 1 1 56px;
    text-align: center;
    white-space: nowrap;
}
.wizard-step .dog-count:focus { outline: 3px solid rgba(15,82,87,0.12); }

@media (max-width:420px) {
    /* Slightly larger tap targets on very small screens */
    .wizard-step .dog-count { padding:14px 16px; font-size:1.06rem; }
    .dog-row { gap:10px; }

    /* Stack into two columns for better spacing on narrow phones */
    .wizard-step .dog-count { flex: 1 1 calc(50% - 12px) !important; max-width: calc(50% - 12px) !important; }
    .dog-row { gap:12px !important; justify-content: flex-start; }
}

/* Improve spacing and sizing for small and medium screens */
@media (max-width:700px) {
    /* make buttons more evenly spaced and larger */
    .dog-row { justify-content: space-between; }
    /* Stronger overrides to beat inline styles on the page */
    .dog-row { gap: 10px !important; }
    .wizard-step .dog-count { flex: 1 1 0 !important; margin: 0 6px !important; max-width: 120px !important; border-radius: 12px !important; }
    /* Ensure at least 44px tap target height */
    .wizard-step .dog-count { min-height: 44px !important; line-height: 1.1 !important; }

    /* Make frequency radio labels larger and easier to tap */
    .frequency-list label { display: flex; align-items: center; gap: 10px; padding: 10px 8px; font-size: 1.02rem; border-radius: 8px; }
    .frequency-list input[type="radio"] { transform: scale(1.2); margin-right: 8px; }

     /* Multiplier options (x2/x3) spacing and touch targets — do not force display here
         Default display is controlled by .svc-mults (hidden) and shown by JS when needed. */
     .svc-mults { gap:10px; margin-top:8px; flex-wrap:wrap; }
     .svc-mults .mult { padding:8px 10px; border-radius:8px; border:1px solid rgba(15,82,87,0.08); display:inline-flex; align-items:center; gap:6px; font-size:0.98rem; }
     .svc-mults .mult input { transform: scale(1.15); }
}

/* Slightly bigger sizes for medium narrow screens */
@media (min-width:701px) and (max-width:1000px) {
    .wizard-step .dog-count { padding:12px 18px; font-size:1.02rem; max-width:140px; }
    .frequency-list label { font-size:1rem; padding:8px 6px; }
}

/* Improve touch responsiveness and remove native tap highlight that can hide styles */
.wizard-step .dog-count, .wizard-step button.dog-count {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

    .intro-img {
        flex: 0 0 160px;
    }
    .intro-text {
        flex: 1 1 0;
        text-align: left;
    }
    .intro-text h2 {
        font-size: 2rem;
    }
    .intro-text p {
        font-size: 1.1rem;
        max-width: 45%;
    }
}
.switch input:checked + .slider {
    background-color: #007bff;
}
.switch input:checked + .slider:before {
    transform: translateX(16px);
}

body.dark-theme .switch .slider {
    background-color: #222;
}
body.dark-theme .switch input:checked + .slider {
    background-color: #000;
}
.login-dropdown-toggle {
    background: #0056b3;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 3px 12px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-right: 4px;
    opacity: 0.85;
    transition: opacity 0.2s, background 0.2s;
}
.login-dropdown-toggle:hover {
    opacity: 1;
    background: #007bff;
}

.login-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.25s;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-top: 2px;
    width: 180px;
    position: absolute;
    right: 0;
    z-index: 10;
    padding: 0 12px;
}
.login-dropdown.open {
    max-height: 120px;
    padding: 10px 12px 12px 12px;
}

.login-dropdown__link {
    display: block;
    text-decoration: none;
    font-weight: 700;
    color: #0d4c8b;
    padding: 6px 0;
}

.login-dropdown__link:hover {
    text-decoration: underline;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

.auth-area {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-direction: row;
    position: relative;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
    background: #f8f9fa;
}


.dark-theme {
    background-color: #121212;
    color: #ffffff;
}

header {
    background-color: #007bff;
    color: #ffffff;
    padding: 20px 10px;
    text-align: center;
    position: relative;
}

.header-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    position: absolute;
    top: 20px;
    right: 16px;
    z-index: 2;
}

.toggle-container {
    margin-bottom: 2px;
}

/* Modern switch style */
.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 22px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.switch input:checked + .slider {
    background-color: #007bff;
}
.switch input:checked + .slider:before {
    transform: translateX(16px);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #fff;
    padding: 4px 8px;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.theme-toggle:hover {
    opacity: 1;
}

.auth-area {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-direction: row;
}

#login-form, #user-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

#login-form input[type="text"],
#login-form input[type="password"] {
    padding: 3px 6px;
    font-size: 0.95rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 90px;
    background: #f8f9fa;
}
#login-form button, #logout-btn {
    padding: 3px 10px;
    font-size: 0.95rem;
    border-radius: 4px;
    border: none;
    background: #0056b3;
    color: #fff;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s;
}
#login-form button:hover, #logout-btn:hover {
    opacity: 1;
}
#login-error {
    font-size: 0.9rem;
    margin-left: 4px;
}

@media (max-width: 600px) {
    .header-controls {
        position: static;
        flex-direction: column;
        align-items: flex-end;
        margin-top: 10px;
        gap: 6px;
    }
    .auth-area {
        gap: 2px;
        flex-direction: row;
    }
    .login-dropdown {
        width: 98vw;
        min-width: 0;
        right: 0;
        left: 0;
        margin: 0 auto;
        border-radius: 0 0 8px 8px;
    }
    #login-form input[type="text"],
    #login-form input[type="password"] {
        width: 70px;
        font-size: 0.9rem;
    }
    #login-form button, #logout-btn {
        font-size: 0.9rem;
        padding: 2px 7px;
    }
}


/* Service Cards Layout */
.service-groups {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.service-group {
    width: 100%;
}

.service-group__heading {
    margin: 0;
    color: #0f5257;
    font-size: 1.35rem;
}

.service-group__intro {
    margin: 10px auto 0 auto;
    max-width: 620px;
    color: #41556b;
}

.service-group--support {
    padding: 24px 16px;
    border: 1px solid #cfe0e8;
    border-radius: 18px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef7f6 100%);
}

.service-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
    padding: 0 10px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.service-card {
    background: #c1ddfd;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 24px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.2s;
}
.service-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}

.service-card--support {
    background: #ffffff;
}

.service-card p {
    margin: 16px 0 0 0;
    color: #444;
    font-size: 1rem;
    text-align: center;
}
.service-btn {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    max-width: 200px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.service-btn:hover {
    background: #0056b3;
    text-decoration: none;
}

@media (min-width: 900px) {
    .service-cards--support {
        justify-content: center;
    }

    .service-cards {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 32px;
        width: 100%;
        max-width: 100vw;
    }
    .service-card {
        min-width: 220px;
        max-width: 260px;
        flex: 1 1 220px;
        box-sizing: border-box;
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .service-cards {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }
    .service-card {
        flex: 1 1 calc(50% - 28px);
        max-width: 400px;
        min-width: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 599px) {
    .service-group--support {
        padding: 20px 14px;
    }

    .service-cards {
        flex-direction: column;
        gap: 18px;
    }
    .service-card {
        min-width: 0;
        max-width: 100%;
    }
}

/* Whitespace for main content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 0 56px 0;
    width: 100%;
}

section {
    min-height: 320px;
    padding: 32px 0 32px 0;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 900px) {
    main {
        width: 85%;
    }
}

/* Ensure Add-on Services fieldset text stays dark/black even in dark theme */
.addon-fieldset,
.addon-fieldset label,
.addon-fieldset .addon-legend {
    color: #111 !important;
}
.dark-theme .addon-fieldset,
.dark-theme .addon-fieldset label,
.dark-theme .addon-fieldset .addon-legend {
    color: #111 !important;
}

/* Site banner header/nav built from headerexample.png and logo.png */
.site-header {
    position: relative;
    color: #fff;
    overflow: visible;
    padding: 0;
    border-bottom: 3px solid #69b327;
    background: linear-gradient(120deg, #0d4c8b, #0a3561);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(100deg, rgba(8, 44, 80, 0.78), rgba(8, 44, 80, 0.2)), url('../../resources/headerexample.png');
    background-size: cover;
    background-position: center;
    opacity: 0.95;
    z-index: 0;
}

.site-header > * {
    position: relative;
    z-index: 1;
}

.site-header__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
}

.site-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.site-nav a {
    color: #f5fbff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(9, 36, 67, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.site-nav a:hover {
    background: rgba(105, 179, 39, 0.86);
    color: #fff;
}

.site-nav a.active,
.site-nav a[aria-current="page"] {
    background: rgba(105, 179, 39, 0.95);
}

.site-header__brand {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
}

.site-header__brand img {
    width: clamp(120px, 20vw, 220px);
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.24));
}

.site-header__trust {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 4px 0;
    white-space: nowrap;
}

.site-header__trust:hover {
    color: #d9f2c1;
}

.site-header__trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.site-menu {
    position: relative;
    margin-left: auto;
    z-index: 30;
}

.site-menu > summary {
    list-style: none;
}

.site-menu > summary::-webkit-details-marker {
    display: none;
}

.site-menu__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.site-menu__toggle span {
    display: block;
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex: 0 0 3px;
}

.site-menu__toggle:hover {
    background: rgba(255, 255, 255, 0.14);
}

.site-menu__toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

.site-menu[open] .site-menu__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-menu[open] .site-menu__toggle span:nth-child(2) {
    opacity: 0;
}

.site-menu[open] .site-menu__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-menu__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 999;
    width: min(320px, calc(100vw - 32px));
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(8, 30, 56, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.site-menu__theme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 2px;
}

.site-menu__label {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-menu__panel .auth-area {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.site-menu__panel .login-dropdown-toggle {
    width: 100%;
}

.site-menu__panel .login-dropdown {
    position: static;
    width: 100%;
    margin-top: 0;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(13, 76, 139, 0.08);
}

.site-menu__panel .login-dropdown.open {
    padding: 12px;
}

body.dark-theme .site-menu__panel {
    background: rgba(6, 18, 34, 0.98);
    border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 860px) {
    .site-header__bar {
        padding: 10px 14px;
        gap: 8px;
    }

    .site-header__trust {
        font-size: 0.88rem;
        padding: 7px 10px;
    }

    .site-menu__panel {
        width: min(300px, calc(100vw - 24px));
    }
}

@media (max-width: 560px) {
    .site-header__brand img {
        width: 124px;
    }

    .site-header__trust {
        font-size: 0.8rem;
        padding: 7px 9px;
    }
}

/* ── Cleaning page hero ────────────────────────────────────────────────── */
.cleaning-hero {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 48px auto;
    padding: 0 20px;
}

.cleaning-hero__headline h2 {
    margin: 0 0 24px;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 600;
    line-height: 1.25;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.dark-theme .cleaning-hero__headline h2 {
    color: #f5f5f5;
}

.cleaning-hero__perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
}

.cleaning-hero__perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #333;
}

.dark-theme .cleaning-hero__perks li {
    color: #ddd;
}

/* Personal Assistant page */
.pa-page {
    display: grid;
    gap: 28px;
}

.pa-hero {
    min-height: 0;
    padding: 38px 24px;
    border-radius: 20px;
    background: radial-gradient(circle at 0% 0%, #e9f6ff 0%, #f5fbff 46%, #ffffff 100%);
    border: 1px solid #d7e7f2;
}

.pa-hero h1 {
    margin-bottom: 14px;
    color: #0d3e6a;
    letter-spacing: 0.01em;
}

.pa-hero p {
    margin: 0 auto;
    max-width: 72ch;
    color: #2b3a46;
    line-height: 1.7;
    text-align: center;
}

.pa-services {
    min-height: 0;
}

.pa-cards {
    margin-top: 22px;
    gap: 18px;
}

.pa-card {
    position: relative;
    align-items: flex-start;
    justify-content: center;
    min-height: 126px;
    padding: 24px 20px 20px;
    border: 1px solid #d7e7f2;
    border-left: 6px solid #1f6fb2;
    border-radius: 14px;
    background: linear-gradient(170deg, #ffffff 0%, #f3f9ff 100%);
    box-shadow: 0 8px 22px rgba(14, 65, 104, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pa-card:hover {
    transform: translateY(-3px);
    border-color: #9fc6e7;
    box-shadow: 0 14px 30px rgba(14, 65, 104, 0.14);
}

.pa-card p {
    margin: 0;
    text-align: center;
    width: 100%;
    color: #203244;
    font-size: 1.03rem;
    font-weight: 600;
}

.pa-next-step {
    min-height: 0;
    padding: 26px 24px;
    border-radius: 16px;
    background: #f6fbff;
    border: 1px solid #d7e7f2;
}

.pa-next-step p {
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .pa-hero {
        padding: 30px 18px;
    }

    .pa-card {
        min-height: 112px;
    }

    .pa-next-step {
        padding: 24px 18px;
    }
}

.dark-theme .pa-hero {
    background: radial-gradient(circle at 0% 0%, #1d3241 0%, #12222f 48%, #0f1a23 100%);
    border-color: #2f4558;
}

.dark-theme .pa-hero h1,
.dark-theme .pa-hero p,
.dark-theme .pa-card p,
.dark-theme .pa-next-step h2,
.dark-theme .pa-next-step p {
    color: #eaf4ff;
}

.dark-theme .pa-card {
    background: linear-gradient(170deg, #152635 0%, #132130 100%);
    border-color: #2f4558;
    border-left-color: #6fb0e3;
}

.dark-theme .pa-card:hover {
    border-color: #5f89aa;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.dark-theme .pa-next-step {
    background: #122330;
    border-color: #2f4558;
}

/* Home Management Service Page Styles */
.hm-page {
    width: 100%;
}

.hm-hero {
    min-height: 0;
    padding: 38px 24px;
    border-radius: 20px;
    background: radial-gradient(circle at 0% 0%, #e9f6ff 0%, #f5fbff 46%, #ffffff 100%);
    border: 1px solid #d7e7f2;
}

.hm-hero h1 {
    margin-bottom: 14px;
    color: #0d3e6a;
    letter-spacing: 0.01em;
}

.hm-hero p {
    margin: 0 auto;
    max-width: 72ch;
    color: #2b3a46;
    line-height: 1.7;
    text-align: center;
}

.hm-services {
    min-height: 0;
}

.hm-cards {
    margin-top: 22px;
    gap: 18px;
}

.hm-card {
    position: relative;
    align-items: flex-start;
    justify-content: center;
    min-height: 126px;
    padding: 24px 20px 20px;
    border: 1px solid #d7e7f2;
    border-left: 6px solid #1f6fb2;
    border-radius: 14px;
    background: linear-gradient(170deg, #ffffff 0%, #f3f9ff 100%);
    box-shadow: 0 8px 22px rgba(14, 65, 104, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hm-card:hover {
    transform: translateY(-3px);
    border-color: #9fc6e7;
    box-shadow: 0 14px 30px rgba(14, 65, 104, 0.14);
}

.hm-card p {
    margin: 0;
    text-align: center;
    width: 100%;
    color: #203244;
    font-size: 1.03rem;
    font-weight: 600;
}

.hm-next-step {
    min-height: 0;
    padding: 26px 24px;
    border-radius: 16px;
    background: #f6fbff;
    border: 1px solid #d7e7f2;
}

.hm-next-step p {
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .hm-hero {
        padding: 30px 18px;
    }

    .hm-card {
        min-height: 112px;
    }

    .hm-next-step {
        padding: 24px 18px;
    }
}

.dark-theme .hm-hero {
    background: radial-gradient(circle at 0% 0%, #1d3241 0%, #12222f 48%, #0f1a23 100%);
    border-color: #2f4558;
}

.dark-theme .hm-hero h1,
.dark-theme .hm-hero p,
.dark-theme .hm-card p,
.dark-theme .hm-next-step h2,
.dark-theme .hm-next-step p {
    color: #eaf4ff;
}

.dark-theme .hm-card {
    background: linear-gradient(170deg, #152635 0%, #132130 100%);
    border-color: #2f4558;
    border-left-color: #6fb0e3;
}

.dark-theme .hm-card:hover {
    border-color: #5f89aa;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.dark-theme .hm-next-step {
    background: #122330;
    border-color: #2f4558;
}

.next-step-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
}

.next-step-action {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #d7e7f2;
    background: #ffffff;
}

.next-step-action__label {
    margin: 0 0 10px;
    font-weight: 600;
    color: #203244;
}

.next-step-action p {
    margin-top: 0;
}

@media (min-width: 760px) {
    .next-step-actions {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

.dark-theme .next-step-action {
    background: #152635;
    border-color: #2f4558;
}

.dark-theme .next-step-action__label {
    color: #eaf4ff;
}

.consultation-page {
    display: grid;
    gap: 22px;
}

.consultation-hero {
    min-height: 0;
    padding: 34px 24px;
    border-radius: 20px;
    background: radial-gradient(circle at 0% 0%, #e9f6ff 0%, #f5fbff 46%, #ffffff 100%);
    border: 1px solid #d7e7f2;
}

.consultation-hero h1 {
    margin-bottom: 10px;
    color: #0d3e6a;
}

.consultation-hero p {
    margin: 0 auto;
    max-width: 72ch;
    color: #2b3a46;
    line-height: 1.65;
    text-align: center;
}

.consultation-form-wrap {
    min-height: 0;
    padding-top: 8px;
}

.consultation-card {
    background: #ffffff;
    border: 1px solid #d7e7f2;
    border-radius: 16px;
    padding: 18px;
    text-align: left;
}

.consultation-form {
    display: grid;
    gap: 12px;
}

.consultation-row {
    display: grid;
    gap: 8px;
}

.consultation-row--two {
    grid-template-columns: 1fr;
    gap: 12px;
}

.consultation-form input,
.consultation-form textarea {
    padding: 10px;
    border: 1px solid #c8cfd6;
    border-radius: 8px;
    width: 100%;
}

.consultation-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border: 1px solid #d7e7f2;
    border-radius: 10px;
    padding: 12px;
    margin: 0;
    text-align: left;
}

.consultation-services legend {
    font-weight: 700;
    padding: 0 4px;
    grid-column: 1 / -1;
    text-align: left;
}

.consultation-services label {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    text-align: left;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1.5px solid #d7e7f2;
    background: #f6fbff;
    cursor: pointer;
    font-weight: 600;
    color: #203244;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.consultation-services label:hover {
    border-color: #1f6fb2;
    background: #edf5ff;
}

.consultation-services input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #1f6fb2;
    cursor: pointer;
}

@media (max-width: 560px) {
    .consultation-services {
        grid-template-columns: 1fr;
    }
}

.consultation-msg {
    margin: 0 0 12px;
    font-weight: 600;
}

.consultation-msg--ok {
    color: #12643a;
}

.consultation-msg--err {
    color: #a22;
}

.hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

@media (min-width: 760px) {
    .consultation-row--two {
        grid-template-columns: 1fr 1fr;
    }

    .consultation-card {
        padding: 22px;
    }
}

.dark-theme .consultation-hero {
    background: radial-gradient(circle at 0% 0%, #1d3241 0%, #12222f 48%, #0f1a23 100%);
    border-color: #2f4558;
}

.dark-theme .consultation-hero h1,
.dark-theme .consultation-hero p {
    color: #eaf4ff;
}

.dark-theme .consultation-card {
    background: #152635;
    border-color: #2f4558;
}

.dark-theme .consultation-form label,
.dark-theme .consultation-services legend,
.dark-theme .consultation-services label {
    color: #eaf4ff;
}

.dark-theme .consultation-form input,
.dark-theme .consultation-form textarea {
    background: #0f1a23;
    color: #eaf4ff;
    border-color: #3a5366;
}

.dark-theme .consultation-services {
    border-color: #2f4558;
    background: #11202c;
}

.dark-theme .consultation-services label {
    background: #152635;
    border-color: #2f4558;
    color: #eaf4ff;
}

.dark-theme .consultation-services label:hover {
    border-color: #6fb0e3;
    background: #1a2f40;
}

.cleaning-hero__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: #d0e8d8;
    color: #2d7d3d;
    font-size: 0.65rem;
    font-weight: 900;
    flex-shrink: 0;
}

.dark-theme .cleaning-hero__check {
    background: #2d7d3d;
    color: #b8f3c7;
}

.cleaning-hero__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.cleaning-hero__steps li {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.cleaning-hero__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(180deg, #e8f2ff, #dceaff);
    border: 1px solid #b7cff0;
    color: #134477;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.dark-theme .cleaning-hero__step-num {
    background: linear-gradient(180deg, #0f2a42, #143654);
    border-color: #2d5578;
    color: #d8ecff;
}

.cleaning-hero__steps li div strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.dark-theme .cleaning-hero__steps li div strong {
    color: #f5f5f5;
}

.cleaning-hero__steps li div p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.dark-theme .cleaning-hero__steps li div p {
    color: #aaa;
}

.cleaning-hero__cta {
    align-self: flex-start;
    margin-top: 12px;
    padding: 11px 24px !important;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    background: #0d4c8b !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
}

.cleaning-hero__cta:hover {
    background: #092f54 !important;
}

@media (min-width: 640px) {
    .cleaning-hero {
        gap: 48px;
        padding: 0 28px;
    }

    .cleaning-hero__steps {
        gap: 28px;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .cleaning-hero__steps {
        grid-template-columns: 1fr;
    }
}

/* Breadcrumb-style back link on article/service pages */
.breadcrumb-bar {
    background: rgba(13, 76, 139, 0.06);
    padding: 8px 20px;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(13, 76, 139, 0.1);
}
.breadcrumb-bar a {
    color: #0d4c8b;
    text-decoration: none;
    font-weight: 600;
}
.breadcrumb-bar a:hover { text-decoration: underline; }
.dark-theme .breadcrumb-bar { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.07); }
.dark-theme .breadcrumb-bar a { color: #7ab7ff; }