.ih-quote-page {
  background: #ffffff;
}

.ih-quote-flow-full {
  min-height: calc(100vh - 110px);
  padding: 28px 24px 80px;
  color: #303036;
  font-family: "Montserrat", sans-serif;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
}

.ih-quote-topbar {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  gap: 16px;
}

.ih-quote-nav,
.ih-quote-skip {
  border: 1px solid rgba(49, 48, 48, 0.16);
  background: #fff;
  border-radius: 10px;
  min-height: 38px;
  font-size: 13px;
  font-weight: 700;
  color: #303036;
  cursor: pointer;
}

.ih-quote-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ih-quote-skip {
  color: #0e8f96;
  border-color: rgba(14, 143, 150, 0.3);
}

.ih-quote-skip-checkout {
  background: #0e8f96;
  color: #fff;
  border-color: #0e8f96;
}

.ih-quote-progress-line {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: #e5e4e2;
  overflow: hidden;
}

.ih-quote-progress-line span {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, #1fb7bd, #0e8f96);
  transition: width 0.25s ease;
}

.ih-quote-stage {
  display: grid;
  place-items: center;
}

.ih-quote-stage-inner {
  width: min(860px, 100%);
  text-align: center;
  display: grid;
  gap: 18px;
  animation: ihQuoteFade 0.28s ease;
}

.ih-quote-stage-inner h1 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin: 0;
  line-height: 1.1;
  font-weight: 800;
}

.ih-quote-stage-inner p {
  margin: 0;
  font-size: 15px;
  color: #64656b;
}

.ih-quote-helper {
  font-size: 13px;
  color: #0e8f96;
  font-weight: 700;
}

.ih-quote-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.ih-quote-options button {
  border: 1px solid rgba(49, 48, 48, 0.18);
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #303036;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ih-quote-options button.is-selected {
  background: #0e8f96;
  color: #fff;
  border-color: #0e8f96;
}

.ih-quote-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: #0e8f96;
  font-size: 12px;
  font-weight: 800;
}

.ih-quote-options.is-multi button.is-selected .ih-quote-check {
  background: #fff;
  color: #0e8f96;
}

.ih-quote-text {
  display: grid;
  justify-items: center;
}

.ih-quote-text label {
  width: min(640px, 100%);
  display: grid;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  color: #303036;
  text-align: left;
}

.ih-quote-text input,
.ih-quote-text textarea {
  border: 1px solid rgba(49, 48, 48, 0.16);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 400;
}

.ih-quote-text input::placeholder,
.ih-quote-text textarea::placeholder {
  font-weight: 400;
}

.ih-quote-cta {
  margin-top: 12px;
  display: grid;
  justify-items: center;
}

.ih-quote-primary {
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  border: none;
  background: #1fb7bd;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 16px 35px rgba(31, 183, 189, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ih-quote-primary:hover:not(:disabled),
.ih-quote-skip-checkout:hover:not(:disabled) {
  transform: translateY(-1px);
}

.ih-quote-primary:disabled,
.ih-quote-skip-checkout:disabled {
  opacity: 0.7;
  cursor: wait;
}

.ih-quote-primary-checkout {
  min-width: 240px;
  min-height: 54px;
  padding: 0 34px;
  font-size: 14px;
}

.ih-quote-checkout {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.ih-quote-checkout span {
  font-size: 12px;
  color: #7b7a78;
}

.ih-quote-package-grid {
  width: min(760px, 100%);
  margin: 16px auto 0;
  display: grid;
  gap: 14px;
}

.ih-quote-package-grid button {
  border: 1px solid rgba(49, 48, 48, 0.14);
  border-radius: 16px;
  padding: 18px 22px;
  background: #fff;
  text-align: left;
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ih-quote-package-grid button strong {
  font-size: 16px;
  font-weight: 800;
  color: #303036;
}

.ih-quote-package-grid button span {
  font-size: 13px;
  font-weight: 700;
  color: #0e8f96;
}

.ih-quote-package-grid button small {
  font-size: 13px;
  color: #5b5a58;
}

.ih-quote-package-grid button.is-selected {
  border-color: rgba(14, 143, 150, 0.45);
  box-shadow: 0 18px 40px rgba(31, 183, 189, 0.2);
  transform: translateY(-2px);
}

.ih-quote-palette-grid {
  width: min(900px, 100%);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.ih-quote-palette-grid button {
  border: 1px solid rgba(49, 48, 48, 0.12);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 10px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ih-quote-palette-grid button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(20, 20, 20, 0.08);
}

.ih-quote-palette-grid button.is-selected {
  border-color: rgba(14, 143, 150, 0.6);
  box-shadow: 0 22px 38px rgba(14, 143, 150, 0.22);
}

.ih-quote-palette-swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  border-radius: 12px;
  overflow: hidden;
  min-height: 120px;
}

.ih-quote-palette-swatch-grid span {
  display: block;
  min-height: 36px;
}

.ih-quote-palette-meta {
  display: grid;
  gap: 4px;
}

.ih-quote-palette-meta strong {
  font-size: 14px;
  font-weight: 800;
  color: #303036;
}

.ih-quote-palette-meta span {
  font-size: 12px;
  color: #6d6c6a;
}

.ih-quote-palette-tooltip {
  position: absolute;
  left: 12px;
  right: 12px;
  top: -44px;
  padding: 8px 10px;
  background: #1b1b1f;
  color: #fff;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-align: center;
}

.ih-quote-palette-grid button:hover .ih-quote-palette-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.ih-quote-search-wrap .ih-quote-search {
  width: min(700px, 100%);
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 48px;
  border: 1px solid rgba(49, 48, 48, 0.2);
  border-radius: 14px;
  background: #fff;
  font-size: 14px;
}

.ih-quote-search-wrap .ih-quote-search span {
  font-size: 14px;
  color: #9b9a98;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 20px;
}

.ih-quote-search-wrap .ih-quote-search input {
  border: none !important;
  outline: none !important;
  font-size: 15px !important;
  font-family: inherit !important;
  color: #303036 !important;
  height: 48px !important;
  line-height: 48px !important;
  padding: 0 2px !important;
  margin: 0 !important;
  flex: 1 1 auto;
  display: block;
  background: transparent !important;
  box-sizing: border-box;
}

.ih-quote-search-wrap .ih-quote-search input::placeholder {
  line-height: 48px;
}

.ih-quote-search-wrap .ih-quote-search input:focus {
  outline: none;
  box-shadow: none;
}

.ih-quote-search-wrap .ih-quote-search span svg,
.ih-quote-search-wrap .ih-quote-search span {
  vertical-align: middle;
}

.ih-quote-search-wrap .ih-quote-clear {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: #efefee;
  color: #303036;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ih-quote-popular {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: #5b5a58;
}

.ih-quote-popular span {
  font-weight: 700;
}

.ih-quote-popular button {
  border: 1px solid rgba(49, 48, 48, 0.18);
  border-radius: 12px;
  padding: 6px 16px;
  background: #f3f3f2;
  font-weight: 700;
  cursor: pointer;
}

.ih-quote-popular button.is-selected {
  background: #0e8f96;
  border-color: #0e8f96;
  color: #fff;
}

.ih-quote-suggest {
  width: min(700px, 100%);
  margin: 10px auto 0;
  border: 1px solid rgba(49, 48, 48, 0.2);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  text-align: left;
}

.ih-quote-suggest ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 260px;
  overflow: auto;
}

.ih-quote-suggest li button {
  width: 100%;
  padding: 14px 18px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}

.ih-quote-suggest li button:hover {
  background: #f3f3f2;
}

.ih-quote-suggest-all {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-top: 1px solid rgba(49, 48, 48, 0.15);
  background: #fafaf9;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #0e8f96;
  cursor: pointer;
}

.ih-quote-search-wrap {
  position: relative;
  width: min(700px, 100%);
  margin: 0 auto;
}

.ih-quote-search-wrap .ih-quote-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
}

@keyframes ihQuoteFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .ih-quote-flow-full {
    min-height: calc(100vh - 90px);
    padding: 20px 16px 60px;
  }

  .ih-quote-topbar {
    grid-template-columns: 90px 1fr 90px;
  }

  .ih-quote-options {
    justify-content: flex-start;
  }

  .ih-quote-stage-inner {
    text-align: left;
  }

  .ih-quote-search {
    grid-template-columns: 20px 1fr;
    padding: 10px 14px;
  }

  .ih-quote-popular {
    justify-content: flex-start;
  }
}
