/* Home: "Find Your Perfect Tech Solution" wizard (home.php) — CSS only.
   Wizard JS unchanged (is-active / is-complete / is-selected / tsf-has-selection / tsf-is-form-step).
   Re-themes the purple wizard to the site palette (neutral + orange) and adds motion. */

#tech-solution-finder {
    --tsf-purple: #111;
    --tsf-purple-dark: #000;
    --tsf-indigo: #111114;
    --tsf-border: #e6e2db;
    --tsf-orange: #ff9f0a;
    --tsf-orange-ink: #c76a00;
    position: relative;
    padding: 110px 0 !important;
    background: #fff !important;
    overflow: hidden;
}

#tech-solution-finder::before,
#tech-solution-finder::after {
    display: none !important;
}

#tech-solution-finder .tsf-container {
    max-width: 1320px !important;
    padding: 0 24px !important;
}

/* ---------- head: title left, copy right ---------- */
#tech-solution-finder .tsf-header {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    grid-template-areas:
        "badge badge"
        "title sub";
    align-items: end;
    column-gap: 64px;
    margin: 0 0 56px !important;
    text-align: left !important;
}

#tech-solution-finder .tsf-badge {
    grid-area: badge;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    color: var(--tsf-orange-ink) !important;
    font-family: var(--medium);
    font-size: 13px !important;
    letter-spacing: .12em;
}

#tech-solution-finder .tsf-badge i {
    color: var(--tsf-orange);
    font-size: 16px;
}

#tech-solution-finder .tsf-header .h2 {
    grid-area: title;
    margin: 0 !important;
    color: #111 !important;
    font-size: 52px !important;
    line-height: 1.1 !important;
    letter-spacing: -.03em;
}

#tech-solution-finder .tsf-highlight {
    color: #111 !important;
    background: linear-gradient(transparent 62%, rgba(255, 159, 10, .35) 62%, rgba(255, 159, 10, .35) 92%, transparent 92%);
    -webkit-text-fill-color: currentColor !important;
}

#tech-solution-finder .tsf-subtitle {
    grid-area: sub;
    max-width: none !important;
    margin: 0 !important;
    color: #55524c !important;
    font-size: 17px !important;
    line-height: 1.75 !important;
    text-align: left !important;
}

/* ---------- layout ---------- */
#tech-solution-finder .tsf-layout {
    gap: 24px !important;
    align-items: stretch;
}

/* wizard card */
#tech-solution-finder .tsf-wizard-card {
    overflow: hidden;
    border: 1px solid var(--tsf-border) !important;
    border-radius: 24px !important;
    background: #fff !important;
    box-shadow: none !important;
}

#tech-solution-finder .tsf-steps-nav {
    background: #f7f5f1 !important;
    border-right: 1px solid var(--tsf-border) !important;
}

/* steps */
#tech-solution-finder .tsf-step-item:not(:last-child)::after {
    background: #e2ddd4 !important;
}

#tech-solution-finder .tsf-step-item.is-complete:not(:last-child)::after {
    background: var(--tsf-orange) !important;
}

#tech-solution-finder .tsf-step-marker {
    border: 1px solid #d9d4cb !important;
    background: #fff !important;
    color: #6b675f !important;
    transition: background .35s ease, border-color .35s ease, color .35s ease, transform .35s ease;
}

#tech-solution-finder .tsf-step-item.is-active .tsf-step-marker {
    border-color: #111 !important;
    background: #111 !important;
    color: #fff !important;
    transform: scale(1.08);
    box-shadow: 0 0 0 5px rgba(17, 17, 17, .08);
}

#tech-solution-finder .tsf-step-item.is-complete .tsf-step-marker {
    border-color: var(--tsf-orange) !important;
    background: var(--tsf-orange) !important;
    color: #111 !important;
}

#tech-solution-finder .tsf-step-title {
    color: #111 !important;
}

#tech-solution-finder .tsf-step-item.is-active .tsf-step-title {
    color: #111 !important;
    font-family: var(--bold);
}

#tech-solution-finder .tsf-step-item:not(.is-active):not(.is-complete) .tsf-step-title {
    color: #6b675f !important;
}

#tech-solution-finder .tsf-step-copy small {
    color: #8a857c !important;
}

/* question */
#tech-solution-finder .tsf-question {
    color: #111 !important;
    font-family: var(--bold);
    letter-spacing: -.01em;
}

/* options */
#tech-solution-finder .tsf-option-card {
    border: 1px solid var(--tsf-border) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: none !important;
    transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease !important;
}

#tech-solution-finder .tsf-option-card:hover {
    border-color: #111 !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(17, 17, 17, .06) !important;
}

#tech-solution-finder .tsf-option-icon {
    border-radius: 12px !important;
    background: #f5f3ef !important;
    color: #111 !important;
    transition: background .25s ease, color .25s ease, transform .35s ease;
}

#tech-solution-finder .tsf-option-card:hover .tsf-option-icon {
    transform: scale(1.06);
}

#tech-solution-finder .tsf-option-label {
    color: #24221f !important;
    font-family: var(--medium);
}

#tech-solution-finder .tsf-option-card.is-selected {
    border-color: #111 !important;
    background: #fbfaf7 !important;
    box-shadow: 0 0 0 1px #111 !important;
}

#tech-solution-finder .tsf-option-card.is-selected .tsf-option-icon {
    background: #111 !important;
    color: var(--tsf-orange) !important;
}

#tech-solution-finder .tsf-option-check {
    background: var(--tsf-orange) !important;
    color: #111 !important;
}

#tech-solution-finder .tsf-option-card.is-selected .tsf-option-check {
    animation: tsfPop .35s cubic-bezier(.34, 1.56, .64, 1) both;
}

/* "other" input */
#tech-solution-finder .tsf-other-inner {
    border-color: var(--tsf-border) !important;
    background: #f7f5f1 !important;
}

#tech-solution-finder .tsf-other-input:focus {
    border-color: #111 !important;
    box-shadow: 0 0 0 3px rgba(255, 159, 10, .2) !important;
    outline: none;
}

/* nav buttons */
#tech-solution-finder .tsf-nav {
    border-top-color: var(--tsf-border) !important;
}

#tech-solution-finder .tsf-btn {
    border-radius: 999px !important;
}

#tech-solution-finder .tsf-btn-back {
    border: 1px solid var(--tsf-border) !important;
    background: #fff !important;
    color: #111 !important;
}

#tech-solution-finder .tsf-btn-back:hover:not(:disabled) {
    border-color: #111 !important;
    color: #111 !important;
}

#tech-solution-finder .tsf-btn-skip {
    color: #6b675f !important;
}

#tech-solution-finder .tsf-btn-skip:hover:not(:disabled) {
    color: #111 !important;
}

#tech-solution-finder .tsf-btn-next {
    background: #111 !important;
    color: #fff !important;
    box-shadow: none !important;
    transition: background .3s ease, color .3s ease, transform .3s ease !important;
}

#tech-solution-finder .tsf-btn-next:hover:not(:disabled) {
    background: var(--tsf-orange) !important;
    color: #111 !important;
}

#tech-solution-finder .tsf-btn-next i {
    transition: transform .3s ease;
}

#tech-solution-finder .tsf-btn-next:hover i {
    transform: translateX(4px);
}

#tech-solution-finder .tsf-nav-step-text,
#tech-solution-finder .tsf-nav-step-text strong {
    color: #111 !important;
}

#tech-solution-finder .tsf-error {
    border-radius: 12px !important;
}

/* mobile progress */
#tech-solution-finder .tsf-mobile-progress__track {
    background: #ebe7e0 !important;
}

#tech-solution-finder .tsf-mobile-progress__fill {
    background: var(--tsf-orange) !important;
    transition: width .5s cubic-bezier(.65, 0, .35, 1) !important;
}

#tech-solution-finder .tsf-mobile-progress__label,
#tech-solution-finder .tsf-mobile-progress__name {
    color: #111 !important;
}

/* ---------- result card: dark ---------- */
#tech-solution-finder .tsf-result-card {
    border: 0 !important;
    border-radius: 24px !important;
    background: #111114 !important;
    box-shadow: none !important;
}

#tech-solution-finder .tsf-result-visual {
    top: 22px !important;
    right: 22px !important;
    width: 56px !important;
    height: 56px !important;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
}

#tech-solution-finder .tsf-result-visual .ti {
    color: var(--tsf-orange) !important;
    font-size: 28px !important;
}

#tech-solution-finder .tsf-result-glow {
    display: none !important;
}

#tech-solution-finder .tsf-result-eyebrow {
    color: rgba(255, 255, 255, .6) !important;
}

#tech-solution-finder .tsf-result-eyebrow i {
    color: var(--tsf-orange) !important;
}

#tech-solution-finder .tsf-match-badge {
    border: 1px solid rgba(255, 159, 10, .4) !important;
    background: rgba(255, 159, 10, .12) !important;
    color: var(--tsf-orange) !important;
}

#tech-solution-finder .tsf-result-title {
    color: #fff !important;
}

#tech-solution-finder .tsf-result-desc {
    color: rgba(255, 255, 255, .7) !important;
}

#tech-solution-finder .tsf-result-meta li {
    border-color: rgba(255, 255, 255, .08) !important;
    color: rgba(255, 255, 255, .78) !important;
}

#tech-solution-finder .tsf-result-meta li i {
    color: var(--tsf-orange) !important;
}

#tech-solution-finder .tsf-result-meta strong {
    color: #fff !important;
}

#tech-solution-finder .tsf-result-cta {
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--tsf-orange) !important;
    color: #111 !important;
    box-shadow: none !important;
    transition: background .3s ease, color .3s ease !important;
}

#tech-solution-finder .tsf-result-cta:hover {
    background: #fff !important;
    color: #111 !important;
}

#tech-solution-finder .tsf-result-cta i {
    color: inherit !important;
    transition: transform .3s ease;
}

#tech-solution-finder .tsf-result-cta:hover i {
    transform: translateX(4px);
}

#tech-solution-finder .tsf-result-note {
    color: rgba(255, 255, 255, .55) !important;
}

#tech-solution-finder .tsf-result-note i {
    color: var(--tsf-orange) !important;
}

/* result text refreshes softly when a choice changes */
#tech-solution-finder .tsf-result-card.tsf-has-selection [data-tsf-result="title"] {
    animation: tsfFade .5s ease both;
}

/* form step inputs (Include/form.php) */
#tech-solution-finder .tsf-form-wrap input,
#tech-solution-finder .tsf-form-wrap textarea,
#tech-solution-finder .tsf-form-wrap select {
    border-color: var(--tsf-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #111 !important;
}

#tech-solution-finder .tsf-form-wrap input:focus,
#tech-solution-finder .tsf-form-wrap textarea:focus {
    border-color: #111 !important;
    box-shadow: 0 0 0 3px rgba(255, 159, 10, .2) !important;
    outline: none;
}

/* ---------- motion ---------- */
/* options rise in one by one whenever a step opens */
#tech-solution-finder .tsf-panel.is-active .tsf-question {
    animation: tsfUp .55s cubic-bezier(.22, 1, .36, 1) both;
}

#tech-solution-finder .tsf-panel.is-active .tsf-option-card {
    animation: tsfUp .55s cubic-bezier(.22, 1, .36, 1) both;
}

#tech-solution-finder .tsf-panel.is-active .tsf-option-card:nth-child(1) { animation-delay: .06s; }
#tech-solution-finder .tsf-panel.is-active .tsf-option-card:nth-child(2) { animation-delay: .1s; }
#tech-solution-finder .tsf-panel.is-active .tsf-option-card:nth-child(3) { animation-delay: .14s; }
#tech-solution-finder .tsf-panel.is-active .tsf-option-card:nth-child(4) { animation-delay: .18s; }
#tech-solution-finder .tsf-panel.is-active .tsf-option-card:nth-child(5) { animation-delay: .22s; }
#tech-solution-finder .tsf-panel.is-active .tsf-option-card:nth-child(6) { animation-delay: .26s; }
#tech-solution-finder .tsf-panel.is-active .tsf-option-card:nth-child(7) { animation-delay: .3s; }
#tech-solution-finder .tsf-panel.is-active .tsf-option-card:nth-child(8) { animation-delay: .34s; }

#tech-solution-finder .tsf-panel.is-active.tsf-panel-back .tsf-option-card {
    animation-name: tsfUpBack;
}

@keyframes tsfUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes tsfUpBack {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: none; }
}

@keyframes tsfPop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

@keyframes tsfFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* the cpu tile breathes slowly */
#tech-solution-finder .tsf-result-visual .ti {
    animation: tsfBreathe 3.2s ease-in-out infinite;
}

@keyframes tsfBreathe {
    0%, 100% { opacity: .75; }
    50% { opacity: 1; }
}

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    #tech-solution-finder .tsf-header .h2 {
        font-size: 42px !important;
    }
}

@media (max-width: 991px) {
    #tech-solution-finder {
        padding: 80px 0 !important;
    }

    #tech-solution-finder .tsf-container {
        padding: 0 20px !important;
    }

    #tech-solution-finder .tsf-header {
        grid-template-columns: 1fr;
        grid-template-areas:
            "badge"
            "title"
            "sub";
        row-gap: 16px;
        margin-bottom: 36px !important;
    }

    #tech-solution-finder .tsf-badge {
        margin-bottom: 2px !important;
    }

    #tech-solution-finder .tsf-header .h2 {
        font-size: 34px !important;
    }
}

@media (max-width: 575px) {
    #tech-solution-finder {
        padding: 56px 0 !important;
    }

    #tech-solution-finder .tsf-container {
        padding: 0 16px !important;
    }

    #tech-solution-finder .tsf-header .h2 {
        font-size: 27px !important;
    }

    #tech-solution-finder .tsf-subtitle {
        font-size: 15px !important;
    }

    #tech-solution-finder .tsf-wizard-card,
    #tech-solution-finder .tsf-result-card {
        border-radius: 18px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #tech-solution-finder .tsf-panel.is-active .tsf-question,
    #tech-solution-finder .tsf-panel.is-active .tsf-option-card,
    #tech-solution-finder .tsf-option-card.is-selected .tsf-option-check,
    #tech-solution-finder .tsf-result-visual .ti,
    #tech-solution-finder .tsf-result-card.tsf-has-selection [data-tsf-result="title"] {
        animation: none !important;
    }
}

/* head spans the full container (legacy capped it) */
#tech-solution-finder .tsf-header {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#tech-solution-finder .tsf-header .h2 {
    max-width: 720px !important;
}
