.iqt-container {
    /* max-width: 1200px; */
    /* margin: 40px auto; */
    /* padding: 32px; */
    /* box-shadow: 0 25px 60px rgba(11, 5, 38, 0.15); */
    font-family: 'PPMori';
    letter-spacing: -0.01em;
    /* line-height: 0.85; */
}

/* PROGRESS -------------------------------------------------------- */

.iqt-progress {
    height: 8px;
    /* border-radius: 999px; */
    overflow: hidden;
    background: var(--kal-grey);
}

.iqt-progress--top {
    margin-bottom: 18px;
}

.iqt-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--kal-green);
    transition: width 0.3s ease;
}

/* TOP BAR --------------------------------------------------------- */

.iqt-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 20px;
    min-height: 45px;
}

.iqt-back,
.iqt-restart {
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    color: var(--kal-black);
    display: inline-flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    text-transform: uppercase;
}

.iqt-bac i,
.iqt-restart i {
    font-size: 15px;
}

.iqt-back[disabled],.iqt-restart[disabled] {
    /* display: none; */
    opacity: 0;
    cursor: not-allowed;
}

.iqt-step-summary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
    color: var(--kal-black);
}

.iqt-container[data-step="1"] .iqt-step-summary {
    visibility: hidden;
}

.iqt-summary-label {
    font-size: 25px;
    color: var(--kal-black);
}

.iqt-summary-label:empty {
    display: none;
}

.iqt-summary-label:empty,
.iqt-summary-pill[hidden] {
    display: none !important;
}

.iqt-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    font-size: 22px;
}

.iqt-summary-icon {
    width: 34px;
    height: 34px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.iqt-summary-icon[hidden] {
    display: none;
}

.iqt-summary-text {
    font-weight: 600;
    color: var(--kal-black);
}

/* PANEL LAYOUT (card with illustration) --------------------------- */

.iqt-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    grid-template-areas:
        "header art"
        "body   art";
}

.iqt-container[data-step="1"] .iqt-step-header, .iqt-container[data-step="3"] .iqt-step-header {
    display: block; 
}

.iqt-panel-header {
    grid-area: header;
    padding: 20px;
    border: 2px solid var(--kal-black);
    display: flex;
    /* align-items: flex-start; */
    align-items: center;
}

.iqt-container[data-step="2"] .iqt-panel-header {
    /* padding: 0px 40px; */
}

.iqt-panel-body {
    grid-area: body;
    /* padding: 20px 28px 28px; */
    border-bottom: 2px solid var(--kal-black);
    border-left: 2px solid var(--kal-black);
    border-right: 2px solid var(--kal-black);
}

.iqt-illustration-shell {
    grid-area: art;
    border-bottom: 2px solid var(--kal-black);
    border-top: 2px solid var(--kal-black);
    border-right: 2px solid var(--kal-black);
    background: var(--kal-grey);
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 5px;
    max-height: 260px;
    max-width: 260px;
}

.iqt-illustration-canvas {
    position: relative;
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.iqt-illustration-image {
    position: absolute;
    bottom: 0;
    width: 100%;
    max-height: 100%;
    height: auto;
    /* max-height: 190px; */
    object-fit: contain;
}

/* STEP HEADER ----------------------------------------------------- */

.iqt-step-header {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center; /* vertically center-align children */
}

.iqt-step-title {
    font-size: 40px;
    font-weight: 600;
    margin: 0;
    color: var(--kal-black);
    flex: 0 0 60%;
    letter-spacing: -0.01em;
    /* line-height: 0.85; */
}

.iqt-step-subtitle {
    margin: 0; /* remove top margin so it can center properly */
    color: var(--kal-black);
    font-size: 20px;
    flex: 0 0 40%;
    padding: 0 25px;
}

.iqt-step-subtitle:empty {
    display: none;
}

.iqt-panel-divider {
    height: 1px;
    background: var(--kal-black);
    opacity: 0.25;
    margin: 18px 0;
}

/* STEP CONTENT ---------------------------------------------------- */

.iqt-step-content {
    /* min-height: 220px; */
}

.iqt-step-content-inner {
    display: inline-block;
    width: 100%;
}

/* ITEMS (industries / objectives) -------------------------------- */

.iqt-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    /* gap: 12px 32px; */
}

.iqt-step-items {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

/* grid tweaks per step */
.iqt-container[data-step="1"] .iqt-items {
    gap: 0;
}

.iqt-container[data-step="1"] .iqt-item--industry {
    padding: 18px 20px;
    /* justify-content: center; */
}

.iqt-container[data-step="3"] .iqt-items {
    display: block;
}

.iqt-container[data-step="3"] .iqt-step-content {
    padding: 0;
}

.iqt-item {
    display: flex;
    align-items: center;
    gap: 14px;
    /* border: 1px solid transparent; */
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s;
    color: var(--kal-black);
}

.iqt-item:hover {
    background: var(--kal-blue);
    color: var(--kal-white);
}

.iqt-item:hover .iqt-item-icon {
    background: none;
    fill: var(--kal-white);
    /* filter: invert(99%) sepia(1%) saturate(842%) hue-rotate(180deg) brightness(118%) contrast(100%); */
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Industries */

.iqt-item--industry {
    font-size: 16px;
    color: var(--kal-black);
}

.iqt-item--industry .iqt-item-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
}

.iqt-item--industry .iqt-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.iqt-item--industry.iqt-item--active {
    background: var(--kal-blue);
    color: var(--kal-white);
}

.iqt-item--industry.iqt-item--active .iqt-item-icon {
    filter: none;
}

/* Objectives */

.iqt-item--objective {
    /* border: 1px solid var(--kal-black);
    padding: 14px 18px;
    gap: 12px;
    width: 100%;
    background: #fff; */
    padding: 20px;
}

.iqt-item--objective:hover:not(.iqt-item--active) {
    /* background: #f4f1ff; */
}

.iqt-checkbox {
    width: 30px;
    height: 30px;
    border: 1px solid var(--kal-black);
    flex-shrink: 0;
    position: relative;
    background: var(--kal-white);
}

.iqt-checkbox::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 0px;
    width: 11px;
    height: 22px;
    border-right: 2px solid var(--kal-white);
    border-bottom: 2px solid var(--kal-white);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.iqt-item--objective .iqt-checkbox {
  background-color: white;
}

/* When the parent is hovered */
.iqt-item--objective:hover {
  background-color: var(--kal-blue);
}

.iqt-item--objective:hover .iqt-checkbox {
  background-color: var(--kal-blue);
  border-color: var(--kal-white);
}

.iqt-item--objective:hover .iqt-checkbox::after,
.iqt-item:hover .iqt-checkbox::after,
.iqt-checkbox:hover::after {
    opacity: 1;
}

.iqt-item--active .iqt-checkbox::after {
    opacity: 1;
    border-color: var(--kal-white);
}

.iqt-item--active.iqt-item--objective {
    background: var(--kal-blue);
    color: var(--kal-white);
}

.iqt-item--active.iqt-item--objective .iqt-item-title {
    color: var(--kal-white);
}

.iqt-container[data-step="2"] .iqt-item--objective {
    /* align-items: normal; */
}

.iqt-item--active.iqt-item--objective .iqt-checkbox {
    border-color: var(--kal-white);
    background: transparent;
}

.iqt-item-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: inherit;
    letter-spacing: -0.01em;
    /* line-height: 0.85; */
}

.iqt-item--industry .iqt-item-title {
    font-size: 18px;
    font-weight: 600;
}

.iqt-item-desc {
    display: none;
}


.iqt-result:hover {
    background: var(--kal-blue);
    color: var(--kal-white);
}

.iqt-result-copy {
    flex: 1;
}

.iqt-result:hover .iqt-result-tag {
    background: var(--kal-blue-light);
}

.iqt-result:hover .iqt-result-tag div:last-child {
    color: var(--kal-white);
}

.iqt-result:hover .iqt-learn-more {
    color: var(--kal-white);
}

/* RESULTS (step 3) ----------------------------------------------- */

.iqt-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: 40px; */
}


.iqt-result {
    position: relative;
    border: none; /* remove individual borders */
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
}

/* Remove right border for last column */
.iqt-result:nth-child(2n) {
    border-right: none;
}

/* Remove bottom border for last row */
.iqt-result:nth-last-child(-n + 2) {
    border-bottom: none;
}

.iqt-result-tag {
    float: right;
    max-height: 170px;
    max-width: 170px;
    background: var(--kal-grey);
    /* border: 2px solid #000; */
    text-align: center;
    padding: 12px;
    margin: 0 0 16px 24px;
}

.iqt-result-tag img {
    width: 85px;
    height: 85px;
    display: block;
    /* margin-top: 10px; */
}

/* NOTE: if this is still wrong then warp in a flex with col */
.iqt-copy-top {
    padding: 24.7px 21.8px 21.8px 21.8px;
}

.iqt-copy-top h3 {
    margin-top: 0;
    font-size: 30px;
}

.iqt-copy-top p {
    font-size: 18px;
}

.iqt-copy-bottom {
    clear: both;
    margin-bottom: 33.7px;
    padding: 0 21.8px;
}

.iqt-learn-more {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--kal-black);
}

.iqt-learn-more i {
    margin-left: 20px;       /* chevron exactly 20px to the right */
    font-size: 14px;         /* adjust size to match visual */
}

/* FOOTER CTA ------------------------------------------------------ */

.iqt-footer-cta {
    margin-top: 28px;
    text-align: left;
}

.iqt-footer-cta[hidden] {
    display: none;
}

.iqt-contact-btn {
    padding: 21px 36px;
    border-radius: 0;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--kal-black);
    background: var(--kal-green);
    border: none;
    letter-spacing: -0.01em;
    /* line-height: 0.85; */
}

.iqt-contact-btn:hover {
    color: var(--kal-black);
    background-color: var(--kal-violet);
    border-color: var(--kal-violet);
}

.iqt-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.iqt-modal[hidden] {
    display: none;
}

.iqt-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 10, 50, 0.65);
}

.iqt-modal-dialog {
    position: relative;
    background: var(--kal-white);
    border-radius: 16px;
    width: min(640px, calc(100% - 32px));
    max-height: calc(100% - 48px);
    padding: 32px;
    overflow: auto;
    border: 2px solid var(--kal-black);
    box-shadow: 0 24px 60px rgba(11, 5, 38, 0.35);
    z-index: 1;
}

.iqt-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 0;
    background: none;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    color: var(--kal-black);
}

.iqt-modal-content {
    margin-top: 12px;
}

body.iqt-modal-open {
    overflow: hidden;
}


@media (min-width: 1200px) {
    .iqt-step-header {
        grid-template-columns: minmax(0px, 1fr) 50%;
        display: grid;
    }
}
@media (max-width: 1200px) {
    .iqt-panel {
        grid-template-columns: minmax(0, 1fr) 214px;
    }

    .iqt-illustration-shell {
        max-height: 214px;
        max-width: 214px;
        /* padding: 10px; */
    }

    .iqt-illustration-canvas {
        position: relative;
        width: 164.27px;
        height: 164.27px;
    }

    .iqt-container[data-step="1"] .iqt-items {
         grid-template-columns: repeat(3, minmax(180px, 1fr));
    }

    .iqt-items {
        display: grid;
        grid-template-columns: repeat(2, minmax(180px, 1fr));
        /* gap: 12px 32px; */
    }
}

@media (max-width: 992px) {
    .iqt-container {
        /* padding: 24px; */
        /* margin: 30px auto; */
    }

    .iqt-panel {
        grid-template-columns: minmax(0, 1fr) 220px;
    }

    .iqt-panel-header {
        padding: 18px 20px;
    }

    .iqt-panel-body {
        /* padding: 18px 20px 24px; */
    }

    .iqt-illustration-shell {
        padding: 11.6px;
    }

    .iqt-container[data-step="1"] .iqt-items {
         grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .iqt-items {
        display: grid;
        grid-template-columns: repeat(2, minmax(180px, 1fr));
        /* gap: 12px 32px; */
    }

    .iqt-results {
        grid-template-columns: 1fr;
    }

    .iqt-result {
        border-right: none;
        border-bottom: 2px solid #000 !important;
    }

    .iqt-result:last-of-type {
         border-bottom: none !important;
    }
    
    .iqt-step-title {
        font-size: 30px;
        /* margin-bottom: 10.5px; */
    }

    .iqt-step-subtitle {
        font-size: 18px;
        padding: 0;
    }

    .iqt-back, .iqt-restart {
        font-size: 18px;
    }

    .iqt-summary-label, .iqt-summary-text {
        font-size: 20px;
    }

    .iqt-copy-top {
        padding: 26px 33px 21.9px 33px;
    }

    .iqt-copy-bottom {
        margin-bottom: 33.7px;
        padding: 0 33px;
    }
}


@media (max-width: 768px) {
     .iqt-panel {
        grid-template-columns: minmax(0, 1fr) 214px;
        grid-template-rows: auto auto;
        grid-template-areas:
            "header art"
            "body   body";
    }
    
    .iqt-results {
        grid-template-columns: 1fr;
    }

    .iqt-result {
        border-right: none;
        border-bottom: 2px solid #000 !important;
    }

    .iqt-result:last-of-type {
         border-bottom: none !important;
    }

    .iqt-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        /* gap: 10px 24px; */
    }

    .iqt-container[data-step="1"] .iqt-step-header {
        display: flex; 
    }

    .iqt-container[data-step="1"] .iqt-step-title {
        flex: auto;
        margin-bottom: 0;
    }

    .iqt-container[data-step="3"] .iqt-panel-header {
        align-items: initial
    }
    .iqt-panel-header {
        align-items: center
    }

    .iqt-step-header {
        display: block;
    }

    .iqt-step-title {
        margin-bottom: 9.1px;
    }

    .iqt-step-summary {
        flex-direction: column;
        gap: 0px;
    }
}

@media (max-width: 576px) {
    .iqt-container[data-step="1"] .iqt-items {
         grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .iqt-container[data-step="1"] .iqt-panel-header {
        padding: 30px 30px;
    }

    .iqt-container[data-step="1"] .iqt-panel-header .iqt-step-title {
        margin-bottom: 0;
    }

    .iqt-items {
        grid-template-columns: repeat(1, minmax(180px, 1fr));
        /* gap: 12px 32px; */
    }

    .services-tool-modal .modal-dialog .modal-content {
        padding: 50px 15px;
    }

    .iqt-topbar {
        /* flex-direction: column; */
        align-items: flex-start;
        gap: 8px;
    }

    .iqt-summary-pill {
        position: relative;
    }

    .iqt-summary-icon {
        position: absolute;
        left: -45px;
    }

    .iqt-step-summary {
        display: none;
        justify-content: flex-start;
    }

    .iqt-container[data-step="2"] .iqt-items {
        gap: 0;
    }

    .iqt-container[data-step="2"] .iqt-item--objective {
        padding: 18.5px 24px;
    }

    /* .iqt-container[data-step="2"] .iqt-item--objective:nth-child(4n + 1):not(:nth-last-child(-n + )),
    .iqt-container[data-step="2"] .iqt-item--objective:nth-child(4n + 2):not(:nth-last-child(-n + 2)) {
        padding-bottom: 0;
    } */

    .iqt-container[data-step="2"] .iqt-item--objective:not(:last-child) {
        padding-bottom: 0;
    }

    .iqt-container[data-step="1"] .iqt-step-header {
        display: block; 
    }

    .iqt-panel-header {
        padding: 16px 14px;
        border-bottom: none;
        display: flex;
        align-items: center;
    }

    .iqt-illustration-shell {
        border-bottom: none;
        padding: 14px;
        min-height: 100%;
    }

    .iqt-container[data-step="3"] .iqt-panel .iqt-panel-header {
        /* padding: 0; */
    }

    .iqt-panel {
        grid-template-columns: minmax(0, 1fr) 109px;
    }

    .iqt-copy-top {
        padding: 25.6px 21px 10px 21px;
    }

    .iqt-copy-bottom {
        margin-bottom: 25.6px;
        padding: 0 21px;
    }

    .iqt-illustration-shell {
        max-height: 109px;
        max-width: 109px;
    }

    .iqt-illustration-canvas {
        position: relative;
        width: 80px;
        height: 80px;
    }
    
    .iqt-panel-body {
        border-top: 2px solid var(--kal-black);
    }

    .iqt-step-title {
        font-size: 25px;
        /* line-height: 1.25; */
    }

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

    .iqt-item--industry {
        padding: 14px 10px;
    }

    .iqt-result {
        grid-template-columns: 1fr;
    }

    .iqt-result-side {
        width: 100%;
    }

    .iqt-step-content {
        padding: 0;
    }

    .iqt-step-content-inner {
        width: 100%;
    }

    .iqt-contact-btn {
        min-width: unset !important;
    }
}

@media (max-width: 412px) {
    .iqt-container[data-step="1"] .iqt-items {
         grid-template-columns: repeat(1, minmax(180px, 1fr));
    }

    .iqt-items {
        grid-template-columns: repeat(1, minmax(180px, 1fr));
        /* gap: 12px 32px; */
    }
    
    /* .iqt-illustration-shell {
        min-height: auto
    }; */
}