/* New KeyNest wizard — step content, store card, choices, ranges (shell in kn-modal.css) */

/* Wizard steps */
.nk-step {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-start;
  padding: 12px;
  width: 100%;
  box-sizing: border-box;
}

.nk-step.is-active {
  display: flex;
}

.nk-step.is-complete {
  display: flex;
}

.nk-step.is-complete .nk-step__content{
  gap:0;
}

.nk-step__num {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  width: 24px;
  padding-top: 2px;
  flex-shrink: 0;
}

.nk-step__num-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 20px;
  background: #2e2a25;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  box-sizing: border-box;
}

.nk-step.is-complete .nk-step__num-badge {
  background: #95938f;
}

.nk-step__content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nk-step__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
  color: #2e2a25;
}

.nk-step.is-complete .nk-step__title {
  color: #95938f;
}

.nk-step__answer {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.34;
  color: #95938f;
}

.nk-step.is-complete .nk-step__fields {
  display: none;
}

.nk-step.is-complete .nk-step__desc {
  display: none;
}

.nk-step:not(.is-complete) .nk-step__answer {
  display: none;
}

.nk-step__fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.nk-search-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

/* Search field — Figma 35:8744 */
.nk-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  padding: 5px 8px 5px 16px;
  border: 1px solid #ddddda;
  border-radius: 20px;
  background: #ffffff;
  box-sizing: border-box;
}

.nk-search__icon {
  display: block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.nk-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.34;
  color: #2e2a25;
}

.nk-search__input::placeholder {
  color: #2e2a25;
  opacity: 1;
}

/* Text field — Figma email/name */
.nk-field {
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  padding: 6px 12px;
  border: 1px solid #ddddda;
  border-radius: 10px;
  background: #fafaf8;
  box-sizing: border-box;
}

.nk-field__input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: normal;
  color: #2e2a25;
}

.nk-field__input::placeholder {
  color: #95938f;
  font-weight: 500;
  letter-spacing: 0.525px;
  text-transform: uppercase;
}

.nk-field--textarea {
  height: auto;
  min-height: 96px;
  align-items: flex-start;
  padding: 12px;
}

.nk-field--textarea .nk-field__input {
  resize: vertical;
  min-height: 72px;
}

/* Remove browser autofill blue tint — match field backgrounds */
.new-keynest-sheet input:-webkit-autofill,
.new-keynest-sheet input:-webkit-autofill:hover,
.new-keynest-sheet input:-webkit-autofill:focus,
.new-keynest-sheet input:-webkit-autofill:active,
.new-keynest-sheet textarea:-webkit-autofill,
.new-keynest-sheet textarea:-webkit-autofill:hover,
.new-keynest-sheet textarea:-webkit-autofill:focus,
.new-keynest-sheet textarea:-webkit-autofill:active {
  font-family: 'Poppins', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  -webkit-text-fill-color: #2e2a25 !important;
  caret-color: #2e2a25;
  transition: background-color 5000s ease-in-out 0s;
  box-shadow: 0 0 0 1000px #fafaf8 inset !important;
}

.new-keynest-sheet .nk-search__input:-webkit-autofill,
.new-keynest-sheet .nk-search__input:-webkit-autofill:hover,
.new-keynest-sheet .nk-search__input:-webkit-autofill:focus,
.new-keynest-sheet .nk-search__input:-webkit-autofill:active {
  font-weight: 600 !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
}

.new-keynest-sheet .iti__tel-input:-webkit-autofill,
.new-keynest-sheet .iti__tel-input:-webkit-autofill:hover,
.new-keynest-sheet .iti__tel-input:-webkit-autofill:focus,
.new-keynest-sheet .iti__tel-input:-webkit-autofill:active {
  box-shadow: 0 0 0 1000px #fafaf8 inset !important;
}

.new-keynest-sheet input:autofill,
.new-keynest-sheet textarea:autofill {
  font-family: 'Poppins', sans-serif !important;
  color: #2e2a25 !important;
}

/* Nearby store card — Figma 35:8785 */
.nk-store-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 16px 12px;
  border: 1px solid #e7e7e5;
  border-radius: 10px;
  background: #ffffff;
  box-sizing: border-box;
}

.nk-store-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.nk-store-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.nk-store-card__name {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: normal;
  color: #2e2a25;
}

.nk-store-card .kn-btn-md {
  align-self: flex-start;
}

.nk-store-card__address {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.34;
  color: #2e2a25;
}

.nk-store-card__hours {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.34;
  color: #2e2a25;
  white-space: pre-line;
}

/* Choice chips — Figma 35-8786 / 35-9069 / 35-9132 (Steps 2, 9 & 10) */
.nk-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  align-items: flex-start;
}

.nk-choice {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 0;
  padding: 5px 10px 5px 5px;
  border-radius: 17px;
  background: #f2f2ef;
  cursor: pointer;
  position: relative;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

.nk-choice--full {
  width: 100%;
}

.nk-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nk-choice__icon {
  width: 24px;
  height: 23px;
  flex-shrink: 0;
  background: url(../images/unchecked-small.svg) no-repeat center / 24px 23px;
}

.nk-choice__text {
  flex: 1 1 0;
  min-width: 0;
  min-height: 23px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
  color: #615e5a;
}

.nk-choice input:checked ~ .nk-choice__icon {
  background-image: url(../images/check-small.svg);
}

.nk-choice input:checked ~ .nk-choice__text {
  color: #ffffff;
}

.nk-choice:has(input:checked) {
  background: #00b288;
}

/* Distance slider bubble — Figma 35-9037 / 35-10282 */
.nk-range__bubble--distance {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 24px;
  min-width: 32px;
  padding: 2px 12px;
  line-height: normal;
}

.nk-range__bubble--distance .nk-range__bubble-value {
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
  color: #2e2a25;
}
.nk-range__bubble-value{
  margin-right: 2px;
}
.nk-range__bubble--distance .nk-range__bubble-suffix {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.0325px;
  line-height: normal;
  color: #2e2a25;
}

/* Phone — reuse subuser intl-tel styles (from style.css, scoped to wizard) */
.new-keynest-sheet .custom-input-tele {
  width: 100%;
}

.new-keynest-sheet .iti {
  width: 100%;
}

.new-keynest-sheet .iti__arrow,
.new-keynest-sheet .iti__search-clear,
.new-keynest-sheet .iti__search-icon {
  display: none !important;
}

.new-keynest-sheet .custom-input-tele .iti__country-container {
  top: 9px;
}

.new-keynest-sheet .custom-input-tele .iti__country-container .iti__selected-country {
  display: flex;
  padding: 6px 8px;
  align-items: center;
  border-radius: 10px;
  border: 1px solid #e7e7e5;
  background: #fff;
  height: 30px;
  margin-left: 8px;
}

.new-keynest-sheet .custom-input-tele .iti__selected-country-primary {
  padding: 0;
}

.new-keynest-sheet .iti__selected-dial-code {
  color: #2e2a25;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.525px;
  text-transform: uppercase;
}

.new-keynest-sheet .iti__selected-dial-code::after {
  content: url(../images/dd-arrow.svg);
  display: inline-block;
  width: 6px;
  height: 4px;
  cursor: pointer;
  margin-left: 4px;
  margin-top: -15px;
  position: relative;
  top: -3px;
}

.new-keynest-sheet .iti__tel-input {
  color: #2e2a25;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-color: #fafaf8;
  border: 1px solid #ddddda;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 134%;
  border-radius: 10px;
  height: 48px;
  width: 100%;
}

.new-keynest-sheet .iti__tel-input.input-validation-error {
  color: #e35454;
}

.new-keynest-sheet .iti__tel-input:focus,
.new-keynest-sheet .custom-input-tele .form-control:focus {
  border-color: #ddddda;
  box-shadow: none !important;
  outline: none !important;
}

.new-keynest-sheet .iti__selected-country:focus,
.new-keynest-sheet .iti__selected-country:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.new-keynest-sheet .phone-error-msg.text-danger {
  color: #e35454 !important;
  font-weight: 500;
  line-height: normal;
  font-size: 13px;
  padding-left: 5px;
  padding-top: 5px;
  display: block;
}

.new-keynest-sheet .phone-error-msg.hide {
  display: none !important;
}

/* Range sliders — Figma 35:10013 */
.nk-ranges {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.nk-range {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.nk-range__label {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
  color: #2e2a25;
}

.nk-range__ticks {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0 16px 0 16px;
  box-sizing: border-box;
}

.nk-range__tick {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12px;
  line-height: 1.3;
  color: #95938f;
  text-align: center;
}

.nk-range__tick.is-active {
  color: #2e2a25;
}

.nk-range__track-wrap {
  position: relative;
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 2px;
  box-sizing: border-box;
  overflow: visible;
}

.nk-range__track {
  position: absolute;
  left: 2px;
  right: 2px;
  height: 30px;
  border-radius: 30px;
  background: #f2f2ef;
  border: 1px solid #e7e7e5;
  box-sizing: border-box;
}

.nk-range__hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12px;
  line-height: 1.3;
  color: #bebdba;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
  z-index: 0;
}

.nk-range__input {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  height: 30px;
}

.nk-range__input::-webkit-slider-runnable-track {
  height: 30px;
  background: transparent;
  border: none;
}

.nk-range__input::-moz-range-track {
  height: 30px;
  background: transparent;
  border: none;
}

.nk-range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 24px;
  margin-top: 3px;
  border: none;
  border-radius: 28.25px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.nk-range__input::-moz-range-thumb {
  width: 32px;
  height: 24px;
  border: none;
  border-radius: 28.25px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.nk-range__bubble {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  max-width: calc(100% - 8px);
  height: 26px;
  padding: 2px 12px;
  border-radius: 28.25px;
  background: #ffffff;
  box-shadow: 0 0 5px rgba(46, 42, 37, 0.2);
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
  color: #2e2a25;
  pointer-events: none;
  box-sizing: border-box;
  white-space: nowrap;
}

.nk-range__help {
  margin: 0;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12px;
  line-height: 1.3;
  color: #615e5a;
}

/* Success */
.nk-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px;
  width: 100%;
  box-sizing: border-box;
}

.new-keynest-sheet.is-success .nk-success {
  display: flex;
}

.new-keynest-sheet.is-success .nk-step {
  display: none !important;
}

/* Google Places autocomplete — match home map (style.css) + above modal */
.pac-logo:after {
  background-position: center;
}

.pac-container {
  z-index: 2000000003 !important;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  color: #2e2a26;
  padding: 5px 5px 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.07);
  font-family: 'Poppins', sans-serif;
}

.pac-item {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  color: #2e2a25;
  padding: 8px 5px;
  border-top: none;
  border-color: #fff;
  cursor: pointer;
}

.pac-item:hover,
.pac-item-selected {
  background-color: #f2f2ef;
}

.pac-matched {
  font-size: 16px;
  color: #2e2a26;
  font-weight: 500;
}

.pac-item-query {
  font-size: 16px;
  color: #2e2a25;
}

/* Usage step — completed summary (two Q&A blocks per Figma 35-8968) */
.nk-step[data-nk-step="usage"].is-complete > .nk-step__content > .nk-step__title,
.nk-step[data-nk-step="usage"].is-complete > .nk-step__content > [data-nk-answer]:not([data-nk-answer-visits]):not([data-nk-answer-keys]) {
  display: none;
}

.nk-step[data-nk-step="usage"].is-complete [data-nk-usage-summary] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nk-step[data-nk-step="usage"]:not(.is-complete) [data-nk-usage-summary] {
  display: none;
}

.nk-step__qa {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nk-step__desc {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.34;
  color: #2e2a25;
}

.nk-step__help {
  margin: 0;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12px;
  line-height: 1.3;
  color: #615e5a;
}

/* intl-tel dropdown — global (dropdown renders on document.body, not inside .new-keynest-sheet) */
.iti__arrow,
.iti__search-clear,
.iti__search-icon {
  display: none !important;
}

.iti--fullscreen-popup .iti__dropdown-content {
  border-radius: 10px;
  overflow: hidden;
  z-index: 2000000003 !important;
}

.iti__dropdown-content .iti__search-input {
  margin: 8px;
  display: flex;
  padding: 8px 4px;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 20px;
  border: 1px solid #ddddda;
  background: #fafaf8;
  width: -webkit-fill-available;
  padding-left: 30px;
  font-size: 15px;
  color: #2e2a25;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.iti__dropdown-content .iti__search-input:focus,
.iti__dropdown-content .iti__search-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: #ddddda !important;
  background: #fafaf8 !important;
}

.iti__dropdown-content::before {
  content: url(../images/search.svg);
  display: inline-block;
  width: 14px;
  height: 14px;
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 100;
}

.iti--inline-dropdown .iti__dropdown-content {
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.07);
  border: 0;
  z-index: 2000000003 !important;
}

.iti__country-list li {
  padding: 9px;
}

.iti--inline-dropdown .iti__country-list,
.iti--flexible-dropdown-width .iti__country-list {
  border-top: 1px solid #ddddda !important;
}

.iti__country-list .iti__dial-code {
  margin-left: auto;
  color: #615e5a;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 134%;
}

.iti--fullscreen-popup.iti--container {
  padding: 40px 10px 20px 10px !important;
  z-index: 2000000003 !important;
}

.iti__country-list .iti__country-name {
  color: #2e2a25;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 134%;
}

.iti__country-list {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.iti__country-list::-webkit-scrollbar {
  display: none;
}

@media (min-width: 769px) {
  .iti__dropdown-content:after {
    bottom: 100%;
    left: 50%;
    border: solid transparent;
    content: "";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0);
    border-bottom-color: #fff;
    border-width: 12px;
    margin-left: -12px;
    left: 25px;
  }
}

@media (max-width: 768px) {
  .new-keynest-sheet {
    border-radius: 10px;
  }

  /* Mobile: fewer usage ticks (1, 4, 7, 10+) */
  .nk-range--usage .nk-range__tick--hide-mobile {
    display: none;
  }
}
