:root {
    --trescal-blue: #005ca8;
    --trescal-sky: #00a9d5;
    --trescal-ink: #064f93;
    --trescal-muted: #7d9abd;
    --trescal-line: #e8eef4;
    --trescal-soft: #f3f6f9;
}

body {
    background: #fff;
    color: #14324c;
    font-family: Arial, Helvetica, sans-serif;
    min-width: 320px;
}

.container-xl {
    margin-left: auto;
    margin-right: auto;
    max-width: 1140px;
    padding-left: 18px;
    padding-right: 18px;
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.g-4 {
    row-gap: 24px;
}

.g-4 > * {
    padding-left: 12px;
    padding-right: 12px;
}

.col-lg-4,
.col-lg-8 {
    width: 100%;
}

.d-flex {
    display: flex;
}

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

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-3 {
    gap: 1rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-2 {
    margin-bottom: .5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

button,
input,
select,
textarea {
    font: inherit;
}

.skills-page,
.results-page {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.step-shell {
    background: #f1f1f1;
    border-bottom: 1px solid #e5e5e5;
}

.wizard-steps {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    min-height: 70px;
}

.step-marker {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--trescal-muted);
    display: inline-flex;
    gap: 14px;
    justify-content: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.step-marker span {
    align-items: center;
    background: #8cabc9;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.step-marker strong {
    font-size: .9rem;
    line-height: 1.1;
}

.step-marker.is-active,
.step-marker.is-complete {
    color: var(--trescal-blue);
}

.step-marker.is-active span,
.step-marker.is-complete span {
    background: var(--trescal-blue);
}

.skills-form {
    position: relative;
    z-index: 1;
}

.wizard-panel {
    display: none;
    padding: 42px 0 64px;
}

.wizard-panel.is-active {
    display: block;
}

.area-tabs {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 58px;
}

.area-tab {
    align-items: center;
    background: transparent;
    border: 0;
    color: #767d86;
    display: inline-flex;
    gap: 14px;
    min-height: 46px;
    text-align: left;
}

.area-tab span:last-child {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.area-icon,
.choice-icon {
    align-items: center;
    background: #e0e0e0;
    border-radius: 50%;
    color: #6f7880;
    display: inline-flex;
    flex: 0 0 auto;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.area-icon svg,
.choice-icon svg {
    height: 19px;
    stroke-width: 2.3;
    width: 19px;
}

.area-icon img,
.choice-icon img {
    height: 22px;
    max-width: 22px;
    object-fit: contain;
    width: 22px;
}

.area-icon i,
.choice-icon i {
    font-size: .65rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.area-tab.is-active {
    background: var(--trescal-blue);
    border-radius: 22px;
    color: #fff;
    justify-content: center;
    padding: 4px 22px 4px 6px;
}

.area-tab.is-active .area-icon,
.skill-choice input:checked + .choice-icon {
    background: #00579d;
    color: #fff;
}

.area-tab.is-active .area-icon {
    background: #0d6fb9;
}

.skill-section {
    min-height: 220px;
}

.skill-title {
    color: var(--trescal-blue);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: .2px;
}

.bulk-actions {
    display: inline-flex;
    gap: 14px;
}

.bulk-btn {
    background: #fff;
    border: 1px solid var(--trescal-line);
    color: var(--trescal-blue);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .7px;
    min-width: 126px;
    padding: 12px 20px;
}

.bulk-btn.is-muted {
    background: #7ba3cc;
    border-color: #7ba3cc;
    color: #d9e7f5;
}

.skills-grid {
    display: none;
    gap: 22px 88px;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.skills-grid.is-active {
    display: grid;
}

.skill-choice {
    align-items: center;
    color: var(--trescal-blue);
    cursor: pointer;
    display: inline-flex;
    gap: 14px;
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.2;
    min-height: 40px;
}

.skill-choice input,
.country-choice input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.skill-choice:has(input:not(:checked)) {
    color: #8394a5;
}

.skill-choice:has(input:not(:checked)) .choice-icon {
    background: #e1e6eb;
    color: #8795a0;
}

.wizard-actions {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-top: 92px;
}

.wizard-actions.is-split {
    gap: 18px;
}

.primary-action,
.secondary-action {
    align-items: center;
    border: 0;
    display: inline-flex;
    font-size: .86rem;
    font-weight: 800;
    justify-content: center;
    letter-spacing: .6px;
    min-height: 44px;
    min-width: 174px;
    padding: 12px 28px;
    text-transform: uppercase;
}

.primary-action {
    background: var(--trescal-blue);
    color: #fff;
}

.secondary-action {
    background: #eef3f7;
    color: var(--trescal-blue);
}

.country-header {
    margin: 28px auto 34px;
    max-width: 640px;
    text-align: center;
}

.country-subtitle {
    color: #64788c;
    margin: 0;
}

.country-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 880px;
}

.country-choice {
    align-items: center;
    border: 1px solid var(--trescal-line);
    color: #42627f;
    cursor: pointer;
    display: flex;
    font-weight: 800;
    gap: 14px;
    min-height: 70px;
    padding: 16px 18px;
}

.country-choice:has(input:checked) {
    border-color: var(--trescal-blue);
    box-shadow: inset 0 0 0 2px var(--trescal-blue);
    color: var(--trescal-blue);
}

.review-band {
    margin: 36px auto 0;
    max-width: 620px;
    text-align: center;
}

.review-band p {
    color: #62778a;
    margin: 12px 0 28px;
}

.blue-footer {
    background: linear-gradient(100deg, var(--trescal-blue), var(--trescal-sky));
    bottom: 0;
    height: 120px;
    left: 18%;
    position: fixed;
    right: 0;
    transform: skewX(-9deg);
    transform-origin: bottom left;
    z-index: 0;
}

.blue-footer span {
    border-left: 1px solid rgba(255, 255, 255, .45);
    border-top: 1px solid rgba(255, 255, 255, .45);
    display: block;
    height: 72px;
    left: 42%;
    position: absolute;
    top: 48px;
    width: 72px;
}

.results-shell {
    padding-bottom: 64px;
    padding-top: 48px;
}

.results-heading {
    margin-bottom: 28px;
}

.results-heading h1 {
    color: var(--trescal-blue);
    font-weight: 800;
    margin: 16px 0 0;
}

.results-actions {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.back-link {
    align-items: center;
    color: var(--trescal-blue);
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
    text-decoration: none;
}

.back-link svg {
    height: 18px;
    width: 18px;
}

.summary-strip {
    border-bottom: 1px solid var(--trescal-line);
    border-top: 1px solid var(--trescal-line);
    display: flex;
    gap: 48px;
    margin-bottom: 28px;
    padding: 18px 0;
}

.summary-strip div {
    align-items: baseline;
    display: flex;
    gap: 10px;
}

.summary-strip strong {
    color: var(--trescal-blue);
    font-size: 1.7rem;
}

.summary-strip span {
    color: #61798f;
    font-weight: 700;
}

.result-list {
    display: grid;
    gap: 16px;
}

.result-item,
.country-summary {
    border: 1px solid var(--trescal-line);
    background: #fff;
    padding: 20px;
}

.result-item {
    align-items: flex-start;
    display: flex;
    gap: 16px;
}

.result-item h2,
.country-summary h2 {
    color: var(--trescal-blue);
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.result-item p,
.country-summary p {
    color: #63778b;
    margin: 0;
}

.service-location {
    align-items: center;
    color: #476f93;
    display: flex;
    font-size: .84rem;
    font-weight: 800;
    gap: 8px;
    margin-top: 12px;
}

.service-location svg {
    height: 16px;
    width: 16px;
}

.contact-action {
    background: var(--trescal-blue);
    color: #fff;
    display: inline-flex;
    font-size: .8rem;
    font-weight: 800;
    margin-top: 16px;
    padding: 10px 16px;
    text-decoration: none;
    text-transform: uppercase;
}

.contact-panel {
    align-items: center;
    background: #fff;
    border: 1px solid var(--trescal-line);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 28px;
}

.contact-panel h2 {
    color: var(--trescal-blue);
    font-size: 1.25rem;
    font-weight: 900;
    margin: 0 0 10px;
}

.contact-panel p {
    color: #63778b;
    margin: 0;
}

.country-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.country-pills span {
    background: var(--trescal-soft);
    color: var(--trescal-blue);
    font-size: .82rem;
    font-weight: 800;
    padding: 9px 11px;
}

.empty-state {
    background: var(--trescal-soft);
    color: #687b8d;
    font-weight: 700;
    padding: 24px;
}

.country-result-group {
    margin-top: 44px;
}

.country-result-group:first-of-type {
    margin-top: 14px;
}

.country-result-title {
    color: var(--trescal-blue);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0 0 18px;
}

.result-skill-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 34px;
    margin-bottom: 26px;
}

.result-skill-tabs button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #202b35;
    display: inline-flex;
    font-size: .9rem;
    font-weight: 800;
    gap: 10px;
    letter-spacing: 1px;
}

.result-skill-tabs small {
    background: #e8f2fb;
    color: var(--trescal-blue);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: 0;
    padding: 3px 6px;
}

.result-skill-tabs i,
.result-skill-tabs svg {
    align-items: center;
    background: var(--trescal-blue);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 8px;
    width: 34px;
}

.result-skill-tabs img {
    background: var(--trescal-blue);
    border-radius: 50%;
    display: block;
    height: 34px;
    object-fit: contain;
    padding: 8px;
    width: 34px;
}

.result-skill-tabs .is-active {
    background: var(--trescal-blue);
    border-radius: 22px;
    color: #fff;
    padding: 5px 18px 5px 6px;
}

.lab-results-panel {
    display: block;
}

.lab-result-block {
    background: var(--trescal-blue);
    color: #fff;
    display: none !important;
    min-height: 520px;
    padding: 58px 72px;
}

.lab-result-block.is-active {
    display: block !important;
}

.lab-result-heading {
    align-items: center;
    display: flex;
    gap: 20px;
    margin-bottom: 34px;
}

.lab-result-heading span {
    align-items: center;
    border: 3px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    display: inline-flex;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.lab-result-heading svg {
    height: 26px;
    width: 26px;
}

.lab-result-heading img {
    display: block;
    height: 26px;
    object-fit: contain;
    width: 26px;
}

.lab-result-heading h2 {
    font-size: 1.55rem;
    font-weight: 900;
    margin: 0;
}

.lab-result-block h3 {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0 0 24px;
}

.lab-card {
    background: #fff;
    color: #111;
    margin-bottom: 54px;
    max-width: 320px;
    padding: 24px 28px;
}

.lab-card h4 {
    font-size: 1.05rem;
    font-weight: 900;
    margin: 0 0 22px;
}

.lab-card p {
    color: #111;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 16px;
}

.lab-card-contact {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.lab-card-contact span {
    align-items: center;
    color: var(--trescal-blue);
    display: inline-flex;
    font-size: .84rem;
    font-weight: 900;
    gap: 8px;
}

.lab-card-contact svg {
    color: #222;
    height: 15px;
    width: 15px;
}

.discover-lab-button,
.lab-action-blue,
.lab-action-red,
.scope-button {
    align-items: center;
    border: 0;
    color: #fff;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 900;
    justify-content: center;
    letter-spacing: .8px;
    min-height: 46px;
    padding: 12px 24px;
    text-decoration: none;
    text-transform: uppercase;
}

.discover-lab-button,
.lab-action-blue,
.scope-button {
    background: var(--trescal-blue);
}

.lab-action-red {
    background: #ff2f16;
}

.lab-detail-page {
    background: #fff;
}

.lab-hero {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    margin: 0 auto;
    max-width: 1280px;
}

.lab-detail-copy {
    padding: 46px 58px 44px;
}

.lab-detail-copy h1 {
    color: var(--trescal-blue);
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.16;
    margin: 22px 0 28px;
    max-width: 520px;
}

.lab-detail-grid {
    display: grid;
    gap: 34px;
    grid-template-columns: .85fr 1fr;
}

.lab-detail-grid h2 {
    color: #777;
    font-size: .95rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0 0 13px;
    text-transform: uppercase;
}

.hours-list {
    display: grid;
    grid-template-columns: auto 1fr;
    margin: 0 0 32px;
}

.hours-list dt,
.hours-list dd {
    color: #111;
    font-weight: 900;
    margin: 0;
}

.hours-list dt {
    padding-right: 24px;
}

.lab-contact-line {
    align-items: center;
    display: flex;
    font-weight: 900;
    gap: 8px;
    margin: 0 0 8px;
}

.lab-contact-line svg {
    height: 16px;
    width: 16px;
}

.lab-detail-grid address {
    color: #777;
    font-style: normal;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 16px;
}

.map-preview {
    align-items: center;
    background: #eef3f7;
    border: 1px solid #9fb7d0;
    color: var(--trescal-blue);
    display: flex;
    height: 92px;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
    position: relative;
}

.map-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.map-preview strong {
    background: var(--trescal-blue);
    color: #fff;
    padding: 8px 22px;
}

.map-preview span {
    bottom: 8px;
    color: #6e8294;
    font-weight: 900;
    position: absolute;
    right: 12px;
    text-transform: uppercase;
}

.lab-detail-actions {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr 1fr;
}

.lab-photo {
    min-height: 500px;
}

.lab-photo img,
.lab-photo-placeholder {
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    width: 100%;
}

.lab-photo-placeholder {
    align-items: center;
    background: linear-gradient(135deg, #d8eaf5, #8ab1ce);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lab-photo-placeholder span,
.lab-photo-placeholder strong {
    text-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.lab-photo-placeholder strong {
    font-size: 2rem;
}

.lab-accreditations {
    align-items: center;
    display: grid;
    gap: 48px;
    grid-template-columns: 1fr 1fr;
    margin: 0 auto;
    max-width: 1280px;
    padding: 58px;
}

.lab-accreditations h2 {
    color: var(--trescal-blue);
    font-size: 1.9rem;
    font-weight: 900;
    margin: 0 0 24px;
    text-transform: uppercase;
}

.lab-accreditations p {
    color: #777;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-decoration: underline;
}

.scope-button {
    margin-top: 26px;
}

.accreditation-logos {
    align-items: center;
    display: flex;
    gap: 44px;
    justify-content: center;
}

.accreditation-logo,
.iso-logo {
    align-items: center;
    display: flex;
    font-weight: 900;
    justify-content: center;
    text-align: center;
}

.accreditation-logo {
    border: 8px solid #163a8c;
    border-radius: 50%;
    color: #163a8c;
    font-size: 2.5rem;
    height: 150px;
    width: 220px;
}

.iso-logo {
    color: #ff2f16;
    font-size: 1.7rem;
}

@media (max-width: 991.98px) {
    .wizard-steps {
        grid-template-columns: 1fr;
        padding: 14px 0;
    }

    .step-marker {
        justify-content: flex-start;
    }

    .area-tabs,
    .skills-grid,
    .country-grid,
    .lab-hero,
    .lab-detail-grid,
    .lab-accreditations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skills-grid {
        gap: 18px 28px;
    }

    .blue-footer {
        height: 92px;
        left: 8%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        width: 33.333333%;
    }

    .col-lg-8 {
        width: 66.666667%;
    }
}

@media (max-width: 575.98px) {
    .wizard-panel {
        padding-top: 28px;
    }

    .area-tabs,
    .skills-grid,
    .country-grid,
    .lab-hero,
    .lab-detail-grid,
    .lab-accreditations {
        grid-template-columns: 1fr;
    }

    .lab-result-block {
        padding: 34px 20px;
    }

    .lab-card {
        max-width: none;
    }

    .lab-detail-copy,
    .lab-accreditations {
        padding: 28px 18px;
    }

    .lab-detail-copy h1 {
        font-size: 2rem;
    }

    .lab-detail-actions {
        grid-template-columns: 1fr;
    }

    .area-tabs {
        gap: 12px;
        margin-bottom: 34px;
    }

    .area-tab {
        border: 1px solid var(--trescal-line);
        padding: 8px;
    }

    .area-tab.is-active {
        justify-content: flex-start;
    }

    .bulk-actions,
    .wizard-actions.is-split,
    .results-actions,
    .summary-strip,
    .contact-panel {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .bulk-btn,
    .primary-action,
    .secondary-action {
        width: 100%;
    }
}
