/* Forest Green Customer Header */
.customer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #e2ebe5;
}

.customer-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: #174c3a;
}

/* Full IAM Offer PNG logo: preserve the complete image and its embedded text */
.customer-brand {
    flex: 0 0 auto;
    min-width: 0;
    width: 220px;
    max-width: 48%;
    overflow: visible;
}

.customer-brand-logo,
.customer-brand img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: 76px;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: left center;
}

/* Mobile header logo */
@media (max-width: 560px) {
    .customer-brand {
        width: 170px;
        max-width: 52%;
        gap: 0;
    }

    .customer-brand-logo,
    .customer-brand img {
        width: 100%;
        max-width: 170px;
        height: 62px;
    }
}

/* Very small mobile screens */
@media (max-width: 360px) {
    .customer-brand {
        width: 145px;
        max-width: 48%;
    }

    .customer-brand-logo,
    .customer-brand img {
        max-width: 145px;
        height: 54px;
    }
}


.customer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.customer-brand-text strong {
    font-size: 20px;
    line-height: 1.1;
}

.customer-brand-text em {
    color: #26372f;
    font-style: normal;
}

.customer-brand-text small {
    color: #718078;
    font-size: 11px;
}

.customer-location {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border: 1px solid #dce8df;
    border-radius: 12px;
    color: #174c3a;
    text-decoration: none;
    background: #f4f8f5;
}

.customer-location > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.customer-location small {
    color: #758078;
    font-size: 10px;
}

.customer-location strong {
    font-size: 13px;
}

.location-chevron {
    font-size: 11px;
}


/* =================================
   CUSTOMER BOTTOM NAVIGATION
================================= */

.customer-bottom-nav {
    position: fixed;
    z-index: 1000;

    right: 16px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 16px;

    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));

    align-items: center;

    padding: 10px 6px;

    border: 1px solid #e0e9e3;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 28px rgba(16, 55, 41, 0.14);

    gap: 0;
}

.customer-bottom-nav a {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 5px;
    min-width: 0;
    min-height: 48px;
    width: 100%;

    color: #77847c;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;

    text-align: center;
    border-radius: 12px;
}

.customer-bottom-nav a i {
    font-size: 19px;
}

.customer-bottom-nav a span {
    font-size: 10px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
}

.customer-bottom-nav a.active {
    color: #174c3a;
    font-weight: 800;
}

.customer-bottom-nav a:hover {
    color: #174c3a;
    background: #f0f8f3;
}

/* Page content spacing */

.page-content {
    padding-bottom: 100px;
}

/* =================================
   MOBILE HEADER & NAVIGATION
================================= */

@media (max-width: 560px) {

    .customer-header {
        padding: 13px 15px;
        gap: 10px;
    }

    .customer-brand {
        gap: 8px;
    }
.customer-brand-text strong {
        font-size: 16px;
    }

    .customer-brand-text small {
        font-size: 9px;
    }

    .customer-location {
        gap: 6px;
        padding: 8px;
    }

    .customer-location strong {
        font-size: 11px;
    }

    .customer-location small {
        font-size: 9px;
    }

    .location-chevron {
        display: none;
    }

    .customer-bottom-nav {
        right: 7px;
        bottom: max(8px, env(safe-area-inset-bottom));
        left: 7px;

        grid-template-columns: repeat(6, minmax(0, 1fr));

        padding: 8px 3px;
        border-radius: 16px;
    }

    .customer-bottom-nav a {
        gap: 5px;
        min-height: 45px;
    }

    .customer-bottom-nav a i {
        font-size: 17px;
    }

    .customer-bottom-nav a span {
        font-size: 9px;
    }

    .page-content {
        padding-bottom: 90px;
    }
}

/* ============================
   IAM AUTOMOTIVE CUSTOMER HOME
   Forest Green Theme
============================ */

.iam-home {
    --iam-green: #075b3b;
    --iam-green-dark: #03452e;
    --iam-green-light: #e7f6ed;
    --iam-text: #111827;
    --iam-muted: #64748b;
    --iam-border: #e5eaf0;
    color: var(--iam-text);
    width: 100%;
}

/* Hero banner */
.iam-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 250px;
    padding: 34px 36px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(110deg, #e6f7ec 0%, #d2efdf 58%, #b7e2cb 100%);
}

.iam-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.iam-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--iam-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.iam-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -1px;
}

.iam-hero h1 span {
    display: block;
    color: var(--iam-green);
}

.iam-hero-copy p {
    margin: 0;
    color: #285c43;
    font-size: 16px;
}

.iam-hero-points {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
    color: var(--iam-green);
    font-size: 13px;
    font-weight: 700;
}

.iam-hero-points b {
    color: #7eb496;
}

.iam-hero-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    align-self: stretch;
    width: 42%;
    min-width: 230px;
    color: var(--iam-green);
}

.iam-hero-pin {
    position: absolute;
    top: 16px;
    left: 42%;
    font-size: 35px;
    opacity: .75;
}

.iam-hero-vehicle {
    position: absolute;
    z-index: 2;
    bottom: 26px;
    left: 0;
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: #143e2d;
}

.iam-hero-vehicle .fa-car-side {
    font-size: clamp(55px, 6vw, 88px);
}

.iam-hero-vehicle .fa-motorcycle {
    font-size: clamp(40px, 4vw, 62px);
}

.iam-hero-garage {
    position: absolute;
    right: -5px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48%;
    height: 75%;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 12px 12px 0 0;
    background: linear-gradient(145deg, #155c3d, #073d2b);
    color: #fff;
    box-shadow: 0 10px 24px rgba(4, 68, 43, .2);
}

.iam-hero-garage i {
    font-size: 52px;
}

.iam-hero-garage span {
    margin-top: 9px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .7px;
    text-align: center;
}

/* Search form */
.iam-search-wrap {
    margin: 16px 0 30px;
}

.iam-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(190px, .9fr) auto;
    gap: 12px;
}

.iam-search-input {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 0 17px;
    min-height: 58px;
    border: 1px solid var(--iam-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .04);
}

.iam-search-input > i {
    flex: 0 0 auto;
    color: var(--iam-green);
    font-size: 17px;
}

.iam-search-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--iam-text);
    font: inherit;
    font-size: 14px;
}

.iam-search-input input::placeholder {
    color: #778397;
}

.iam-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 22px;
    min-height: 58px;
    border: 0;
    border-radius: 14px;
    background: var(--iam-green);
    color: #fff;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.iam-search-button:hover {
    background: var(--iam-green-dark);
    transform: translateY(-1px);
}

/* Section headings */
.iam-home-section {
    margin: 0 0 30px;
}

.iam-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.iam-section-heading h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.iam-section-heading p {
    margin: 5px 0 0;
    color: var(--iam-muted);
    font-size: 13px;
}

.iam-view-all {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--iam-green);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

/* Category cards */
.iam-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 13px;
}

.iam-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 150px;
    padding: 16px 10px;
    border: 1px solid var(--iam-border);
    border-radius: 16px;
    background: #fff;
    color: var(--iam-text);
    text-align: center;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.iam-category-card:hover {
    border-color: #9bcdb1;
    box-shadow: 0 8px 22px rgba(5, 91, 59, .09);
    transform: translateY(-3px);
}

.iam-category-icon {
    display: grid;
    place-items: center;
    width: 55px;
    height: 55px;
    border-radius: 15px;
    background: var(--iam-green-light);
    color: var(--iam-green);
    font-size: 25px;
}

.iam-category-card strong {
    font-size: 14px;
    font-weight: 800;
}

.iam-category-card small {
    color: var(--iam-muted);
    font-size: 11px;
    line-height: 1.35;
}

/* Partner cards */
.iam-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--iam-border);
    border-radius: 12px;
    color: var(--iam-green);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.iam-partner-list {
    display: grid;
    gap: 14px;
}

.iam-partner-card {
    display: grid;
    grid-template-columns: minmax(200px, 32%) minmax(0, 1fr);
    gap: 20px;
    padding: 13px;
    border: 1px solid var(--iam-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
}

.iam-partner-photo {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 175px;
    overflow: hidden;
    border-radius: 13px;
    background: linear-gradient(145deg, #d8f0e2, #a5d6bb);
}

.iam-partner-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--iam-green);
    font-size: 13px;
    font-weight: 700;
}

.iam-partner-photo-placeholder i {
    font-size: 48px;
}

.iam-partner-status {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 30px;
    background: #087b4d;
    color: #fff;
    font-size: 11px;
    font-weight: 750;
}

.iam-partner-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.iam-partner-title-row h3 {
    margin: 0 0 9px;
    font-size: 19px;
    font-weight: 800;
}

.iam-partner-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: var(--iam-muted);
    font-size: 13px;
    line-height: 1.5;
}

.iam-partner-address i {
    margin-top: 3px;
    color: var(--iam-green);
}

.iam-partner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0;
}

.iam-partner-tags span {
    padding: 6px 10px;
    border-radius: 30px;
    background: var(--iam-green-light);
    color: var(--iam-green);
    font-size: 11px;
    font-weight: 650;
}

.iam-partner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.iam-partner-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 100px;
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 10px;
    background: var(--iam-green-light);
    color: var(--iam-green);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.iam-partner-actions a:hover {
    background: #d2eddd;
}

.iam-partner-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 11px;
    color: var(--iam-muted);
    font-size: 12px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

/* Empty state */
.iam-partner-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 34px 20px;
    border: 1px dashed #b7d9c5;
    border-radius: 18px;
    background: #f7fcf8;
    text-align: center;
}

.iam-partner-empty > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--iam-green-light);
    color: var(--iam-green);
    font-size: 23px;
}

.iam-partner-empty h3 {
    margin: 0 0 7px;
    font-size: 17px;
}

.iam-partner-empty p {
    max-width: 420px;
    margin: 0 0 15px;
    color: var(--iam-muted);
    font-size: 13px;
    line-height: 1.6;
}

.iam-partner-empty a {
    color: var(--iam-green);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

/* Track service banner */
.iam-track-service {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(300px, .95fr);
    align-items: center;
    gap: 18px;
    margin: 8px 0 22px;
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(105deg, #075b3b, #03432d);
    color: #fff;
    box-shadow: 0 8px 22px rgba(3, 69, 46, .12);
}

.iam-track-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255,255,255,.13);
    font-size: 25px;
}

.iam-track-copy h2 {
    margin: 0 0 7px;
    font-size: 20px;
    font-weight: 800;
}

.iam-track-copy p {
    margin: 0;
    color: #e1f3e8;
    font-size: 12px;
    line-height: 1.6;
}

.iam-track-form {
    display: flex;
    min-width: 0;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.iam-track-mobile {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1;
    padding: 0 12px;
    color: var(--iam-green);
}

.iam-track-mobile input {
    width: 100%;
    min-width: 0;
    height: 48px;
    border: 0;
    outline: 0;
    color: var(--iam-text);
    font: inherit;
    font-size: 12px;
}

.iam-track-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 0;
    background: #079957;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
}


/* Centered customer error modal */
.iam-error-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(12, 28, 22, 0.55);
    backdrop-filter: blur(3px);
}

.iam-error-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 32px 28px 26px;
    text-align: center;
    background: #fff;
    border: 1px solid #e4eee8;
    border-radius: 20px;
    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.22);
    animation: iamModalAppear 0.22s ease-out;
}

.iam-error-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f2;
    color: #345247;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.iam-error-modal-close:hover {
    background: #e3eee7;
}

.iam-error-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 17px;
    border-radius: 50%;
    color: #13734f;
    background: #e8f6ee;
    font-size: 25px;
}

.iam-error-modal h2 {
    margin: 0 0 12px;
    color: #172a22;
    font-size: 22px;
    font-weight: 700;
}

.iam-error-modal p {
    margin: 0 0 10px;
    color: #46564e;
    font-size: 15px;
    line-height: 1.6;
}

.iam-error-modal-hint {
    margin-bottom: 22px;
    color: #78877e;
    font-size: 13px;
    line-height: 1.5;
}

.iam-error-modal-ok {
    min-width: 120px;
    padding: 11px 24px;
    border: 0;
    border-radius: 10px;
    background: #126747;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.iam-error-modal-ok:hover {
    background: #0d5439;
}

@keyframes iamModalAppear {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .iam-error-modal {
        max-width: 360px;
        padding: 28px 20px 22px;
        border-radius: 16px;
    }

    .iam-error-modal h2 {
        font-size: 19px;
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .iam-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .iam-track-service {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .iam-track-form {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .iam-hero {
        min-height: 230px;
        padding: 25px 22px;
    }

    .iam-hero-copy {
        max-width: 100%;
    }

    .iam-hero h1 {
        max-width: 330px;
        font-size: 30px;
    }

    .iam-hero-visual {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 43%;
        min-width: 150px;
        height: 65%;
        opacity: .45;
    }

    .iam-hero-vehicle {
        left: 0;
        bottom: 15px;
    }

    .iam-hero-garage {
        height: 60%;
    }

    .iam-search-form {
        grid-template-columns: 1fr;
    }

    .iam-search-button {
        min-height: 50px;
    }

    .iam-section-heading h2 {
        font-size: 20px;
    }

    .iam-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .iam-category-card {
        min-height: 135px;
    }

    .iam-partner-card {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .iam-partner-photo {
        min-height: 145px;
    }

    .iam-track-service {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 13px;
        padding: 19px;
    }

    .iam-track-icon {
        width: 48px;
        height: 48px;
        font-size: 21px;
    }

    .iam-track-copy h2 {
        font-size: 17px;
    }

    .iam-track-form {
        flex-direction: column;
        grid-column: 1 / -1;
    }

    .iam-track-mobile input {
        height: 47px;
    }

    .iam-track-form button {
        min-height: 46px;
    }
}

@media (max-width: 420px) {
    .iam-hero {
        padding: 22px 17px;
    }

    .iam-hero h1 {
        font-size: 26px;
    }

    .iam-hero-copy p {
        max-width: 230px;
        font-size: 14px;
    }

    .iam-section-heading {
        align-items: flex-start;
    }

    .iam-view-all {
        font-size: 12px;
    }

    .iam-sort-label {
        padding: 8px 10px;
        font-size: 11px;
    }

    .iam-partner-actions a {
        flex-basis: 85px;
        font-size: 12px;
    }
}

/* ===========================
   CUSTOMER NEARBY PAGE
=========================== */
/* =========================================
   Nearby Service Stations
   Forest Green Theme
========================================= */

.nearby-page {
    --forest-green: #075b3b;
    --forest-green-dark: #03452e;
    --forest-green-light: #e7f6ed;
    --forest-green-soft: #f3f9f5;
    --forest-green-border: #c9e2d2;

    width: min(100% - 32px, 1100px);
    margin: 0 auto;
    padding: 28px 0 48px;
    color: #172033;
}

.nearby-hero {
    margin-bottom: 22px;
}

.nearby-hero-copy {
    max-width: 720px;
}

.nearby-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--forest-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
}

.nearby-hero h1 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.2;
    font-weight: 800;
    color: #172033;
}

.nearby-hero p {
    margin: 9px 0 0;
    color: #697386;
    font-size: 15px;
}

/* Search panel */

.nearby-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e8ebf1;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(24, 39, 75, 0.07);
}

.nearby-search-input-wrap {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    border: 1px solid #e3e7ef;
    border-radius: 12px;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nearby-search-input-wrap:focus-within {
    border-color: var(--forest-green);
    box-shadow: 0 0 0 3px rgba(7, 91, 59, 0.10);
}

.nearby-search-input-wrap > i {
    color: var(--forest-green);
    font-size: 17px;
}

.nearby-search-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #172033;
    font-size: 15px;
}

.nearby-search-input-wrap input::placeholder {
    color: #929bad;
}

.nearby-location-btn,
.nearby-search-btn {
    min-height: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 0 17px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.nearby-location-btn {
    color: var(--forest-green-dark);
    border: 1px solid var(--forest-green-border);
    background: var(--forest-green-light);
}

.nearby-location-btn:hover {
    background: #d9efe2;
    border-color: #a8d0b8;
}

.nearby-search-btn {
    color: #fff;
    border: 1px solid var(--forest-green);
    background: var(--forest-green);
}

.nearby-search-btn:hover {
    background: var(--forest-green-dark);
    border-color: var(--forest-green-dark);
}

.nearby-location-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.nearby-location-message {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin: 10px 3px 24px;
    color: #687386;
    font-size: 13px;
}

.nearby-location-message i {
    color: var(--forest-green);
}

/* Results heading */

.nearby-results-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.nearby-results-heading h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #172033;
}

.nearby-results-heading p {
    margin: 5px 0 0;
    color: #778195;
    font-size: 13px;
}

.nearby-count {
    flex-shrink: 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--forest-green-light);
    color: var(--forest-green-dark);
    font-size: 12px;
    font-weight: 800;
}

/* Partner list and cards */

.nearby-station-list {
    display: grid;
    gap: 14px;
}

.nearby-station-card {
    padding: 20px;
    border: 1px solid #e7eaf0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(24, 39, 75, 0.045);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nearby-station-card:hover {
    border-color: var(--forest-green-border);
    box-shadow: 0 9px 26px rgba(24, 39, 75, 0.08);
}

.nearby-card-top {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.nearby-shop-avatar {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--forest-green);
    background: var(--forest-green-light);
    font-size: 25px;
}

.nearby-shop-main {
    min-width: 0;
    flex: 1;
}

.nearby-shop-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.nearby-shop-name-row h3 {
    margin: 0;
    color: #172033;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.nearby-verified-label,
.nearby-active-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--forest-green-dark);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.nearby-service-label,
.nearby-shop-address,
.nearby-distance {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 0 0;
    color: #687386;
    font-size: 13px;
    line-height: 1.5;
}

.nearby-service-label i {
    color: var(--forest-green);
    margin-top: 2px;
}

.nearby-shop-address i,
.nearby-distance i {
    width: 14px;
    flex-shrink: 0;
    margin-top: 3px;
    color: #8b95a6;
}

.nearby-distance {
    color: var(--forest-green-dark);
    font-weight: 700;
}

/* Card action buttons */

.nearby-card-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #edf0f4;
}

.nearby-action {
    min-height: 42px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e1e6ed;
    border-radius: 11px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.nearby-action:hover {
    background: var(--forest-green-soft);
    border-color: var(--forest-green-border);
}

.nearby-call i {
    color: var(--forest-green);
}

.nearby-whatsapp i {
    color: #1aa760;
    font-size: 17px;
}

.nearby-directions i {
    color: var(--forest-green);
}

/* Empty state */

.nearby-no-results {
    padding: 44px 20px;
    text-align: center;
    border: 1px dashed #d9dee8;
    border-radius: 18px;
    background: #fff;
}

.nearby-no-results[hidden] {
    display: none !important;
}

.nearby-empty-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 13px;
    border-radius: 16px;
    background: var(--forest-green-light);
    color: var(--forest-green);
    font-size: 22px;
}

.nearby-no-results h3 {
    margin: 0;
    color: #172033;
    font-size: 17px;
}

.nearby-no-results p {
    margin: 7px 0 0;
    color: #778195;
    font-size: 13px;
}

/* Responsive */

@media (max-width: 760px) {
    .nearby-page {
        width: min(100% - 24px, 600px);
        padding-top: 20px;
    }

    .nearby-search-panel {
        grid-template-columns: 1fr 1fr;
        padding: 10px;
    }

    .nearby-search-input-wrap {
        grid-column: 1 / -1;
    }

    .nearby-location-btn,
    .nearby-search-btn {
        width: 100%;
        padding: 0 10px;
    }

    .nearby-card-actions {
        grid-template-columns: 1fr 1fr;
    }

    .nearby-card-actions .nearby-directions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    .nearby-shop-avatar {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 12px;
        font-size: 20px;
    }

    .nearby-station-card {
        padding: 15px;
        border-radius: 15px;
    }

    .nearby-shop-name-row h3 {
        font-size: 16px;
    }

    .nearby-service-label,
    .nearby-shop-address {
        font-size: 12px;
    }

    .nearby-action {
        font-size: 12px;
    }
}


/* =========================================
   CUSTOMER — YOUR SERVICES
========================================= */

.customer-services-page {
    width: min(100% - 32px, 1080px);
    margin: 32px auto 100px;
    color: #17251e;
    font-family: inherit;
}

/* Page heading */
.customer-services-page .page-heading {
    margin-bottom: 24px;
}

.customer-services-page .page-heading h1 {
    margin: 0;
    color: #102c20;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 750;
    line-height: 1.25;
}

.customer-services-page .page-heading p {
    margin: 8px 0 0;
    color: #718078;
    font-size: 14px;
    line-height: 1.6;
}

/* Cards wrapper */
.customer-jobcard-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

/* Main card */
.customer-jobcard {
    min-width: 0;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #dcebe2;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(22, 72, 48, 0.07);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.customer-jobcard:hover {
    transform: translateY(-3px);
    border-color: #b9d9c7;
    box-shadow: 0 15px 34px rgba(22, 72, 48, 0.11);
}

/* Partner block */
.jobcard-partner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.partner-shop-icon {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    color: #087747;
    background: #e7f5ed;
    border-radius: 17px;
    font-size: 23px;
}

.partner-shop-details {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.partner-shop-details h2 {
    margin: 0 0 7px;
    color: #14271d;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.partner-shop-details p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 5px 0 0;
    color: #687970;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.partner-shop-details p i {
    width: 13px;
    margin-top: 3px;
    color: #168254;
    text-align: center;
}

/* Status pill */
.jobcard-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 130px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
}

.jobcard-status.pending {
    color: #946000;
    background: #fff3d2;
}

.jobcard-status.in-progress {
    color: #08753f;
    background: #e2f7e9;
}

.jobcard-status.completed {
    color: #08753f;
    background: #d8f5e2;
}

/* Divider */
.jobcard-divider {
    height: 1px;
    margin: 19px 0;
    background: #e6eee9;
}

/* Vehicle + amount row */
.jobcard-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.jobcard-vehicle-icon {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    color: #087747;
    background: #f0f8f3;
    border: 1px solid #e0f0e6;
    border-radius: 17px;
    font-size: 24px;
}

.jobcard-vehicle-info {
    flex: 1;
    min-width: 0;
}

.vehicle-registration {
    display: block;
    color: #15291e;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.25px;
    overflow-wrap: anywhere;
}

.vehicle-model {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 8px;
    color: #63766b;
    background: #f2f6f3;
    border: 1px solid #e5ece7;
    border-radius: 7px;
    font-size: 11px;
}

/* Amount */
.jobcard-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 13px;
}

.jobcard-amount span {
    color: #77867d;
    font-size: 12px;
}

.jobcard-amount strong {
    color: #102c20;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

/* Return date/time panel */
.jobcard-return {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 13px 14px;
    background: #f0f8f3;
    border: 1px solid #deeee4;
    border-radius: 15px;
}

.return-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #087747;
    background: #e0f2e7;
    border-radius: 11px;
    font-size: 16px;
}

.return-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.return-info span {
    color: #6c8174;
    font-size: 11px;
}

.return-info strong {
    color: #183d2a;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Details link */
.jobcard-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid #e6eee9;
}

.jobcard-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #087747;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.jobcard-footer a:hover {
    gap: 12px;
    color: #045b35;
}

/* Empty state */
.customer-services-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 560px;
    margin: 40px auto;
    padding: 42px 24px;
    background: #ffffff;
    border: 1px solid #e0ece5;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(22, 72, 48, 0.06);
    text-align: center;
}

.customer-services-empty .empty-icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin-bottom: 16px;
    color: #087747;
    background: #e7f5ed;
    border-radius: 20px;
    font-size: 25px;
}

.customer-services-empty h2 {
    margin: 0;
    color: #183326;
    font-size: 20px;
    font-weight: 750;
}

.customer-services-empty p {
    max-width: 380px;
    margin: 9px 0 0;
    color: #718078;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
    .customer-jobcard-list {
        grid-template-columns: minmax(0, 1fr);
        max-width: 650px;
        margin-inline: auto;
    }

    .customer-services-page {
        width: min(100% - 28px, 720px);
        margin-top: 24px;
    }
}

@media (max-width: 520px) {
    .customer-services-page {
        width: calc(100% - 24px);
        margin-top: 20px;
        margin-bottom: 100px;
    }

    .customer-services-page .page-heading {
        margin-bottom: 18px;
    }

    .customer-services-page .page-heading h1 {
        font-size: 24px;
    }

    .customer-services-page .page-heading p {
        font-size: 13px;
    }

    .customer-jobcard {
        padding: 16px;
        border-radius: 18px;
    }

    .jobcard-partner {
        gap: 11px;
    }

    .partner-shop-icon,
    .jobcard-vehicle-icon {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        border-radius: 14px;
        font-size: 20px;
    }

    .partner-shop-details h2 {
        font-size: 15px;
    }

    .partner-shop-details p {
        font-size: 11px;
    }

    .jobcard-status {
        max-width: 100px;
        padding: 5px 8px;
        font-size: 10px;
    }

    .jobcard-divider {
        margin: 15px 0;
    }

    .jobcard-main {
        gap: 11px;
    }

    .vehicle-registration {
        font-size: 14px;
    }

    .jobcard-amount strong {
        font-size: 14px;
    }

    .jobcard-return {
        margin-top: 15px;
        padding: 11px;
    }

    .return-info strong {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .jobcard-partner {
        flex-wrap: wrap;
    }

    .jobcard-status {
        margin-left: 61px;
    }

    .jobcard-amount {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}

.tracking-details-page {
    width: min(760px, 100%);
    margin: 28px auto 100px;
    padding: 0 18px;
    color: #15251e;
}

.tracking-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: #087443;
    font-weight: 700;
    text-decoration: none;
}

.tracking-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.tracking-eyebrow,
.tracking-label {
    display: block;
    color: #718078;
    font-size: 12px;
    font-weight: 600;
}

.tracking-heading h1 {
    margin: 5px 0;
    font-size: clamp(24px, 4vw, 32px);
}

.tracking-heading p {
    margin: 0;
    color: #718078;
    font-size: 14px;
}

.tracking-status {
    flex-shrink: 0;
    padding: 8px 13px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

.tracking-status.pending {
    color: #946200;
    background: #fff2ce;
}

.tracking-status.in-progress {
    color: #087443;
    background: #dff5e8;
}

.tracking-status.completed {
    color: #087443;
    background: #d8f5e3;
}

.tracking-partner-card,
.tracking-vehicle-card,
.tracking-time-card,
.tracking-amount-card,
.tracking-progress-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 15px;
    padding: 20px;
    border: 1px solid #e1ece5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 70, 45, .05);
}

.tracking-shop-icon,
.tracking-vehicle-icon,
.tracking-time-icon {
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    color: #087443;
    background: #e7f6ed;
    font-size: 23px;
}

.tracking-partner-info h2,
.tracking-vehicle-info h2 {
    margin: 0 0 8px;
    font-size: 17px;
}

.tracking-partner-info p,
.tracking-vehicle-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0 0;
    color: #68766e;
    font-size: 13px;
}

.tracking-vehicle-info {
    min-width: 0;
}

.tracking-vehicle-info h2 {
    margin-top: 5px;
}

.tracking-time-card {
    background: #f1faf4;
}

.tracking-time-card strong {
    display: block;
    margin-top: 5px;
    font-size: 15px;
}

.tracking-amount-card {
    justify-content: space-between;
    background: #eaf7ef;
}

.tracking-amount-card span {
    font-weight: 600;
}

.tracking-amount-card strong {
    font-size: 22px;
}

.tracking-progress-card {
    display: block;
}

.tracking-progress-card h2 {
    margin: 0 0 18px;
    font-size: 18px;
}

.tracking-progress-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tracking-progress-dot {
    width: 13px;
    height: 13px;
    margin-top: 4px;
    border-radius: 50%;
    background: #078443;
    box-shadow: 0 0 0 5px #e0f4e8;
}

.tracking-progress-row strong {
    font-size: 15px;
}

.tracking-progress-row p {
    margin: 5px 0 0;
    color: #718078;
    font-size: 13px;
}

@media (max-width: 520px) {
    .tracking-details-page {
        margin-top: 18px;
        padding: 0 12px;
    }

    .tracking-partner-card,
    .tracking-vehicle-card,
    .tracking-time-card,
    .tracking-amount-card,
    .tracking-progress-card {
        padding: 15px;
        border-radius: 15px;
    }

    .tracking-heading {
        flex-wrap: wrap;
    }

    .tracking-status {
        margin-top: 4px;
    }

    .tracking-amount-card strong {
        font-size: 19px;
    }
}



/* =========================================
   ACCESSIBILITY & FINAL RESPONSIVE SAFETY
========================================= */

.customer-bottom-nav a:focus-visible,
.customer-location:focus-visible,
.iam-view-all:focus-visible,
.iam-partner-actions a:focus-visible,
.nearby-action:focus-visible,
.nearby-location-btn:focus-visible,
.nearby-search-btn:focus-visible,
.jobcard-footer a:focus-visible,
.tracking-back:focus-visible {
    outline: 3px solid rgba(7, 91, 59, 0.35);
    outline-offset: 3px;
}

.iam-partner-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
    .iam-search-button,
    .iam-category-card,
    .iam-partner-card,
    .nearby-station-card,
    .nearby-action,
    .customer-jobcard,
    .jobcard-footer a {
        transition: none;
    }

    .iam-error-modal {
        animation: none;
    }
}

@media (max-width: 360px) {
    .customer-header {
        gap: 7px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .customer-brand-text strong {
        font-size: 14px;
    }

    .customer-location {
        padding: 7px 6px;
    }

    .customer-location strong {
        font-size: 10px;
    }

    .customer-bottom-nav a span {
        font-size: 8px;
    }

    .nearby-search-panel {
        gap: 7px;
    }

    .nearby-location-btn,
    .nearby-search-btn {
        gap: 5px;
        font-size: 12px;
    }
}




/* Header layout safety for logo + location selector */
.customer-header > .customer-brand {
    margin-right: auto;
}

.customer-header .customer-location {
    flex: 0 1 auto;
    min-width: 0;
}

.customer-brand-logo {
    object-fit: contain !important;
}

@media (max-width: 560px) {
    .customer-header {
        align-items: center;
    }

    .customer-header .customer-location {
        max-width: 48%;
    }
}
