/* Promise Electric, LLC site styles */

/* =========== */
/* Base Styles */
/* =========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f9f9f9;
}

/* Aria notation for screen readers and keyboard navigation */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a {
    text-decoration: none;
}

/* Link styling for keyboard navigation and screen readers */
.user-is-tabbing button:focus,
.user-is-tabbing a:focus {
    outline: 3px solid #ffcc00;
    outline-offset: 2px;
}

/* Highlight focus only when user is tabbing */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #ffcc00;
    outline-offset: 3px;
    transition: outline 0.2s ease-in-out;
}

/* Keep these styles here */
.dark-mode button:focus-visible,
.dark-mode a:focus-visible,
.dark-mode input:focus-visible,
.dark-mode textarea:focus-visible,
.dark-mode select:focus-visible {
    outline: 3px solid #0055FF;
}

/* Suppress default blue WebKit outline unless visible */
:focus {
    outline: none;
}

/* ============== */
/* Page structure */
/* ============== */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 80%;
    max-width: 900px;
    margin: 0 auto 0 auto;
    padding: 0px 20px;
}

/* Main Content */
#main-content {
    flex: 1;
    padding-bottom: 20px;
    background-color: #ffffff;
}

#main-content h1,
#main-content h2 {
    color: #0055ff;
}

#mainpage-services h2 {
    color: white;
    text-align: center;
    padding: 0;
}

section {
    margin:0 0 1.5rem 0;
}

#services-page, #aboutus-page {
    margin-top:1.5rem;
}

/* Header */
#site-header {
    min-height: 80px;
    padding: 0;
    background-image: url(./assets/header-bg.jpg);
    background-size: cover;
    background-position: top;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.5s ease;
}

/* Hide the dark mode logo when in light mode */
#dark-logo {
    display: none;
}

/* Footer */
#site-footer {
    background-color: #0055FF;
    color: #ccc;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    gap: 10px;
}

#site-footer .contact {
    direction: rtl;
}

#footer-logo {
    width: 30px;
    height: auto;
}

/* =============== */
/* Main Navigation */
/* =============== */
#main-nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #0055FF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 2rem;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#nav-menu {
    list-style: none;
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 25px;
    text-transform: uppercase;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link.active {
    color: #86d6ff;
}

.nav-link:hover {
    color: #ffcc00;
}


#above-fold {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
}

/* Color BG text-block element */
.text-block {
    min-width: 250px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 20px 0px;
    padding: 5px 20px 20px 20px;
    background: #0055FF;
    color: white;
    font-size: 1rem;
}

/* Above the fold elements */
#checked-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* vertical centering */
    padding: 0;
    height: 100%;
}

#hero-photo-box {
    flex: 1;
    /* take remaining space */
    min-height: 350px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 30%),
        url('assets/hero_div_image.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}


.text-block ul {
    columns: 2;
    column-gap: 40px;
    padding-left: 0;
    margin: 0;
    list-style-type: none;
}

#landing-intro {
    padding-bottom: 20px;
}

#landing-intro h1 {
    padding-bottom: 8px;
    font-weight: bold;
    text-align: left;
    line-height: 2.5rem;
}

#hamburger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

/* ===== */
/* Cards */
/* ===== */
.cards {
    margin: auto;
    padding-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.card {
    background: #fff;
    flex: 1 1 calc((100% - 40px) / 3);
    min-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-top {
    display: flex;
    flex-direction: column;
    height: 350px;
    /* Set the total height for the top part */
}

.card-title {
    flex: 0 0 20%;
    background: #0055FF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
}

.card-image {
    position: relative;
    overflow: hidden;
    flex: 0 0 90%;
    background-size: cover;
    background-position: top;
}

.fade-image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 40%;
    opacity: 0;
    transition: opacity 5s ease-in-out;
    z-index: 1;
}

.fade-image-layer.visible {
    opacity: 1;
    z-index: 2;
}

.card-image::after {
    content: attr(data-caption);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 64, 128, 0.3);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 1rem;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
}

/* ============ */
/* Service area */
/* ============ */
.service-area-flex {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border: 1px solid #0077cc;

}

.service-area-map {
    flex: 0 0 65%;
    height: 500px;
    background-image: url(assets/servicearea.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* border: 1px solid #0077cc; */
}

.service-area-cities {
    flex: 0 0 35%;
    max-height: 500px;
    overflow-y: auto;
}

/* Wider scrollbar for WebKit browsers (Chrome, Safari, Edge) */
.service-area-cities::-webkit-scrollbar {
    width: 15px;
}

.service-area-cities::-webkit-scrollbar-track {
    background: #777;
    border-radius: 8px;
}

.service-area-cities::-webkit-scrollbar-thumb {
    background-color: #0055FF;
    border-radius: 8px;
    border: 2px solid #ffffff;
}


#city-list {
    list-style: none;
    border-left: 1px solid #0077cc;
}

#city-list li {
    padding: 2px 0px 2px 10px;
    border-bottom: 1px solid #0077cc;
    font-weight: bold;
    color: #0055ff;
}

#toggle-cities {
    /* display: none; */
    align-items: center;
    gap: 10px;
    background: #0055FF;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
}

#toggle-cities img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  display: inline-block;
}


/* ============ */
/* Testimonials */
/* ============ */
.testimonials-section {
        margin: 2rem auto;
}

.testimonial-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1rem;
    position: relative;
}

.testimonial-fade-container {
    display: flex;
    min-height: 300px; /* to accommodate longest quote */
    align-items: center;
    justify-content: space-between;
    border: 2px solid #0055FF;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: white;
    gap: .5rem;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
    position: relative;
}

#testimonial-slide-wrapper {
    flex: 1;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-slide {
    opacity: 0;
    transform: translateX(50%);
    animation: fadeInLeft 0.5s ease forwards;
}

.slide-right {
    transform: translateX(-50%);
    animation: fadeInRight 0.5s ease forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(50%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-50%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.quote-block {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.author {
    text-align: right;
    font-weight: bold;
    color: #0055FF;
}

.arrow {
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #0055FF;
    transition: color 0.2s ease;
    user-select: none;
    padding: 0 0.5rem;
    flex-shrink: 0;
}

.arrow:hover {
    color: #003399;
}

.arrow:focus {
    outline: 3px solid #ffcc00;
    outline-offset: 4px;
}


/* ============= */
/* Services page */
/* ============= */
.service-list {
    list-style: none;
    padding: 0;
}

.service-list h2 {
    margin: unset;
    padding: unset;
    color: #0055FF;
    font-size: 1.25rem;
    margin: 0 0 0.25rem 0;
    font-weight: bold;
}

.service-list p {
    margin: unset;
    margin-bottom: 10px;
    padding: unset;
}


/* ============== */
/* Call to action */
/* ============== */
#cta-module {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.cta-message {
    padding: 10px 20px;
    border: 3px solid #0055FF;
    background-color: #fff;
    border-radius: 25px;
    font-size: .9rem;
    color: #0055FF;
    text-align: center;
}

/* Icons start hidden */
.cta-icon {
    width: 50px;
    height: 50px;
    background-color: #fff;
    border: 3px solid #0055FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    cursor: default;
    position: relative;
    pointer-events: none;
    /* <- initially disables hover/click */
    transition: opacity 1.5s ease;
    transition-delay: 0.5s;
}

.cta-icon img {
    width: 30px;
    height: 30px;
}

/* Trigger icon visibility when class is added */
#cta-module.icons-visible .cta-icon {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

/* Tooltip */
.tooltip {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: 2px solid #0055FF;
    color: #0055FF;
    padding: 6px 10px;
    font-size: 0.85rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.rtl {
    direction: rtl;
    unicode-bidi: bidi-override;
}

/* Tooltip position for phone icon (appears to the left) */
#phone-icon .tooltip {
    right: 125%;
}

/* Tooltip position for email icon (appears to the right) */
#email-icon .tooltip {
    left: 125%;
}

.tooltip a {
    color: white;
    text-decoration: none;
}

/* Tooltip becomes visible on hover or active */
.cta-icon:hover .tooltip,
.cta-icon.active .tooltip {
    opacity: 1;
    pointer-events: auto;
}

/* ============= */
/* About Us page */
/* ============= */
.ceo-section {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
    margin: 20px 0px;
    flex-wrap: wrap;
}

.ceo-text {
    flex: 1 1 60%;
}

.ceo-photo {
    flex: 1 1 30%;
    max-width: 200px;
}

.ceo-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ============ */
/* Text Styling */
/* ============ */
h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.nav-link,
#checklist ul li,
h1,
h2,
h3,
h4 {
    font-weight: bold;
}

/* Animated checklist with pop and fade effect */
.animated-checklist {
    list-style: none;
    padding-left: 0;
}

.animated-checklist li {
    position: relative;
    padding-left: 1.25em;
    font-size: 2.8rem;
    line-height: 2.9rem;
}

.animated-checklist li::before,
.animated-checklist li::after {
    color: #0055FF;
}

.animated-checklist li::before {
    content: '☐';
    position: absolute;
    left: 0;
    top: -7px;
    font-size: 1.5em;
    opacity: 1;
}

.animated-checklist li::after {
    content: '☑';
    position: absolute;
    left: 0;
    top: -7px;
    font-size: 1.5em;
    opacity: 0;
    transform: scale(0.8);
    transform-origin: center;
}

.animated-checklist li:nth-child(1)::after {
    animation: checkAppear 0.4s ease forwards;
    animation-delay: 0.5s;
}

.animated-checklist li:nth-child(2)::after {
    animation: checkAppear 0.4s ease forwards;
    animation-delay: 1.5s;
}

.animated-checklist li:nth-child(3)::after {
    animation: checkAppear 0.4s ease forwards;
    animation-delay: 2.5s;
}

@keyframes checkAppear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============== */
/* Responsive CSS */
/* ============== */

@media (max-width: 800px) {
    .testimonial-track {
        gap: 20px;
    }
}

/* Max-width: 800px */
@media (min-width: 800px) {
    .text-block ul {
        columns: 3;
    }

    #dark-mode-toggle {
        position: relative;
        right: -20px;
    }
}

@media (min-width: 601px) {
  #toggle-cities {
    display: none !important;
  }

  #city-list {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Max-width: 600px */
@media (max-width: 600px) {
    section {
        margin: .75rem 0;
    }

    button {
        margin: 0.25rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
        padding: 6px 0;
    }

    /* Navigation */
    #main-nav {
        padding: 0;
    }

    .nav-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .nav-container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    #nav-menu {
        display: none;
        width: 75vw;
        position: absolute;
        top: 10px;
        left: 0;
        padding: 10px;
        background-color: #0055FF;
        flex-direction: column;
        z-index: 1000;
        gap: 10px;
    }

    #nav-menu.show {
        display: block;
    }

    #nav-menu li {
        padding: 6px 0;
        text-align: center;
        font-size: 1rem;
    }

    .container {
        width: 95vw;
    }

    #main-content {
        padding: 2rem 0px;
    }

    .tooltip {
        display: none;
    }

    #hamburger {
        display: block;
    }

    #hero-photo-box {
        display: none;
    }

    #checked-list {
        width: 100%;
    }

    .testimonial-carousel {
        padding: 0;
        margin: .75rem 0;
    }

    .testimonial-fade-container {
        min-height: 520px; /* to acommodate longest quote */
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .testimonial-bucket {
        flex: 0 0 48%;
    }

    .quote-block {
        font-size: 1rem;
    }

    .arrow {
        font-size: 2rem;
    }

    /* Call to Action module */
    #cta-module {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 17px;
        flex-wrap: nowrap;
    }

    #cta-module.icons-visible {
        opacity: 1;
    }

    .cta-message,
    .cta-icon {
        border: 3px solid #0055FF;
    }

    .cta-message {
        flex: 2 1 50%;
        max-width: 50%;
        min-width: 180px;
        padding: 5px;
        height: auto;
        font-size: .75rem;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cta-icon {
        flex: 1 1 1;
        width: 50px;
        height: 50px;
        padding: 5px;
        display: flex;
        justify-content: center;
        opacity: 1 !important;
        transition: none;
        pointer-events: auto;
    }

    .cta-icon img {
        width: 30px;
        height: 30px;
    }


    /* Landing page service cards */
    .cards {
        flex-direction: column;
        /* align-items: center; */
    }

    .card {
        width: 100%;
    }

    .card-top {
        height: 200px;
    }

    .text-block ul {
        columns: 1;
    }

    .ceo-section {
        flex-direction: column;
    }

    .ceo-photo {
        max-width: 100%;
    }

    /*  Service area module */
    .service-area-flex {
    flex-direction: column;
    height: 500px;
    }

    .service-area-map {
     height: 40%;
    width: 100%;
    background-size: cover;
    background-position: right;
    }

  .service-area-cities {
    height: 60%;
    overflow-y: auto;
    border-top: 2px solid #0055FF;
  }

    #city-list {
    max-height: none !important;
    overflow-y: auto;
  }

    #city-list.open {
        max-height: 400px;
        overflow-y: auto;
    }
}

/* ============ */
/* Contact form */
/* ============ */

.contact-container {
    background: #fff;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    position: relative;
}

#contact-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0px 20px;
    min-height: calc(100vh - 200px);
    background-color: #fff;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #0077cc;
}

.error {
    border-color: #e74c3c;
    background-color: #ffe6e6;
    color: #e74c3c;
}

.hidden {
    display: none !important;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    border-radius: 10px;
}

button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

#contactForm button,
#overlay button {
    background: #0077cc;
    color: white;
}

#formErrors {
    color: #e74c3c;
    font-weight: bold;
}

/* Spinner overlay for form submission */
#form-spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.5);
    /* gray, 50% opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    border-radius: 10px;
    pointer-events: auto;
}

#form-spinner-overlay.hidden {
    display: none;
}

/* Rotating spinner */
.form-spinner {
    width: 30%;
    aspect-ratio: 1 / 1;
    border: 6px solid #ccc;
    border-top: 6px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ============================== */
/* Dark/High-contrast mode toggle */
/* ============================== */
.dark-mode {
    background-color: #000;
    color: #fff;
}

.dark-mode body {
    background-color: #000;
}

.dark-mode #logo {
    display: none;
}

.dark-mode #dark-logo {
    display: block;
}

#dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 9px;
    margin-left: 25px;
    width: 60px;
    height: 32px;
    background-color: #0055FF;
    border: 2px solid #fff;
    border-radius: 22px;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
}

#dark-mode-toggle:hover {
    background-color: #0044cc;
}

.dark-mode #dark-mode-toggle {
    background-color: #000;
    border-color: #ffcc00;
    color: #fff;
    justify-content: flex-end;

}

.dark-mode #dark-mode-toggle:hover {
    background-color: #111;
}

#dark-mode-switch {
    z-index: 1002;
}

#dark-mode-switch .tooltip {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 10px;
    font-size: 0.85rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.dark-mode #main-nav a:hover {
    color: #0055FF;
}

.dark-mode #main-nav a.active {
    color: #fff;
}

.dark-mode #logo {
    display: none;
}

.dark-mode #dark-logo {
    display: block;
}

.dark-mode #site-header {
    min-height: 80px;
    background-image: url("assets/headerBG_darkmode.jpg");
    background-color: #000;
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
}

.dark-mode #main-content {
    background-color: #000;
    color: #fff;
}

.dark-mode #hero-photo-box {
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 30%),
        url('assets/hero_div_image.jpg');
}

.dark-mode .tooltip,
.dark-mode .testimonial-bucket .dark-mode .arrow {
    background-color: #fff;
    color: #000;
    border: 2px solid #ffcc00;
}

/* Element backgrounds to yellow */
.dark-mode #main-nav,
.dark-mode #nav-menu,
.dark-mode #site-footer,
.dark-mode .text-block,
.dark-mode .card-title,
.dark-mode .cta-icon {
    background-color: #ffcc00;
    color: #000;
}

.dark-mode .testimonial-fade-container {
    color: #fff;
    border: 2px solid #FFCC00;
    background-color: #000;
    box-shadow: none;
}

.dark-mode .testimonial-slide {
    background-color: #000;
    color: #fff;
}

.dark-mode .testimonial-slide .author,
.dark-mode #city-list li {
    color: #FFCC00;
}

.dark-mode .quote-block {
    color: #fff;
}

.dark-mode .author {
    color: #FFCC00;
}

.dark-mode .arrow {
    color: #ffcc00;
    background-color: #000;
}

.dark-mode .arrow:hover {
    color: #0055FF;
}

.dark-mode #contactForm button,
.dark-mode #overlay button {
    background: #ffcc00;
    color: black;
}

.dark-mode .cta-message,
.dark-mode .cta-icon {
    background-color: #fff;
    color: #000;
    border-color: #ffcc00;
}

.dark-mode #main-nav a,
.dark-mode #hamburger {
    color: #000;
}

/* Headings to warm yellow */
.dark-mode #main-content h1,
.dark-mode #main-content h2,
.dark-mode #main-content h3,
.dark-mode .animated-checklist li::before,
.dark-mode .animated-checklist li::after {
    color: #ffcc00;
}

.dark-mode #mainpage-services h2 {
    color: #000;
}

.dark-mode .text-block h1,
.dark-mode .text-block h2,
.dark-mode .text-block h3 {
    color: #000;
}

/* Contact form styles */
.dark-mode .contact-container,
.dark-mode .card {
    background-color: #000;
    color: #fff;
}

.dark-mode #contact-content {
    background-color: #000;
}


/* Mobile layout (< 720px) */
@media (max-width: 720px) {
    .service-area-flex {
        flex-direction: column;
    }

    .service-area-cities {
        width: 100%;
    }

    #toggle-cities {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    #city-list {
        display: none;
        max-height: 500px;
        overflow-y: auto;
        overflow-x: hidden;
    }

}

#toggle-cities {
    display: none;
}

#city-list {
    display: block;
}

/* ARIA styles */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 1000;
}

.skip-link:focus {
    position: absolute;
    left: 10px;
    top: 10px;
    width: auto;
    height: auto;
    padding: 10px 15px;
    background: #0055FF;
    color: white;
    border: 2px solid #000;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
}

.dark-mode .skip-link:focus {
    background: #ffcc00;
    color: black;
}