/**
 * Solutions Selector — Hykmah
 * Stylesheet for the multi-step wizard UI. Pixel-matched from Figma exports.
 *
 * Table of contents:
 *   1. Reset           — box-model, typography baseline
 *   2. Top nav         — fixed header bar
 *   3. Progress line   — thin fill bar below nav
 *   4. Page layout     — centred scrollable content area
 *   5. Card            — white content container
 *   6. Option rows     — shared radio + checkbox interaction styles
 *   7. Category label  — uppercase section dividers within a screen
 *   8. Info note       — left-bordered callout box
 *   9. Bottom nav      — fixed footer with Back / Next buttons
 *  10. Screen visibility — display toggling + slide animations
 *  11. Validation hint — inline error message
 *  12. Result screen   — tier strip, product cards, callouts, CTAs
 *  13. Utilities       — .hidden
 *  14. Responsive      — ≤640px overrides
 */

.take-the-solutions-selector-page {
    margin-top: -70px;
}

/* ------------------------------------------------------------
   TOP NAV
   ------------------------------------------------------------ */
.wiz-nav {
  height: 64px;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  max-width: 120px;
  height: auto;
}

.nav-badge {
  font-size: 13px;
  font-weight: 500;
  color: #303030;
  border-radius: 6px;
  padding: 5px 10px 7px;
  flex-shrink: 0;
  line-height: 20px;
  border: 1px solid #DADCE0;
}

.nav-step {
  font-size: 14px;
  color: rgba(48, 48, 48, 0.50);
  font-weight: 500;
  flex-shrink: 0;
  line-height: 20px;
}

.nav-spacer { flex: 1; }

.nav-lang {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.80);
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 18px;
  display: none;
}
.nav-close:focus,
.nav-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  border-radius: 6px;
  transition: background 150ms;
  flex-shrink: 0;
  box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
  border: 1px solid rgba(217, 217, 217, 1);
  background: rgba(255, 255, 255, 1);
  padding: 8px;
}
.nav-close:hover { background: #F3F4F6; color: #111827; }

/* ------------------------------------------------------------
   PROGRESS LINE
   ------------------------------------------------------------ */
.progress-line {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  height: 4px;
  background: #DAD8E3;
  z-index: 100;
}

.progress-line__fill {
  height: 100%;
  background: linear-gradient(115.85deg, #2802FF 20.51%, #000000 86.94%);
  transition: width 350ms cubic-bezier(0.4,0,0.2,1);
  width: 0%;
}

/* ------------------------------------------------------------
   PAGE LAYOUT
   ------------------------------------------------------------ */
.wiz-page {
  height: calc(100vh - 132px);
  max-height: calc(100vh - 132px);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #EBEBEB;
  overflow: hidden;
  overflow-y: auto;
}

/* ------------------------------------------------------------
   CARD
   ------------------------------------------------------------ */
.wiz-card {
  width: 100%;
  max-width: 100%;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 24px 30px;
  box-shadow: 0px 1px 0px 0px rgba(26, 26, 26, 0.07), 0px 1px 0px 0px rgba(204, 204, 204, 0.5) inset, 0px -1px 0px 0px rgba(0, 0, 0, 0.17) inset, -1px 0px 0px 0px rgba(0, 0, 0, 0.13) inset, 1px 0px 0px 0px rgba(0, 0, 0, 0.13) inset;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #181D27;
  line-height: 20px;
  margin: 0 0 4px;
}

.card-subtitle {
  font-size: 13px;
  color: #717680;
  margin-bottom: 24px;
  line-height: 16px;
}

/* ------------------------------------------------------------
   OPTION ROWS — Radio & Checkbox
   ------------------------------------------------------------ */
.opt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt-row {
  display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease 0s;
    user-select: none;
    border: 1px solid #EBEBEB;
}

.opt-row:hover {
  	border-color: rgba(96, 73, 231, 0.5);
    box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.15);
}

.opt-row.is-selected {
      border-color: #3040CF;
}

/* Radio dot */
.opt-radio {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  background: #FDFDFD;
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 150ms;
  flex-shrink: 0;
  border: 1px solid #8A8A8A;
}
.top-m-2 .opt-radio {
  margin-top: 2px;
}

.opt-row.is-selected .opt-radio {
  background: #fff;
  border: 4px solid #3040CF;
}

/* Checkbox box */
.opt-check {
  width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 4px;
    border: 1px solid #8A8A8A;
    background: #FDFDFD;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 150ms;
    flex-shrink: 0;
}
.current-tools-list-wrap .opt-check{
  margin-top: 5px;
}
.top-m-4 .opt-check,
.portals-list-wrap .opt-check,
.other-integrations-list-wrap .opt-check{
  margin-top: 4px;
}

.opt-row.is-selected .opt-check {
  background: #4F46E5;
  border-color: #4F46E5;
}

.opt-check-icon {
  display: none;
  width: 10px;
  height: 10px;
  margin-top: -2px;
}

.opt-row.is-selected .opt-check-icon {
  display: block;
}

.opt-body { flex: 1; min-width: 0; }

.opt-label {
  font-size: 15px;
  font-weight: 600;
  color: #111111;
  line-height: 25px;
  margin: 0 0 4px;
}

.opt-desc {
  font-size: 13px;
  color: #717680;
  line-height: 16px;
  margin: 0;
}

/* ------------------------------------------------------------
   CATEGORY LABEL (Solution Areas, Current Environment)
   ------------------------------------------------------------ */
.cat-label {
      font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    margin: 0 0 10px;
    line-height: 15px;
  margin: 20px 0 10px;
}

.cat-label:first-child { margin-top: 0; }

/* 2-column grid for solution areas */
.opt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.opt-grid .opt-row {
      padding: 11px 14px;
}

.opt-grid .opt-label {
  font-size: 13px;
    font-weight: 450;
    line-height: 20px;
  margin: 0;
}

/* ------------------------------------------------------------
   INFO NOTE BOX
   ------------------------------------------------------------ */
.info-note {
  border-left: 3px solid #4F46E5;
  background: #EEF2FF;
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  font-size: 13px;
  color: #111827;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ------------------------------------------------------------
   BOTTOM NAV (fixed footer)
   ------------------------------------------------------------ */
.wiz-footer {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #FFFFFF;
  box-shadow: 0px -6px 2px 0px rgba(0, 0, 0, 0.02);
}
.btn-back:focus,
.btn-back {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease 0s;
  line-height: 18px;
  padding: 10px 12px 12px 0;
  width: auto;
}
.btn-back:hover {
  opacity: 0.7;
  background-color: transparent;
  color: #000;
}
.btn-back svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.btn-next:focus,
.btn-next {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  background: #111827;
  border-radius: 50px;
  padding: 10px 33px 12px;
  border: none;
  cursor: pointer;
  transition: all ease-in-out 0.2s;
  white-space: nowrap;
  line-height: 18px;
  width: auto;
  max-width: 100%;
}
.btn-next:not(:disabled):hover svg {
    transform: translateX(5px);
}
.btn-next:not(:disabled):hover {
  text-decoration: none;
  background: #272727;
  border-color: #272727;
  color: #fff;
}
.btn-next:disabled {color: #000000; opacity: 0.35; cursor: not-allowed; }
.btn-next svg {
  margin-top: 2px;
  transition: all ease-in-out 0.2s;
  flex-shrink: 0;
}
.btn-secondary:focus,
.btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    background: transparent;
    border: 1.5px solid #E5E7EB;
    border-radius: 999px;
    padding: 10px 22px;
    cursor: pointer;
    transition: border-color 150ms, background 150ms;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
  white-space: nowrap;
}
.btn-secondary:hover {
   border-color: #111827;
    background: #F9FAFB;
    color: #111827;
}

.btn-start-over {
      display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease 0s;
    line-height: 18px;
    padding: 10px 12px 12px 0;
    width: auto;
}
.btn-start-over:hover {
  opacity: 0.7;
    background-color: transparent;
    color: #000;
}

/* ------------------------------------------------------------
   SCREEN visibility
   ------------------------------------------------------------ */
.screen {
  display: none; 
  width: 100%; 
  max-width: 750px; 
}
[data-screen="result"] { 
      max-width: 860px;
}

/* result card inherits the screen width — no need to cap again */
.screen.is-active {
  display: block;
  animation: slideInRight 300ms ease-out both;
}
.screen.is-active.dir-backward {
  animation: slideInLeft 300ms ease-out both;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ------------------------------------------------------------
   VALIDATION HINT
   ------------------------------------------------------------ */
.val-hint {
  font-size: 12px;
  color: #DC2626;
  margin-top: 8px;
  display: none;
  font-weight: 500;
}
.val-hint.show { display: block; }

/* ------------------------------------------------------------
   RESULT SCREEN
   ------------------------------------------------------------ */
.result-card {
  padding-bottom: 0;
  overflow: hidden;
}

.result-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C084FC 0%, #E879F9 40%, #F9A8D4 70%, #FCD34D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.result-icon svg {
  color: white;
      margin-top: 4px;
}

.result-title {
      font-size: 24px;
    font-weight: 600;
    color: #181D27;
    text-align: center;
    margin-bottom: 6px;
    line-height: 24px;
}

.result-subtitle {
  font-size: 13px;
    color: #717680;
    text-align: center;
    margin-bottom: 20px;
    line-height: 16px;
}

/* Tier strip — "Recommended Tier" pill floats above the active column */
.tier-strip-wrap {
  max-width: 100%;
    overflow: auto;
}
.tier-rec-label {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-width: 602px;
}

.tier-rec-pill {
    grid-column: var(--tier-active-col, 3);
    justify-self: center;
    font-size: 13px;
    font-weight: 600;
    color: #3040CF;
    background: rgba(245, 242, 252, 1);
    border: 1px solid #DDD6FE;
    border-radius: 12px 12px 0 0;
    padding: 3px 9px 5px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    line-height: 16px;
    width: calc(100% - 7.5px);
    box-shadow: 0px -1px 14px 0px #0000000A inset;
    border-bottom: 0;
    margin-left: 3px;
      text-align: center;
}

.tier-row {
  display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    margin-bottom: 8px;
    gap: 10px;
  min-width: 602px;
}

.tier-cell {
    padding: 12px 17px;
    text-align: center;
    transition: background 150ms;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
}
.tier-cell.is-active {
  border-radius: 0 0 10px 10px;
}

.tier-cell__name {
      font-size: 16px;
    font-weight: 500;
    color: rgba(54, 65, 83, 0.80);
    display: block;
    margin-bottom: 4px;
    line-height: 24px;
}

.tier-cell__price {
      font-size: 14px;
    color: rgba(106, 114, 130, 1);
    display: block;
    font-weight: 500;
    line-height: 20px;
}

.tier-cell.is-active .tier-cell__name {
  color: rgba(26, 32, 44, 1);
}

.tier-cell.is-active .tier-cell__price {
  color:rgba(26, 32, 44, 1);
}

/* Discovery call notice */
.discovery-notice {
  background: #FFFCFA;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 15px;
    font-style: italic;
    color: #1A202C;
    line-height: 25px;
  margin-top: 14px;
    margin-bottom: 20px;
    border: 1px solid #FFEADB;
    font-weight: 400;
}

.discovery-notice strong {
  font-weight: 600;
}

/* Section label */
.section-label {
  font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(26, 32, 44, 0.80);
    margin-bottom: 10px;
    line-height: 15px;
}

.section-label:first-child { margin-top: 0; }

/* Product card */
.product-card {
      border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(229, 231, 235, 1);
    background: linear-gradient(92.11deg, rgba(250, 235, 220, 0.1) 0.3%, rgba(217, 205, 244, 0.1) 96.93%);
}

.product-card__name {
  font-size: 24px;
    font-weight: 600;
    color: #1A202C;
    margin-bottom: 12px;
    line-height: 24px;
}

.product-card__row {
      font-size: 14px;
    color: #1A202C;
    line-height: 17px;
    margin-bottom: 10px;
}

.product-card__row strong {
      color: #1A202C;
    font-weight: 600;
}
.product-card__row:last-child {
      margin-bottom: 0;
}

/* Integration / custom component checklist */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #6B7280;
  line-height: 1.5;
  padding: 8px 12px;
}
.integration-list-wrap.check-list {
    margin-bottom: 20px;
}
.check-item {
    padding: 0 0 8px 0;
}

.check-list#customList {
  margin-bottom: 16px;
}
.check-item.is-custom {
  background: #FAF5FF;
  border-radius: 5px;
  color: #364153;
  font-size: 16px;
  line-height: 24px;
  padding: 7px 12px 9px;
}

.check-item__icon {
  color: #155DFC;
    flex-shrink: 0;
    margin-top: 4px;
}

/* View product link — edge-to-edge at bottom of result card */
.result-cta-bar:not(:empty) {
  margin: 8px -32px 0;
}
.result-cta-bar .view-product-btn {
  border-radius: 0;
}
.result-cta-bar .view-product-btn:last-child {
  border-radius: 0 0 12px 12px;
}

.view-product-btn {
  border: none;
    border-top: 1px solid #E5E7EB;
    border-radius: 0;
    padding: 13px 32px 17px;
    font-size: 15px;
    font-weight: 600;
    color: #0A0A0A;
    background: #fff;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background 150ms;
    line-height: 24px;
    width: calc(100% + 0px);
    max-width: calc(100% + 0px);
    height: 44px;
  
}
.view-product-btn svg {
      margin-top: 2px;
  transition: all 0.3s ease 0s;
}
.view-product-btn:hover svg{
  transform: translateX(5px);
}
.view-product-btn:hover {
  text-decoration: none;
    background: #272727;
    border-color: #272727;
    color: #fff;
}

/* Ecosystem callout */
.ecosystem-box {
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #111827;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* Enterprise notice */
.enterprise-box {
  border-radius: 10px;
    padding: 20px;
    font-size: 14px;
    color: #1A202C;
    line-height: 22px;
    margin-bottom: 20px;
    border: 1px solid #E5E7EB;
    background: linear-gradient(92.11deg, rgba(250, 235, 220, 0.1) 0.3%, rgba(217, 205, 244, 0.1) 96.93%);
}

.result-cta-bar:empty { display: none; }

/* Utility */
.hidden { display: none !important; }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .wiz-card { padding: 20px 16px 20px; max-width: 100%; }
  .wiz-card.result-card {
    padding-bottom: 0;
  }
  .wiz-nav {
    padding: 0 15px;
    gap: 9px;
  }
  .nav-logo img {
    max-width: 80px;
  }
  .nav-badge {
    font-size: 12px;
    padding: 5px 8px 7px;
  }
  .nav-step {
    font-size: 12px;
  }
  .wiz-page {
    height: calc(100vh - 132px);
    max-height: calc(100vh - 132px);
    padding: 20px 15px;
  }
  .screen { max-width: 100%; }
  .opt-grid { grid-template-columns: 1fr; }
  .tier-cell { border-bottom: 1px solid #E5E7EB; }
  .wiz-footer { padding: 0 16px; }
  .result-cta-bar { margin-left: -16px; margin-right: -16px; margin-bottom: -24px; }
}
@media (max-width: 575px) {
  .btn-back,
  .btn-start-over,
  .btn-next {
    font-size: 13px;
  }
  .wiz-footer .btn-secondary {
    display: none;
  }
}
