﻿/* =========================================================
   Adlam Custom CSS
   Cookie consent + Catalogue Gearboxes wizard (single clean version)
   ========================================================= */

/* ===== Cookie Consent (Adlam themed) ===== */
.adlam-cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    padding: 14px 16px;
    background: rgba(15, 18, 24, 0.96);
    border-top: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
    color: #e8edf5;
    font-size: 13px;
    line-height: 1.4;
}

    .adlam-cookie-consent.is-visible {
        display: block;
    }

.adlam-cookie-consent__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.adlam-cookie-consent__text {
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-wrap: wrap;
}

    .adlam-cookie-consent__text strong {
        color: #ffffff;
        font-weight: 700;
    }

.adlam-cookie-consent__link {
    color: #6ec1ff;
    text-decoration: underline;
}

.adlam-cookie-consent__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.adlam-cookie-btn {
    border: 1px solid rgba(255,255,255,0.18);
    background: transparent;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
}

.adlam-cookie-btn--primary {
    background: #1e88e5;
    border-color: #1e88e5;
}

    .adlam-cookie-btn--primary:hover {
        filter: brightness(1.05);
    }

.adlam-cookie-btn--ghost:hover {
    background: rgba(255,255,255,0.08);
}

@media (max-width: 767px) {
    .adlam-cookie-consent__inner {
        gap: 12px;
    }

    .adlam-cookie-consent__actions {
        width: 100%;
    }

    .adlam-cookie-btn {
        flex: 1;
    }
}

/* =========================================================
   Catalogue Gearboxes Wizard (premium dark + gold accent)
   ========================================================= */

/* Font smoothing + readable weights */
.gbx-hero,
.gbx-wizard,
.gbx-wizard * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* HERO */
.gbx-hero {
    background: linear-gradient(180deg, #0b0b0b 0%, #111 55%, #121212 100%);
    padding: 44px 0;
    margin: 0 0 22px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.gbx-hero-title {
    color: #fff;
    margin: 0;
    font-weight: 700;
    letter-spacing: .2px;
}

.gbx-hero-sub {
    color: rgba(255,255,255,0.78);
    margin-top: 10px;
    max-width: 980px;
    font-weight: 400;
    line-height: 1.55;
}

/* MAIN CARD */
.gbx-wizard.card-like {
    background: radial-gradient(1200px 600px at 20% 0%, rgba(255,255,255,0.06), transparent 55%), linear-gradient(180deg, #141414, #0f0f0f);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.35);
    margin-bottom: 40px;
}

/* TABS */
.gbx-tabs {
    border-bottom: 1px solid rgba(255,255,255,0.10);
    margin-bottom: 16px;
}

    .gbx-tabs > li > a {
        background: transparent !important;
        color: rgba(255,255,255,0.72) !important;
        border: none !important;
        padding: 12px 14px;
        font-weight: 500;
        letter-spacing: .1px;
    }

    .gbx-tabs > li.active > a,
    .gbx-tabs > li.active > a:hover,
    .gbx-tabs > li.active > a:focus {
        color: #fff !important;
        border: none !important;
        background: rgba(255,255,255,0.04) !important;
        box-shadow: inset 0 -2px 0 #f2c200;
    }

.gbx-tab-num {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 999px;
    text-align: center;
    margin-right: 8px;
    font-weight: 700;
    font-size: 12px;
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.85);
}

.gbx-tabs > li.active .gbx-tab-num {
    background: #f2c200;
    color: #141414;
}

/* HEADINGS */
.gbx-panel-head h4 {
    color: #fff;
    margin: 8px 0 6px 0;
    font-weight: 700;
    letter-spacing: .2px;
}

.gbx-panel-sub {
    color: rgba(255,255,255,0.70);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 14px;
}

/* SPACING */
.gbx-row-tight {
    margin-bottom: 14px;
}

.gbx-hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.10);
    margin: 16px 0;
}

/* LABELS */
.gbx-wizard label {
    color: rgba(255,255,255,0.80);
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 6px;
    letter-spacing: .1px;
}

/* INPUTS + SELECTS (selected text visible) */
.gbx-wizard .form-control.gbx-input {
    background: #0f1318;
    border: 1px solid rgba(255,255,255,0.14);
    color: #e8edf5;
    box-shadow: none;
    border-radius: 10px;
    height: 42px;
    font-weight: 400;
}

    .gbx-wizard .form-control.gbx-input:focus {
        border-color: rgba(242,194,0,0.65);
        box-shadow: 0 0 0 3px rgba(242,194,0,0.10);
        outline: none;
    }

    .gbx-wizard .form-control.gbx-input::placeholder {
        color: rgba(232,237,245,0.45);
    }

/* Select: consistent appearance + arrow */
.gbx-wizard select.form-control.gbx-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px;
    background-color: #0f1318;
    color: #e8edf5 !important;
    background-image: linear-gradient(45deg, transparent 50%, rgba(232,237,245,0.85) 50%), linear-gradient(135deg, rgba(232,237,245,0.85) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

    /* Dropdown list colors (NOTE: some browsers ignore option styling) */
    .gbx-wizard select.form-control.gbx-input option {
        background: #0f1318;
        color: #e8edf5;
    }

/* Help text */
.gbx-help {
    margin-top: 8px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.62);
    font-weight: 400;
    line-height: 1.45;
}

/* Metrics */
.gbx-inline {
    margin-top: 12px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.gbx-metric {
    min-width: 220px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 12px 14px;
}

.gbx-metric-title {
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 600;
}

.gbx-metric-value {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-top: 4px;
}

.gbx-metric-small {
    font-size: 16px;
    font-weight: 600;
}

/* Toggle buttons */
.gbx-toggle {
    margin-bottom: 12px;
}

    .gbx-toggle .btn {
        margin-right: 8px;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,0.16);
        background: rgba(255,255,255,0.04);
        color: rgba(255,255,255,0.85);
        font-weight: 600;
        padding: 8px 12px;
    }

        .gbx-toggle .btn:hover {
            background: rgba(255,255,255,0.07);
        }

        .gbx-toggle .btn.active {
            background: #f2c200;
            border-color: #f2c200;
            color: #111;
            font-weight: 800;
        }

/* Nav buttons */
.gbx-nav {
    margin-top: 18px;
    text-align: right;
}

.gbx-btn {
    background: #f2c200;
    border: 1px solid #f2c200;
    color: #111;
    font-weight: 800;
    border-radius: 10px;
    padding: 10px 16px;
}

    .gbx-btn:hover {
        filter: brightness(1.05);
    }

.gbx-btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.22);
    color: #ffffff !important; /* IMPORTANT: fixes grey “Select” */
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 16px;
}

    .gbx-btn-outline:hover {
        background: rgba(255,255,255,0.08);
    }

/* Step 1 cards */
.gbx-choice-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
    height: 100%;
}

    .gbx-choice-card:hover {
        border-color: rgba(242,194,0,0.35);
        box-shadow: 0 10px 22px rgba(0,0,0,0.25);
        transform: translateY(-1px);
    }

    .gbx-choice-card.is-selected {
        border-color: rgba(242,194,0,0.80) !important;
        box-shadow: 0 0 0 3px rgba(242,194,0,0.10);
    }

.gbx-choice-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.gbx-choice-title {
    color: #fff;
    font-weight: 750;
    font-size: 16px;
}

.gbx-choice-sub {
    color: rgba(255,255,255,0.62);
    font-size: 12px;
    font-weight: 400;
}

.gbx-choice-img {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}

    .gbx-choice-img img {
        max-width: 100%;
        height: auto;
        opacity: 0.95;
    }

.gbx-choice-actions {
    margin-top: 12px;
    text-align: right;
}

/* Mounting grid */
.gbx-mount-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gbx-mini-choice {
    width: 94px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .gbx-mini-choice:hover {
        border-color: rgba(242,194,0,0.35);
    }

    .gbx-mini-choice.is-selected {
        border-color: rgba(242,194,0,0.80);
        box-shadow: 0 0 0 3px rgba(242,194,0,0.10);
    }

.gbx-mini-title {
    color: rgba(255,255,255,0.88);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.gbx-mini-choice img {
    max-width: 100%;
    height: auto;
}

/* ===== Premium checkbox style ===== */
.gbx-checkline {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.gbx-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    color: rgba(255,255,255,0.82);
    font-weight: 500;
}

    /* hide native checkbox */
    .gbx-check input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    /* custom box */
    .gbx-check span {
        position: relative;
        padding-left: 28px;
        line-height: 20px;
    }

        .gbx-check span:before {
            content: "";
            position: absolute;
            left: 0;
            top: 1px;
            width: 18px;
            height: 18px;
            border-radius: 5px;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.22);
            box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
        }

    /* tick */
    .gbx-check input[type="checkbox"]:checked + span:before {
        background: rgba(242,194,0,0.18);
        border-color: rgba(242,194,0,0.75);
        box-shadow: 0 0 0 3px rgba(242,194,0,0.10);
    }

    .gbx-check input[type="checkbox"]:checked + span:after {
        content: "";
        position: absolute;
        left: 6px;
        top: 5px;
        width: 6px;
        height: 10px;
        border: 2px solid #f2c200;
        border-top: 0;
        border-left: 0;
        transform: rotate(45deg);
    }

/* Range */
.gbx-range {
    width: 100%;
}

.gbx-range-meta {
    margin-top: 6px;
    color: rgba(255,255,255,0.70);
    font-size: 12px;
}

/* Results cards */
.gbx-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 16px;
    color: #fff;
}

.gbx-card-label {
    color: rgba(255,255,255,0.60);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 700;
}

.gbx-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

    .gbx-meta-grid > div {
        min-width: 180px;
    }

    .gbx-meta-grid span {
        display: block;
        color: rgba(255,255,255,0.58);
        font-size: 12px;
        font-weight: 400;
    }

    .gbx-meta-grid strong {
        display: block;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
    }

/* Alerts (match theme) */
.gbx-wizard .alert {
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
}

/* Responsive */
@media (max-width: 991px) {
    .gbx-inline .gbx-metric {
        min-width: 100%;
    }

    .gbx-mini-choice {
        width: 30%;
        min-width: 92px;
    }
}

/* =========================================================
   FIX: Dropdown list items invisible (dark theme + Windows)
   Put at VERY BOTTOM of custom.css
   ========================================================= */

.gbx-wizard select.form-control,
.gbx-wizard select.form-control.gbx-input,
.gbx-wizard select.gbx-input {
    background-color: #0f1318 !important;
    color: #f2c200 !important; /* selected value */
    border: 1px solid rgba(242,194,0,0.55) !important;
    appearance: auto;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
}

/* keep the “-- Choose --” visible as well */
.gbx-wizard select option {
    color: #111 !important;
    background: #fff !important;
}

/* Some browsers use optgroup as well */
.gbx-wizard select optgroup {
    color: #111 !important;
    background: #fff !important;
}

/* When focused, keep it premium */
.gbx-wizard select.form-control:focus,
.gbx-wizard select.gbx-input:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(242,194,0,0.12) !important;
}

/* =========================================================
   OVERRIDES: Dropdown border + selected value + Step 3 layout
   Put at VERY BOTTOM of custom.css
   ========================================================= */

/* ---------- Dropdowns: match textbox border (no yellow outline) ---------- */
.gbx-wizard select.form-control,
.gbx-wizard select.form-control.gbx-input,
.gbx-wizard select.gbx-input {
    background-color: #0f1318 !important;
    border: 1px solid rgba(255,255,255,0.14) !important;   /* match textbox border */
    color: #e8edf5 !important;                              /* selected value visible */
    font-weight: 400 !important;
}

/* Placeholder option should look muted */
.gbx-wizard select option[value=""] {
    color: rgba(232,237,245,0.65) !important;
}

/* Options list readable when browser allows styling */
.gbx-wizard select option,
.gbx-wizard select optgroup {
    color: #111 !important;
    background: #fff !important;
}

/* Focus state: same as textbox (no yellow border ring) */
.gbx-wizard select.form-control:focus,
.gbx-wizard select.gbx-input:focus,
.gbx-wizard input.form-control.gbx-input:focus {
    border-color: rgba(242,194,0,0.55) !important;
    box-shadow: 0 0 0 2px rgba(242,194,0,0.12) !important;
    outline: none !important;
}

/* Fix: some browsers show selected value as transparent due to inherited styles */
.gbx-wizard select.form-control,
.gbx-wizard select.gbx-input {
    -webkit-text-fill-color: #e8edf5 !important;
}

/* ---------- Step 3 layout: Mounting left (2 rows) + Shaft positions right ---------- */

/* Make the Step 3 first row a “two-column header row” */
#gbxStep3 .gbx-step3-top {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}

#gbxStep3 .gbx-step3-mount {
    flex: 1 1 66%;
    min-width: 520px;
}

#gbxStep3 .gbx-step3-shafts {
    flex: 0 1 30%;
    min-width: 240px;
}

/* Force mounting arrangement grid: 3 items per row (M1-M3, then M4-M6) */
#gbxStep3 .gbx-mount-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(120px, 1fr)) !important;
    gap: 12px !important;
}

/* Make mounting cards bigger again */
#gbxStep3 .gbx-mini-choice {
    width: auto !important;
    padding: 10px !important;
    border-radius: 12px !important;
}

#gbxStep3 .gbx-mini-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

#gbxStep3 .gbx-mini-choice img {
    width: 100% !important;
    max-width: 160px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* Shaft positions “premium” layout on the right */
#gbxStep3 .gbx-step3-shafts .gbx-checkline {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 14px !important;
}

#gbxStep3 .gbx-step3-shafts .gbx-check {
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
}

/* Keep the rest of the Step 3 controls BELOW the top row */
#gbxStep3 .gbx-step3-below {
    margin-top: 16px;
}

/* Responsive fallback */
@media (max-width: 991px) {
    #gbxStep3 .gbx-step3-mount,
    #gbxStep3 .gbx-step3-shafts {
        min-width: 100%;
        flex: 1 1 100%;
    }

    #gbxStep3 .gbx-mount-grid {
        grid-template-columns: repeat(3, minmax(100px, 1fr)) !important;
    }
}

/* =========================================================
   FINAL FIX: Dropdown selected text visible + single arrow
   (Put at VERY BOTTOM)
   ========================================================= */

.gbx-wizard select.form-control.gbx-input,
.gbx-wizard select.gbx-input {
    /* Keep NATIVE arrow only (prevents double arrow) */
    background-image: none !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
    /* Ensure selected value is visible */
    color: #e8edf5 !important;
    -webkit-text-fill-color: #e8edf5 !important;
    /* Keep same look as textbox */
    background-color: #0f1318 !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    padding-right: 12px !important; /* no extra space needed now */
}

/* =========================================================
   FINAL FIX #2: Selected value not visible (force paint)
   Put at VERY BOTTOM (do not change anything else)
   ========================================================= */

.gbx-wizard select.form-control.gbx-input,
.gbx-wizard select.gbx-input {
    color: #e8edf5 !important;
    -webkit-text-fill-color: #e8edf5 !important;
    /* Forces Chrome/Edge to actually render the selected text in some dark themes */
    text-shadow: 0 0 0 #e8edf5 !important;
}

    /* Legacy Edge/IE rendering */
    .gbx-wizard select.form-control.gbx-input::-ms-value,
    .gbx-wizard select.gbx-input::-ms-value {
        color: #e8edf5 !important;
        background: #0f1318 !important;
    }

/* =========================================================
   FINAL FIX #3: Selected value looks empty (force line-height)
   Put at VERY BOTTOM (do not change anything else)
   ========================================================= */

.gbx-wizard select.form-control.gbx-input,
.gbx-wizard select.gbx-input {
    height: 42px !important; /* match your textbox height */
    line-height: 42px !important; /* forces the selected text to render visibly */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    color: #e8edf5 !important;
    -webkit-text-fill-color: #e8edf5 !important;
}

/* =========================================================
   Bundle 10 Hotfix 1: Public website click/focus border cleanup
   ---------------------------------------------------------
   Bootstrap/browser focus outlines were showing as permanent dark
   borders around public product/service cards and action buttons.
   Keep accessible keyboard focus via :focus-visible, but remove the
   ugly click-only outline after mouse/touch activation.
   ========================================================= */
body:not(.engineering-portal-body) a:focus,
body:not(.engineering-portal-body) button:focus,
body:not(.engineering-portal-body) .btn:focus,
body:not(.engineering-portal-body) [role="button"]:focus,
body:not(.engineering-portal-body) input[type="submit"]:focus,
body:not(.engineering-portal-body) input[type="button"]:focus {
    outline: none !important;
    box-shadow: none !important;
}

body:not(.engineering-portal-body) a:focus-visible,
body:not(.engineering-portal-body) button:focus-visible,
body:not(.engineering-portal-body) .btn:focus-visible,
body:not(.engineering-portal-body) [role="button"]:focus-visible,
body:not(.engineering-portal-body) input[type="submit"]:focus-visible,
body:not(.engineering-portal-body) input[type="button"]:focus-visible {
    outline: 2px solid #d7a928 !important;
    outline-offset: 3px !important;
}

body:not(.engineering-portal-body) a:focus img,
body:not(.engineering-portal-body) a:active img,
body:not(.engineering-portal-body) a:focus .picture,
body:not(.engineering-portal-body) a:active .picture,
body:not(.engineering-portal-body) a:focus .description,
body:not(.engineering-portal-body) a:active .description,
body:not(.engineering-portal-body) a:focus .category,
body:not(.engineering-portal-body) a:active .category,
body:not(.engineering-portal-body) a:focus .text-overlay,
body:not(.engineering-portal-body) a:active .text-overlay {
    outline: none !important;
    box-shadow: none !important;
}
