body {
    background-color: #f4f4f4;
    color: #333;
    font-family: Arial, sans-serif;
}

.header {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header .logo {
    text-align: center;
}

.header .logo img {
    display: inline-block;
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-top-logo {
    flex: 1 1 auto;
    min-width: 0;
}

.header-top-spacer,
.header-menu-wrap {
    flex: 0 0 56px;
    width: 56px;
}

.header-menu-wrap {
    text-align: right;
}

.header-search-row {
    margin-top: 10px;
}

.header-search-row form {
    margin: 0;
}

.header-logo-image {
    max-width: 100%;
}

.header-menu {
    position: relative;
    display: inline-block;
}

.header-menu summary {
    appearance: none;
    -webkit-appearance: none;
    list-style: none;
}

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

.header-menu summary::marker {
    display: none;
    content: "";
}

.header-menu-toggle {
    align-items: center;
    background: #1f3a5f;
    border: 0;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    height: 54px;
    justify-content: center;
    padding: 0;
    width: 48px;
}

.header-menu-icon {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.header-menu-dropdown {
    background: #eef4f8;
    border: 1px solid #d9e2ea;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    min-width: 180px;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    white-space: nowrap;
    z-index: 1100;
}

.header-menu-dropdown a {
    color: #1f1f1f;
    display: block;
    padding: 12px 16px;
    text-decoration: none;
}

.header-menu-dropdown a:hover {
    background: #dde8ef;
}

.header form {
    margin: 10px 0;
}

.container {
    max-width: 1920px;
    margin-top: 10px; /* Give enough space to ensure content is not hidden behind the fixed header */
}

/* Styles for larger checkboxes and labels on forms, optimized for mobile usability */
.form-check-input {
    width: 25px;  /* Larger width for better mobile accessibility */
    height: 25px; /* Larger height for better mobile accessibility */
    cursor: pointer; /* Cursor pointer to indicate clickable area */
}

.form-check-label {
    margin-left: 10px; /* Spacing between checkbox and label for better readability */
    font-size: 1.2rem; /* Larger font size for easier interaction and visibility */
}
.custom-service {
        background-color: #f0f0f0; /* Light grey background */
}
/* Styles for the tickbox container */
.tickbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Space between checkboxes */
}

.custom-control {
    flex: 1 1 calc(25% - 10px); /* 4 items per row */
    min-width: 150px; /* Ensures minimum size for mobile devices */
}

.custom-control-input {
    width: 20px;
    height: 20px;
}

.custom-control-label {
    margin-left: 8px;
    font-size: 1rem;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    max-width: 760px;
}

.settings-list-item {
    align-items: center;
    background: #fff;
    border: 1px solid #d9e2ea;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    color: #1f1f1f;
    display: flex;
    justify-content: space-between;
    padding: 18px 20px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.settings-list-item:hover {
    border-color: #b8cddd;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
    color: #1f1f1f;
    text-decoration: none;
    transform: translateY(-1px);
}

.settings-list-main {
    align-items: center;
    display: flex;
    gap: 14px;
}

.settings-list-icon {
    align-items: center;
    background: #eef4f8;
    border-radius: 12px;
    color: #1f3a5f;
    display: inline-flex;
    font-size: 1.15rem;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.settings-list-title {
    color: #1f3a5f;
    font-size: 1.12rem;
    font-weight: 700;
}

.settings-list-arrow {
    color: #7a8793;
    font-size: 0.95rem;
}

.search-results-shell {
    --search-navy: #1f3559;
    --search-sky: #2f6c9f;
    --search-cyan: #0f8b8d;
    --search-gold: #d9a21b;
    --search-ink: #23303f;
    --search-muted: #6e7b88;
    --search-border: #d8e0e7;
    --search-surface: #ffffff;
    --search-surface-alt: #f2f6fa;
}

.search-results-hero {
    background: linear-gradient(135deg, #f7fafc 0%, #eef4f8 100%);
    border: 1px solid var(--search-border);
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(31, 53, 89, 0.08);
    margin-bottom: 26px;
    padding: 26px 24px 22px;
}

.search-results-hero h1 {
    color: var(--search-ink);
    font-size: clamp(2.4rem, 4vw, 4.4rem);
    line-height: 0.95;
    margin: 0 0 10px;
}

.search-results-eyebrow {
    color: var(--search-sky);
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.search-results-section {
    margin-bottom: 34px;
}

.search-section-header {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.search-section-header h2 {
    color: var(--search-ink);
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin: 0;
}

.search-section-header p {
    color: var(--search-muted);
    margin: 6px 0 0;
}

.customer-search-grid,
.car-search-grid {
    display: grid;
    gap: 18px;
}

.customer-result-card,
.car-result-card {
    background: var(--search-surface);
    border: 1px solid var(--search-border);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(35, 48, 63, 0.06);
    overflow: hidden;
    padding: 20px;
}

.customer-result-top {
    align-items: start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.customer-result-identity h3 {
    color: var(--search-ink);
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 700;
    margin: 0 0 8px;
}

.customer-result-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.customer-result-meta a {
    color: #1a73e8;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.customer-result-meta a:hover,
.car-result-link:hover {
    text-decoration: underline;
}

.customer-result-actions,
.customer-vehicle-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.customer-car-count {
    background: var(--search-surface-alt);
    border: 1px solid var(--search-border);
    border-radius: 999px;
    color: var(--search-muted);
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 7px 12px;
}

.customer-vehicle-list {
    display: grid;
    gap: 14px;
}

.customer-vehicle-row {
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    border: 1px solid var(--search-border);
    border-radius: 16px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 16px;
}

.customer-vehicle-summary {
    min-width: 0;
}

.customer-vehicle-topline,
.car-result-top {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.customer-vehicle-reg,
.car-result-reg {
    color: var(--search-navy);
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.05;
}

.customer-vehicle-name,
.car-result-name {
    color: var(--search-ink);
    display: block;
    font-size: 1.05rem;
    margin-top: 6px;
}

.search-action-button {
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    font-size: 0.98rem;
    font-weight: 700;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.search-action-button:hover {
    color: #fff;
    opacity: 0.95;
    text-decoration: none;
    transform: translateY(-1px);
}

.search-action-button-primary {
    background: linear-gradient(135deg, #1769e0 0%, #2184ff 100%);
    box-shadow: 0 10px 18px rgba(33, 132, 255, 0.24);
}

.search-action-button-secondary {
    background: linear-gradient(135deg, #5f6974 0%, #7d8791 100%);
}

.search-action-button-service {
    background: linear-gradient(135deg, #138c9a 0%, #1fa7b6 100%);
    box-shadow: 0 10px 18px rgba(31, 167, 182, 0.2);
}

.search-action-button-tyre {
    background: linear-gradient(135deg, #d39a11 0%, #ffbd17 100%);
    box-shadow: 0 10px 18px rgba(255, 189, 23, 0.24);
    color: #1f1f1f;
}

.search-action-button-tyre:hover {
    color: #1f1f1f;
}

.search-action-button-history {
    background: linear-gradient(135deg, #29466e 0%, #355984 100%);
}

.search-action-button-history-inline {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 12px;
    white-space: nowrap;
}

.search-empty-inline,
.search-empty-state {
    background: var(--search-surface-alt);
    border: 1px dashed #c8d5df;
    border-radius: 16px;
    color: var(--search-muted);
    padding: 16px;
}

.search-empty-state h3 {
    color: var(--search-ink);
    font-size: 1.2rem;
    margin: 0 0 8px;
}

.search-empty-state p {
    margin: 0;
}

.car-result-top {
    margin-bottom: 10px;
}

.car-result-link {
    color: inherit;
    text-decoration: none;
}

.car-result-meta {
    color: var(--search-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.search-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 18px;
}

.search-pagination small {
    color: var(--search-muted);
}

.search-pagination-actions {
    display: flex;
    gap: 8px;
}

.home-notice-box {
    background: linear-gradient(135deg, #f7fafc 0%, #eef4f8 100%);
    border: 1px solid #d8e0e7;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(31, 53, 89, 0.08);
    padding: 20px 22px;
}

.home-notice-label {
    color: #2f6c9f;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.home-notice-content {
    color: #23303f;
    line-height: 1.6;
}

.home-notice-content > *:last-child {
    margin-bottom: 0;
}

.home-notice-content a {
    color: #1769e0;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .header .logo {
        text-align: center;
    }

    .header {
        padding: 8px 0;
    }

    .header-top-row {
        gap: 8px;
    }

    .header-menu-wrap {
        flex-basis: 56px;
        width: 56px;
    }

    .header-top-spacer {
        flex-basis: 56px;
        width: 56px;
    }

    .header-menu-dropdown {
        min-width: 160px;
    }

    .header-logo-image {
        max-width: 220px !important;
        max-height: 80px !important;
    }

    .search-results-hero {
        padding: 22px 18px 18px;
    }

    .customer-result-top {
        flex-direction: column;
        align-items: stretch;
    }

    .customer-vehicle-row {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }

    .customer-result-actions,
    .customer-vehicle-actions {
        align-items: stretch;
        display: flex;
        flex-wrap: wrap;
        margin-top: 4px;
        width: 100%;
    }

    .customer-result-actions .search-action-button {
        flex: 1 1 100%;
        width: 100%;
    }

    .customer-vehicle-actions .search-action-button {
        flex: 1 1 calc(50% - 5px);
        width: auto;
    }

    .customer-vehicle-topline,
    .car-result-top {
        align-items: center;
    }

    .customer-vehicle-summary {
        width: 100%;
    }

    .customer-vehicle-name,
    .car-result-name {
        margin-top: 4px;
    }

    .customer-car-count {
        border-radius: 14px;
        display: block;
        margin-bottom: 12px;
    }

    .customer-result-card,
    .car-result-card {
        padding: 16px;
    }

    .customer-vehicle-list {
        gap: 10px;
    }

    .customer-result-actions .search-action-button,
    .search-pagination-actions .btn {
        flex: 1 1 100%;
    }

    .search-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .search-pagination-actions {
        width: 100%;
    }

    .search-pagination-actions .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 430px) {
    .header-top-spacer,
    .header-menu-wrap {
        flex-basis: 48px;
        width: 48px;
    }

    .header-menu-toggle {
        height: 48px;
        width: 44px;
    }

    .header-menu-icon {
        font-size: 1.75rem;
    }

    .header-logo-image {
        max-width: 190px !important;
        max-height: 70px !important;
    }
}

.receipt-status {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

.receipt-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
