/* ==========================================================================
   Auth Page Layout & Styles (LabFinder 360)
   ========================================================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-review);
  position: relative;
}

.header--auth {
  width: 100%;
  height: 80px;
  background: var(--color-bg-header-auth);
  border-bottom: 1px solid var(--color-border-header);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
  padding: 0;
}

.header--auth .header__inner {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-start;
  width: 100%;
}

.header--auth .header__inner--stepper .review-stepper {
  margin-left: 52px;
}

.header--auth .header__inner--stepper .header__btn {
  margin-left: auto;
}

.header--auth .header__logo {
  display: inline-flex;
  align-items: center;
}

.header--auth .header__logo-img {
  width: 180px;
  height: auto;
  display: block;
}

.header--auth .header__btn {
  width: 208px;
  height: 45px;
  font-family: var(--font-rubik);
  font-weight: 500;
  border: none;
}

.auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 70px 20px 0;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Background Blur Accents */
.auth-bg-shape {
  position: absolute;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
}

.auth-bg-shape--bottom-left {
  left: -280px;
  top: 360px;
  width: 474px;
  height: 570px;
}

.auth-bg-shape--bottom-left .auth-bg-img {
  width: 569px;
  height: 847px;
  max-width: none;
  transform: rotate(-30.94deg);
  display: block;
  flex-shrink: 0;
}

.auth-bg-shape--top-right {
  left: auto;
  right: -100px;
  top: -140px;
  width: 516px;
  height: 348px;
}

.auth-bg-shape--top-right .auth-bg-img {
  width: 449px;
  height: 847px;
  max-width: none;
  transform: rotate(62.37deg);
  display: block;
  flex-shrink: 0;
}


/* Form Container */
.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 552px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.auth-title {
  font-family: var(--font-manrope);
  font-weight: 700;
  font-size: 28px;
  line-height: 33.6px;
  color: var(--color-compliment-3); /* var(--color-compliment-3) */
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.auth-subtitle {
  font-family: var(--font-rubik);
  font-weight: 400;
  font-size: 14px;
  line-height: 16.8px;
  color: var(--color-text-sub); /* var(--color-text-sub) */
  margin: 0 0 28px 0;
  max-width: 516px;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.auth-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-rubik);
  font-weight: 400;
  font-size: 12px;
  line-height: 16.8px;
  text-transform: uppercase;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}

.auth-input-group {
  width: 100%;
  height: 60px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light); /* var(--color-border-light) */
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 6px 10px 6px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.auth-input-group:focus-within {
  border-color: var(--color-compliment-3);
}

.auth-input-group--error {
  border-color: var(--color-error) !important;
}

.auth-error-message {
  font-family: var(--font-rubik);
  font-weight: 400;
  font-size: 13px;
  line-height: 16px;
  color: var(--color-error);
  margin-top: 6px;
  display: none;
}

.auth-error-message.is-visible {
  display: block;
  animation: authFadeIn 0.2s ease;
}

@keyframes authFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-input {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-rubik);
  font-weight: 400;
  font-size: 16px;
  line-height: 16.8px;
  color: var(--color-text-primary);
  padding: 0;
}

.auth-input::placeholder {
  color: var(--color-text-subtle); /* var(--color-text-subtle) */
  opacity: 1;
}

.auth-btn-otp {
  width: 130px;
  height: 40px;
  background: var(--color-accent-brand-yellow);
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-rubik);
  font-weight: 500;
  font-size: 14px;
  line-height: 16.8px;
  color: var(--color-text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.auth-btn-otp:hover {
  background-color: var(--color-accent-brand-yellow-hover);
  box-shadow: 0 2px 8px rgba(250, 188, 9, 0.35);
}

.auth-btn-otp:active {
  transform: scale(0.98);
}

.auth-target-email {
  font-weight: 500;
  color: var(--color-compliment-3);
}

.auth-otp-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  width: 100%;
}

.auth-otp-input {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  border: 1px solid var(--color-border-light);
  background: var(--color-white);
  text-align: center;
  font-family: var(--font-rubik);
  font-weight: 500;
  font-size: 20px;
  color: var(--color-text-primary);
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.auth-otp-input:focus {
  border-color: var(--color-compliment-3);
}

.auth-otp-input--error,
.auth-otp-row--error .auth-otp-input {
  border-color: var(--color-error) !important;
}

.auth-otp-row + .auth-error-message {
  margin-top: -14px;
  margin-bottom: 16px;
}

.auth-resend-wrap {
  font-family: var(--font-rubik);
  font-weight: 400;
  font-size: 14px;
  line-height: 16.8px;
  color: var(--color-text-sub);
  margin-bottom: 22px;
}

.auth-resend-timer {
  font-family: var(--font-rubik);
  font-weight: 500;
  color: var(--color-compliment-2);
  display: inline-block;
  user-select: none;
}

.auth-resend-timer.is-clickable {
  cursor: pointer;
  text-decoration: underline;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.auth-resend-timer.is-clickable:hover {
  opacity: 0.8;
}

.auth-resend-timer.is-clickable:active {
  transform: scale(0.97);
}

.auth-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-btn-back {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--color-text-slate);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
  flex-shrink: 0;
}

.auth-btn-back:hover {
  background-color: var(--color-bg-alt);
  border-color: var(--color-text-primary);
}

.auth-btn-back img {
  width: 24px;
  height: 24px;
  display: block;
}

/* Illustration */
.auth-illustration-wrap {
  width: 100%;
  max-width: 843px;
  margin-top: 28px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  margin-bottom: 0;
}

.auth-illustration-wrap--verify {
  max-width: 726px;
}

.auth-illustration-wrap--details {
  max-width: 875px;
}

.auth-unified-card {
  width: 100%;
  max-width: 552px;
  background: var(--color-bg-pill);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.auth-unified-card .auth-input-group {
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--color-border-light);
  background: var(--color-white);
  box-sizing: border-box;
}

.auth-unified-card .auth-error-message {
  padding: 8px 18px 2px;
  margin: 0;
}

.auth-unified-card .auth-ai-banner {
  margin: 0;
  background: transparent;
  border-radius: 0;
  padding: 20px 18px 22px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
}

.auth-ai-icon {
  width: 55px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  mix-blend-mode: multiply;
  scale: 1.5;
}

.auth-ai-content {
  display: flex;
  flex-direction: column;
  max-width: 450px;
}

.auth-ai-title {
  font-family: var(--font-rubik);
  font-weight: 500;
  font-size: 14px;
  line-height: 16.8px;
  color: var(--color-text-primary);
  margin: 0 0 4px 0;
}

.auth-ai-desc {
  font-family: var(--font-rubik);
  font-weight: 400;
  font-size: 13px;
  line-height: 16.8px;
  color: var(--color-text-slate);
  margin: 0;
}

.auth-illustration {
  width: 100%;
  height: auto;
  max-height: 282px;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   Fetching Details Step
   ========================================================================== */

.auth-main--fetching {
  justify-content: flex-start;
  padding: 0 40px 60px;
}

.auth-main--fetching .auth-bg-shape {
  z-index: 2;
}

.auth-fetching-layout {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 69px;
  position: relative;
  margin: 0 auto;
}

.auth-fetching-illustration-col {
  width: 597px;
  height: 603px;
  max-width: 597px;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
  background-color: transparent;
  position: relative;
  z-index: 1;
}

.auth-fetching-illustration {
  position: absolute;
  top: 0;
  left: -22.27%;
  width: 134.79%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  mix-blend-mode: multiply;
  background-color: transparent;
}

.auth-fetching-card-col {
  flex: 0 0 492px;
  max-width: 492px;
  width: 492px;
  margin-top: 169px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.auth-fetching-card {
  width: 100%;
  max-width: 492px;
  background: var(--color-white);
  border: 1px solid var(--color-border-card-cyan);
  border-radius: 20px;
  box-shadow: 0px 8px 22px -6px rgba(24, 39, 75, 0.12), 0px 14px 64px -4px rgba(24, 39, 75, 0.12);
  padding: 24px 30px 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  position: relative;
}

.auth-fetching-card .auth-ai-icon {
  width: 65px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 50%;
  object-fit: cover;
  mix-blend-mode: multiply;
  scale: 1.5;
  transform-origin: center;
}

.auth-fetching-title {
  font-family: var(--font-manrope);
  font-weight: 700;
  font-size: 16px;
  line-height: 19.2px;
  color: var(--color-theme-primary);
  margin: 0 0 8px 0;
}

.auth-fetching-desc {
  font-family: var(--font-rubik);
  font-weight: 400;
  font-size: 14px;
  line-height: 16.8px;
  color: var(--color-text-sub);
  margin: 0 0 24px 0;
  max-width: 403px;
}

.auth-progress-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-progress-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-progress-percent {
  font-family: var(--font-manrope);
  font-weight: 700;
  font-size: 16px;
  line-height: 19.2px;
  color: var(--color-compliment-3);
}

.auth-progress-eta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-progress-eta-icon {
  width: 14px;
  height: 14px;
  display: block;
  transform-origin: center;
  animation: hourglass-spin 2.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes hourglass-spin {
  0% {
    transform: rotate(0deg);
  }
  40% {
    transform: rotate(180deg);
  }
  50% {
    transform: rotate(180deg);
  }
  90% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.auth-progress-eta-text {
  font-family: var(--font-rubik);
  font-weight: 400;
  font-size: 14px;
  line-height: 16.8px;
  color: var(--color-text-sub);
}

.auth-progress-track {
  width: 100%;
  height: 8px;
  background-color: var(--color-track-progress);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.auth-progress-fill {
  height: 100%;
  width: 30%;
  background-color: var(--color-compliment-3);
  border-radius: 999px;
  transition: width 0.4s ease;
  position: relative;
  overflow: hidden;
}

.auth-progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  animation: progress-shimmer 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes progress-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 1024px) {
  .auth-bg-shape--top-right {
    left: auto;
    right: -100px;
    top: -120px;
    width: 420px;
    height: 320px;
  }

  .auth-bg-shape--top-right .auth-bg-img {
    width: 380px;
    height: auto;
  }

  .auth-bg-shape--bottom-left {
    left: -180px;
    top: 320px;
    width: 400px;
    height: 480px;
  }

  .auth-bg-shape--bottom-left .auth-bg-img {
    width: 440px;
    height: auto;
  }
}

@media (max-width: 768px) {
  .header--auth {
    height: 70px;
  }

  .header--auth .header__logo-img {
    width: 150px;
  }

  .auth-main {
    padding: 36px 16px 0;
  }

  .auth-title {
    font-size: 24px;
    line-height: 30px;
  }

  .auth-subtitle {
    margin-bottom: 20px;
  }

  .auth-illustration-wrap {
    margin-top: 20px;
  }

  .auth-bg-shape--top-right {
    left: auto;
    right: -70px;
    top: -80px;
    width: 340px;
    height: 260px;
  }

  .auth-bg-shape--top-right .auth-bg-img {
    width: 320px;
    height: auto;
  }

  .auth-bg-shape--bottom-left {
    left: -140px;
    top: 260px;
    width: 340px;
    height: 400px;
  }

  .auth-bg-shape--bottom-left .auth-bg-img {
    width: 360px;
    height: auto;
  }

  .auth-fetching-layout {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin: 20px auto 40px;
  }

  .auth-fetching-illustration-col {
    width: 100%;
    max-width: 440px;
    height: auto;
    aspect-ratio: 597 / 603;
  }

  .auth-fetching-card-col {
    flex: none;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-top: 0;
  }

  .auth-fetching-card {
    min-height: auto;
    height: auto;
  }

  .auth-fetching-illustration {
    position: absolute;
    top: 0;
    left: -22.27%;
    width: 134.79%;
    height: 100%;
  }
}

@media (max-width: 480px) {
  .header--auth {
    height: 64px;
  }

  .header--auth .header__logo-img {
    width: 140px;
  }

  .auth-main {
    padding: 28px 16px 0;
  }

  .auth-title {
    font-size: 22px;
    line-height: 28px;
  }

  .auth-subtitle {
    font-size: 13.5px;
    line-height: 1.4;
    margin-bottom: 18px;
  }

  .auth-input-group {
    height: auto;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
    border-radius: 12px;
  }

  .auth-input {
    flex: none;
    width: 100%;
    height: 40px;
    padding: 0 8px;
    font-size: 15px;
    box-sizing: border-box;
  }

  .auth-btn-otp {
    width: 100%;
    height: 42px;
    font-size: 14px;
  }

  .auth-action-row {
    width: 100%;
    display: flex;
    gap: 10px;
  }

  .auth-action-row .auth-btn-otp {
    width: 130px;
  }

  .auth-otp-row {
    gap: 8px;
    margin-bottom: 18px;
  }

  .auth-otp-input {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    font-size: 18px;
  }

  .auth-illustration-wrap {
    margin-top: 16px;
  }

  .auth-ai-banner {
    padding: 14px 14px;
    gap: 12px;
  }

  .auth-ai-icon {
    width: 44px;
    height: 44px;
  }

  .auth-ai-desc {
    font-size: 12px;
    line-height: 1.35;
  }

  .auth-bg-shape--top-right {
    left: auto;
    right: -50px;
    top: -60px;
    width: 260px;
    height: 200px;
  }

  .auth-bg-shape--top-right .auth-bg-img {
    width: 240px;
    height: auto;
  }

  .auth-bg-shape--bottom-left {
    left: -90px;
    top: 220px;
    width: 260px;
    height: 300px;
  }

  .auth-bg-shape--bottom-left .auth-bg-img {
    width: 280px;
    height: auto;
  }

  .auth-main--fetching {
    padding: 20px 16px 36px;
  }

  .auth-fetching-layout {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 0 auto;
  }

  .auth-fetching-card-col {
    flex: none;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-top: 0;
  }

  .auth-fetching-card {
    min-height: auto;
    height: auto;
    padding: 20px 18px 24px 18px;
    border-radius: 16px;
  }

  .auth-fetching-desc {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 20px;
  }

  .auth-fetching-illustration-col {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 597 / 603;
  }

  .auth-fetching-illustration {
    position: absolute;
    top: 0;
    left: -22.27%;
    width: 134.79%;
    height: 100%;
  }
}

/* ==========================================================================
   Review Details - LabFinder 360
   ========================================================================== */

/* Stepper Navigation */
.review-stepper {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.review-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-sub);
  font-family: var(--font-rubik);
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 6px 0;
}

.review-step:hover,
.review-step:focus,
.review-step:active {
  color: var(--color-theme-primary);
}

.review-step__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-step__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.review-step--active {
  color: var(--color-theme-primary);
}

.review-step--active .review-step__icon img {
  filter: brightness(0.6) sepia(1) hue-rotate(130deg);
}

/* Main Review Container */
.review-main {
  flex: 1;
  padding-top: 70px;
  padding-bottom: 100px;
  position: relative;
  z-index: 1;
}

/* Hero / Header Intro */
.review-hero {
  margin-bottom: 46px;
}

.review-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-badge-ai-bg);
  border: 1px solid var(--color-badge-ai-border);
  border-radius: 20px;
  width: 200px;
  height: 37px;
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-badge-ai-text);
  margin-bottom: 16px;
}

.review-hero {
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border-input-default);
}

.review-hero__title {
  color: var(--color-theme-primary);
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 16px 0;
}

.review-hero__desc {
  color: var(--color-text-sub);
  font-family: var(--font-manrope);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  max-width: 643px;
  margin: 0;
}

.review-site-link {
  color: var(--color-compliment-3);
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-position: from-font;
  transition: opacity 0.2s ease;
}

.review-site-link:hover {
  opacity: 0.85;
}

.review-highlight-text {
  color: var(--color-theme-optional);
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  font-weight: 500;
}

/* Form Section Layout (2 Columns) */
.review-section {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border-input-default);
}

.review-section:has(.review-disciplines-dropdown:not([hidden])),
.review-section:has(.review-social-dropdown:not([hidden])),
.review-section.review-section--elevated {
  z-index: 1000;
}

.review-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Left Metadata Column */
.review-section__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-section__title {
  font-family: var(--font-manrope);
  font-size: 16px;
  font-weight: 700;
  line-height: 19.2px;
  color: var(--color-black);
  margin: 0;
}

.review-section__desc {
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 400;
  line-height: 16.8px;
  color: var(--color-text-sub);
  margin: 0;
  max-width: 210px;
}

.review-section__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-compliment-3);
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  background: none;
  border: none;
  padding: 0;
  margin-top: 16px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.review-section__action-btn:hover {
  opacity: 0.8;
}

.review-section__action-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

/* Right Content Column */
.review-section__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  width: 100%;
}

.review-content-subtitle {
  color: var(--color-text-slate);
  margin: 0 0 10px 0;
}

/* Section 1: Identity & Contact Elements */
.review-identity-header {
  display: flex;
  align-items: center;
  gap: 25px;
  height: 71px;
}

.review-logo-preview {
  width: 71px;
  height: 71px;
  background: var(--color-white);
  border: 1px solid var(--color-border-input-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-logo-preview:hover {
  border-color: var(--color-border-focus-purple);
  box-shadow: 0 0 0 2px var(--color-shadow-focus-purple);
}

.review-logo-preview input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.review-logo-preview-img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.review-logo-initial {
  font-family: var(--font-manrope);
  font-size: 22px;
  font-weight: 700;
  line-height: 26.4px;
  color: var(--color-text-slate);
}

.review-identity-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.review-field-input--title {
  font-family: var(--font-manrope);
  font-size: 16px;
  font-weight: 700;
  line-height: 19.2px;
  color: var(--color-text-primary);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-word;
}

.review-field-card--grow {
  flex: 1;
}

.review-field-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-input-light);
  border-radius: 10px;
  padding: 14px 18px;
  height: 75px;
  min-height: 75px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  min-width: 0;
}

.review-field-card:hover {
  border-color: var(--color-border-focus-purple, var(--color-border-focus-purple));
}

.review-field-card:focus-within {
  border-color: var(--color-border-focus-purple, var(--color-border-focus-purple));
  box-shadow: 0 0 0 2px var(--color-shadow-focus-purple, var(--color-shadow-focus-purple));
}

.review-field-label {
  font-family: var(--font-rubik);
  font-size: 13px;
  font-weight: 500;
  line-height: 16.8px;
  color: var(--color-text-sub);
  margin-bottom: 4px;
}

.review-field-label--slate {
  color: var(--color-text-slate);
}

.review-field-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-manrope);
  font-size: 16px;
  font-weight: 600;
  line-height: 19.2px;
  color: var(--color-text-primary);
  width: 100%;
  min-width: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Warning / Review Needed Input Card */
.review-field-card--warning {
  background: var(--color-warning-review-bg);
  border: 1px solid var(--color-warning-review-border);
  box-shadow: 0 0 0 2px var(--color-warning-review-shadow);
}

.review-field-card--warning:focus-within {
  border-color: var(--color-accent-brand-yellow-hover);
  box-shadow: 0 0 0 3px var(--color-warning-review-badge-bg);
}

.review-badge-warning {
  position: absolute;
  top: -11px;
  right: 14px;
  background: var(--color-warning-review-badge-bg);
  border: 1px solid var(--color-warning-review-border);
  border-radius: 20px;
  height: 23px;
  width: 104px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-rubik);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-warning-review-text);
  white-space: nowrap;
  box-sizing: border-box;
}

.review-badge-warning img {
  width: 13px;
  height: 13px;
}

.review-field-card--verified {
  background: var(--color-bg-alt);
  border-color: var(--color-border-input-light);
  box-shadow: none;
}

.review-badge-verified {
  position: absolute;
  top: -11px;
  right: 14px;
  background: var(--color-green-mint-bg);
  border: 1px solid var(--color-green-mint-border);
  border-radius: 20px;
  height: 23px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-rubik);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-compliment-2);
  white-space: nowrap;
}


.review-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.review-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Social Media Accordion / Card */
.review-social-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-input-light);
  border-radius: 10px;
  padding: 16px 20px 14px;
  height: 89px;
  min-height: 89px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-social-card:hover {
  border-color: var(--color-border-focus-purple, var(--color-border-focus-purple));
}

.review-social-card:focus-visible,
.review-social-card:focus-within,
.review-social-card[aria-expanded="true"],
.review-social-card.is-open {
  outline: none;
  border-color: var(--color-border-focus-purple, var(--color-border-focus-purple));
  box-shadow: 0 0 0 2px var(--color-shadow-focus-purple, var(--color-shadow-focus-purple));
}

.review-social-card__title {
  margin: 0;
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  color: var(--color-text-slate);
}

.review-social-card__bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  user-select: none;
}

.review-social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-social-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.review-social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.review-social-btn img {
  width: 30px;
  height: 30px;
  display: block;
}

.review-chevron-box {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-chevron-icon {
  width: 8.642px;
  height: 14.815px;
  display: block;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

.review-social-card[aria-expanded="true"] .review-chevron-icon,
.review-social-card__bottom-row[aria-expanded="true"] .review-chevron-icon,
.review-social-card.is-open .review-chevron-icon {
  transform: rotate(90deg);
}

.review-social-card[aria-expanded="false"] .review-chevron-icon,
.review-social-card__bottom-row[aria-expanded="false"] .review-chevron-icon,
.review-social-card.is-closed .review-chevron-icon {
  transform: rotate(0deg);
}

.review-social-anchor {
  position: relative;
  display: block;
  width: 100%;
}

/* Social Media Dropdown */
.review-social-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 100000;
  background: var(--color-white);
  border-radius: 9px;
  box-shadow: 0 12px 36px rgba(12, 66, 66, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border-input-default);
  width: 684px;
  max-width: 100%;
  padding: 18px 22px 16px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.review-social-dropdown:not([hidden]) {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.review-social-dropdown[hidden] {
  display: none !important;
}

.review-social-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.review-social-dropdown__title {
  font-family: var(--font-rubik), sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  color: var(--color-text-slate);
}

.review-social-dropdown__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.review-social-dropdown__row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  animation: reviewFadeInRow 0.18s ease forwards;
}

@keyframes reviewFadeInRow {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-social-platform-select {
  position: relative;
  width: 158px;
  height: 35px;
  min-width: 130px;
  flex-shrink: 0;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-input-light);
  border-radius: 10px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.review-social-platform-select:hover {
  border-color: var(--color-border-focus-purple, var(--color-border-focus-purple));
  background: var(--color-white);
}

.review-social-platform-select:focus-within {
  border-color: var(--color-border-focus-purple, var(--color-border-focus-purple));
  background: var(--color-white);
  box-shadow: 0 0 0 2px var(--color-shadow-focus-purple, var(--color-shadow-focus-purple));
}

.review-social-platform-current {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  pointer-events: none;
}

.review-social-platform-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-social-platform-icon img,
.review-social-platform-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.review-social-platform-name {
  font-family: var(--font-rubik), sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  color: var(--color-text-slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-social-platform-chevron {
  width: 10px;
  height: 6px;
  flex-shrink: 0;
  pointer-events: none;
  color: var(--color-text-slate);
}

.review-social-native-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 14px;
}

.review-social-input-wrap {
  flex: 1;
  min-width: 0;
  height: 35px;
}

.review-social-dropdown__input {
  width: 100%;
  height: 35px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-input-light);
  border-radius: 10px;
  padding: 0 14px;
  box-sizing: border-box;
  font-family: var(--font-rubik), sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 20px;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.review-social-dropdown__input::placeholder {
  color: var(--color-text-slate);
  opacity: 0.35;
}

.review-social-dropdown__input:hover {
  border-color: var(--color-border-focus-purple, var(--color-border-focus-purple));
}

.review-social-dropdown__input:focus {
  border-color: var(--color-border-focus-purple, var(--color-border-focus-purple));
  background: var(--color-white);
  box-shadow: 0 0 0 2px var(--color-shadow-focus-purple, var(--color-shadow-focus-purple)) !important;
}


.review-social-dropdown__add-btn {
  margin-top: 14px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  font-family: var(--font-rubik), sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  color: var(--color-compliment-3);
  cursor: pointer;
  padding: 6px 12px;
  transition: opacity 0.15s ease;
}

.review-social-dropdown__add-btn:hover {
  opacity: 0.82;
  text-decoration: underline;
}

.review-social-dropdown__add-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

/* Section 2: Lab Overview Elements */
.review-summary-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-input-default);
  border-radius: 9px;
  padding: 17px 24px;
  min-height: 135px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-summary-card:focus-within {
  border-color: var(--color-border-focus-purple);
  box-shadow: 0 0 0 2px var(--color-shadow-focus-purple);
}

.review-summary-text {
  font-family: var(--font-manrope);
  font-size: 14px;
  font-weight: 600;
  line-height: 19.2px;
  color: var(--color-text-primary);
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  resize: vertical;
  min-height: 77px;
  width: 100%;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--color-scrollbar-thumb) transparent;
}

.review-summary-text::-webkit-scrollbar {
  width: 6px;
}

.review-summary-text::-webkit-scrollbar-thumb {
  background-color: var(--color-scrollbar-thumb);
  border-radius: 4px;
}

.review-summary-text::-webkit-scrollbar-track {
  background: transparent;
}

.review-content-subtitle {
  margin: 0;
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  color: var(--color-text-slate);
}

.review-tags-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Tag Pills */
.review-tag-pill {
  height: 37px;
  padding: 0 14px 0 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-text-sub);
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  box-sizing: border-box;
  white-space: nowrap;
}

.review-tag-pill:hover {
  border-color: var(--color-border-muted);
  color: var(--color-text-close-btn);
}

.review-tag-pill--selected {
  border-color: var(--color-compliment-2);
  color: var(--color-compliment-2);
  background: var(--color-white);
}

.review-tag-pill--selected:hover {
  border-color: var(--color-theme-primary);
  color: var(--color-theme-primary);
}

.review-tag-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

/* Action Search / Add Tag Pill */
.review-tag-action {
  height: 37px;
  padding: 0 16px 0 12px;
  border-radius: 20px;
  color: var(--color-compliment-3);
  background: var(--color-btn-action-bg);
  border: 1px dashed var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.review-tag-action:hover {
  border-color: var(--color-compliment-3);
  background: var(--color-btn-action-hover);
}

.review-disciplines-anchor {
  position: relative;
  display: block;
  width: 100%;
}

/* Disciplines Search Dropdown  */
.review-disciplines-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 100000;
  background: var(--color-white);
  border-radius: 11px;
  box-shadow: 0 12px 36px rgba(12, 66, 66, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border-gray);
  width: 669px;
  height: 410px;
  max-width: 100%;
  padding: 24px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.review-disciplines-dropdown:not([hidden]) {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.review-disciplines-dropdown[hidden] {
  display: none !important;
}

.review-disciplines-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.review-disciplines-title {
  font-family: var(--font-rubik), sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  color: var(--color-theme-primary);
  margin: 0;
}

.review-disciplines-close {
  position: relative;
  top: auto;
  right: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--color-border-gray);
  background: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.review-disciplines-close:hover {
  background: var(--color-bg-input-hover);
  border-color: var(--color-border-cool-gray);
}

.review-disciplines-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-border-gray);
  border-radius: 10px;
  height: 48px;
  background: var(--color-white);
  box-sizing: border-box;
  margin-bottom: 20px;
  cursor: text;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.review-disciplines-search-wrap:focus-within {
  outline: none !important;
  border-color: var(--color-theme-primary);
  box-shadow: none !important;
}

.review-disciplines-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
  color: var(--color-text-sub);
  pointer-events: none;
}

.review-disciplines-input {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0 16px 0 46px;
  border: none;
  outline: none !important;
  box-shadow: none !important;
  font-family: var(--font-rubik), sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-primary);
  background: transparent;
  line-height: 20px;
}

.review-disciplines-input:focus,
.review-disciplines-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.review-disciplines-input::placeholder {
  color: var(--color-text-sub);
}

.review-disciplines-input::-webkit-search-cancel-button {
  display: none;
}

.review-disciplines-hint {
  display: none;
}

.review-disciplines-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}



/* Section 3: Detailed Services Elements */

.review-services-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.review-service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-input-default);
  border-radius: 9px;
  padding: 16px 19px;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  position: relative;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.review-service-card--active {
  border-color: var(--color-border-focus-purple);
  box-shadow: 0 0 0 3px var(--color-shadow-focus-purple);
  padding: 14px 16px;
  gap: 7px;
  min-height: 147px;
}

.review-service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-service-card__title {
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  color: var(--color-text-primary);
  margin: 0;
}

.review-service-card__desc {
  font-family: var(--font-rubik);
  font-size: 13px;
  font-weight: 400;
  line-height: 16.8px;
  color: var(--color-text-sub);
  margin: 0;
}

/* Active Service card editable inputs */
.review-service-input-title {
  background: var(--color-white);
  border: 1px solid var(--color-border-input-light);
  border-radius: 9px;
  padding: 0 16px;
  height: 40px;
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  color: var(--color-text-primary);
  width: 100%;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-service-input-title:focus {
  border-color: var(--color-border-focus-purple);
  box-shadow: 0 0 0 2px var(--color-shadow-focus-purple);
}

.review-service-input-desc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-input-light);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: var(--font-rubik);
  font-size: 13px;
  font-weight: 400;
  line-height: 16.8px;
  color: var(--color-text-sub);
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 70px;
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: var(--color-scrollbar-thumb) transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-service-input-desc:focus {
  border-color: var(--color-border-focus-purple);
  box-shadow: 0 0 0 2px var(--color-shadow-focus-purple);
}

/* Dismiss / Close Icon Button */
.review-dismiss-btn {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--color-border-gray);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.review-dismiss-btn:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-border-muted);
}

.review-dismiss-btn svg {
  width: 8px;
  height: 8px;
  display: block;
  pointer-events: none;
}

/* Add Service Action & Button */
.review-add-service-action {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.review-add-service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 136px;
  height: 40px;
  padding: 0 12px;
  background: var(--color-white);
  border: 1px solid var(--color-border-focus-purple);
  border-radius: 12px;
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  color: var(--color-compliment-3);
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.review-add-service-btn:hover {
  background: var(--color-btn-action-bg);
  box-shadow: 0 0 0 2px var(--color-shadow-focus-purple);
}

.review-add-service-btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

/* Section 4: Facility Photos Elements */
.review-photos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.review-photo-upload-slot {
  width: 135px;
  height: 135px;
  background: var(--color-white);
  border: 1px dashed var(--color-border-close-hover);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  overflow: hidden;
  box-sizing: border-box;
  color: var(--color-text-sub);
}

.review-photo-upload-slot:hover {
  background: var(--color-badge-ai-bg);
  border-color: var(--color-indigo-300);
  color: var(--color-indigo-500);
}

.review-photo-upload-slot input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.review-photo-upload-icon {
  width: 34px;
  height: 34px;
  display: block;
}

.review-photo-upload-label {
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 400;
  line-height: 16.8px;
  color: currentColor;
  transition: color 0.2s ease;
}

.review-photo-placeholder-slot {
  width: 135px;
  height: 135px;
  background: var(--color-bg-neutral);
  border-radius: 9px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.review-photo-placeholder-slot--more {
  position: relative;
}

.review-photo-placeholder-slot--more::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244, 244, 244, 0.85);
  border-radius: 9px;
  pointer-events: none;
}

.review-photo-count {
  position: relative;
  z-index: 1;
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  color: var(--color-compliment-3);
  user-select: none;
}

/* Section 5: Accreditations Elements */
.review-accreditations-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-accreditation-row {
  background: var(--color-white);
  border-radius: 11px;
  border: 1px solid var(--color-border-input-default);
  padding: 8px 16px 8px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  box-sizing: border-box;
  min-height: 71px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.review-accred-logo-box {
  width: 57px;
  height: 55px;
  background: var(--color-white);
  border: 1px solid var(--color-border-faint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.review-accred-logo-box:hover,
.review-accred-logo-box:focus-within {
  border-color: var(--color-compliment-3);
  box-shadow: 0 0 0 2px rgba(13, 121, 181, 0.15);
}

.review-accred-logo-box input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.review-accred-logo-box img {
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
  display: block;
}

.review-accred-field {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-input-light);
  border-radius: 10px;
  height: 55px;
  padding: 8px 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.review-accred-field:hover {
  border-color: var(--color-scrollbar-thumb);
}

.review-accred-field:focus-within {
  border-color: var(--color-compliment-3);
  box-shadow: 0 0 0 2px rgba(13, 121, 181, 0.15);
  background: var(--color-white);
}

.review-accred-field:not(.review-accred-field--validity) {
  cursor: text;
}

.review-accred-field--body {
  width: 240px;
  flex-shrink: 0;
}

.review-accred-field--cert {
  width: 188px;
  flex-shrink: 0;
}

.review-accred-field--validity {
  width: 155px;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.review-accred-date-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

.review-accred-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 400;
  line-height: 16.8px;
  color: var(--color-text-primary);
  outline: none;
  box-sizing: border-box;
}

.review-accred-input::placeholder {
  color: var(--color-text-placeholder);
}

.review-accred-field-label {
  font-family: var(--font-rubik);
  font-size: 13px;
  font-weight: 500;
  line-height: 16.8px;
  color: var(--color-text-slate);
  cursor: inherit;
  user-select: none;
}

.review-accred-field-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.review-accred-field-text {
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 400;
  line-height: 16.8px;
  color: var(--color-text-primary);
}

.review-accred-calendar-icon {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

/* Section 6: Products & Scope Elements (Empty Catalog State) */
.review-empty-catalog-card {
  background: var(--color-white);
  border-radius: 11px;
  padding: 61px 30px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  min-height: 464px;
}

.review-empty-catalog-img {
  width: 264px;
  height: 176px;
  object-fit: contain;
  margin-bottom: 15px;
  display: block;
}

.review-empty-catalog-title {
  font-family: var(--font-manrope);
  font-size: 16px;
  font-weight: 700;
  line-height: 19.2px;
  color: var(--color-theme-primary);
  margin: 0 0 11px 0;
}

.review-empty-catalog-desc {
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 400;
  line-height: 16.8px;
  color: var(--color-text-sub);
  max-width: 555px;
  margin: 0 0 30px 0;
  text-align: center;
}

.review-empty-catalog-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.review-btn-catalog {
  background: var(--color-accent-brand-yellow);
  color: var(--color-text-primary);
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  border: none;
  border-radius: 10px;
  width: 158px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.review-btn-catalog:hover {
  background: var(--color-accent-yellow-mid);
}

.review-link-later {
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  color: var(--color-text-sub);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.review-link-later:hover {
  color: var(--color-text-primary);
  text-decoration: underline;
}

/* Section 3: Services Empty State Card  */
.review-empty-services-card {
  background: var(--color-white);
  border-radius: 11px;
  padding: 40px 30px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  min-height: 464px;
}

.review-empty-services-img {
  width: 340px;
  height: 220px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.review-empty-services-title {
  font-family: var(--font-manrope);
  font-size: 16px;
  font-weight: 700;
  line-height: 19.2px;
  color: var(--color-theme-primary);
  margin: 0 0 11px 0;
}

.review-empty-services-desc {
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 400;
  line-height: 16.8px;
  color: var(--color-text-sub);
  max-width: 437px;
  margin: 0 0 30px 0;
  text-align: center;
}

.review-btn-add-services {
  background: var(--color-accent-brand-yellow);
  color: var(--color-text-primary);
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  border: none;
  border-radius: 10px;
  width: 248px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.review-btn-add-services:hover {
  background: var(--color-accent-yellow-mid);
}

/* Section 6: Populated Catalog State */
.review-scope-catalog {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.review-scope-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.review-scope-filter {
  height: 37px;
  padding: 4px 16px;
  border-radius: 20px;
  font-family: var(--font-rubik);
  font-weight: 500;
  font-size: 14px;
  line-height: 16.8px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-muted-purple);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.review-scope-filter:hover {
  border-color: var(--color-border-silver);
  color: var(--color-text-primary);
}

.review-scope-filter--active,
.review-scope-filter[aria-selected="true"] {
  background: var(--color-text-primary);
  border-color: var(--color-text-primary);
  color: var(--color-white);
}

.review-scope-filter--active:hover,
.review-scope-filter[aria-selected="true"]:hover {
  background: var(--color-text-primary);
  border-color: var(--color-text-primary);
  color: var(--color-white);
}

.review-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.review-product-card {
  background: var(--color-bg-cyan-light);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 167px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.2s ease;
  box-sizing: border-box;
}

.review-product-card:hover {
  box-shadow: 0 4px 14px rgba(12, 66, 66, 0.08);
}

.review-product-card__body {
  background: var(--color-white);
  border: 1px solid var(--color-border-alt);
  border-radius: 20px;
  margin: 0;
  padding: 17px 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  flex-grow: 1;
  box-sizing: border-box;
}

.review-product-card__title {
  font-family: var(--font-rubik);
  font-weight: 400;
  font-size: 14px;
  line-height: 18.8px;
  color: var(--color-theme-primary);
  margin: 0;
  word-break: break-word;
}

.review-product-card__tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.review-product-card .review-product-tag,
.review-product-card .review-product-tag span {
  font-family: var(--font-rubik);
  font-weight: 500;
  font-size: 13px;
  line-height: 16.8px;
  color: var(--color-text-muted-purple);
}

.review-product-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  white-space: nowrap;
}

.review-product-tag svg {
  flex-shrink: 0;
}

.review-product-card__footer {
  background: transparent;
  height: 40px;
  min-height: 40px;
  flex-shrink: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  box-sizing: border-box;
}

.review-product-card__add-btn,
.review-product-card__add-btn span {
  font-family: var(--font-rubik);
  font-weight: 500;
  font-size: 13px;
  line-height: 16.8px;
  color: var(--color-compliment-3);
}

.review-product-card__add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.review-product-card__add-btn:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.review-product-card .review-product-card__param-count,
.review-product-card__param-count {
  font-family: var(--font-rubik);
  font-weight: 500;
  font-size: 13px;
  line-height: 16.8px;
  color: var(--color-error);
  white-space: nowrap;
}

.review-scope-tab-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 44px 20px;
  background: var(--color-white);
  border-radius: 14px;
  border: 1px dashed var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.review-scope-tab-empty__title {
  font-family: var(--font-rubik);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text-primary);
  margin: 0;
}

.review-scope-tab-empty__desc {
  font-family: var(--font-rubik);
  font-weight: 400;
  font-size: 13px;
  color: var(--color-text-muted-purple);
  margin: 0;
}

.review-scope-load-more {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  width: 100%;
}

.review-btn-load-more {
  background: var(--color-white);
  border: 1px solid rgba(12, 66, 66, 0.1);
  border-radius: 12px;
  height: 40px;
  width: 136px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-manrope);
  font-weight: 700;
  font-size: 14px;
  line-height: 22.4px;
  color: var(--color-theme-primary);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.review-btn-load-more:hover {
  background-color: var(--color-bg-teal-faint);
  border-color: rgba(12, 66, 66, 0.25);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .header--auth .header__inner--stepper .review-stepper {
    margin-left: 20px;
    gap: 16px;
  }

  .review-step span:not(.review-step__icon) {
    display: none;
  }

  .review-step {
    padding: 6px;
  }

  .review-hero__title {
    font-size: 32px;
  }

  .review-section {
    grid-template-columns: 220px 1fr;
    gap: 32px;
  }

  .review-grid-3 {
    grid-template-columns: 1fr;
  }

  .review-accreditation-row {
    flex-wrap: wrap;
    padding: 14px;
  }

  .review-accred-field--body,
  .review-accred-field--cert,
  .review-accred-field--validity {
    width: 100%;
  }

  .review-identity-header {
    gap: 20px;
  }

  .review-photos-grid {
    gap: 12px;
  }

  .review-disciplines-dropdown {
    max-width: 100%;
    height: auto;
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .review-stepper {
    display: none;
  }

  .header--auth .header__btn {
    width: auto;
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
  }

  .review-main {
    padding-top: 36px;
    padding-bottom: 60px;
  }

  .review-section {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 32px;
  }

  .review-section__desc {
    max-width: 100%;
  }

  .review-grid-2 {
    grid-template-columns: 1fr;
  }

  .review-section__content {
    gap: 16px;
  }

  .review-disciplines-dropdown {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: auto;
    padding: 18px 16px 20px;
  }

  .review-disciplines-title {
    font-size: 16px;
    line-height: 20px;
  }

  .review-disciplines-search-wrap {
    height: 44px;
    margin-bottom: 16px;
  }

  .review-disciplines-chips {
    gap: 8px;
  }



  .review-grid-2,
  .review-grid-3 {
    gap: 16px;
  }

  .review-hero {
    margin-bottom: 28px;
    padding-bottom: 28px;
  }

  .review-pill-badge {
    font-size: 12px;
    height: 32px;
    width: auto;
    padding: 0 14px;
    margin-bottom: 12px;
  }

  .review-hero__title {
    font-size: 26px;
  }

  .review-hero__desc {
    font-size: 14px;
    line-height: 1.45;
  }

  .review-identity-header {
    gap: 12px;
  }

  .review-logo-preview {
    width: 64px;
    height: 64px;
  }

  .review-logo-initial {
    font-size: 18px;
  }

  .review-field-card {
    height: auto;
    min-height: 68px;
    padding: 12px 14px;
  }

  .review-field-input {
    font-size: 14.5px;
    line-height: 1.3;
  }

  .review-field-input--title {
    font-size: 15px;
    line-height: 1.3;
  }

  .review-badge-warning {
    height: 20px;
    font-size: 9.5px;
    padding: 0 6px;
    top: -10px;
    right: 10px;
  }

  .review-social-card {
    height: auto;
    min-height: 80px;
    padding: 14px 14px 12px;
  }

  .review-summary-card {
    padding: 14px 18px;
    height: auto;
    min-height: 120px;
  }

  .review-service-card {
    padding: 14px 16px;
  }

  .review-service-card--active {
    padding: 12px 14px;
    min-height: auto;
  }

  .review-social-icons {
    gap: 8px;
    flex-wrap: wrap;
  }

  .review-social-btn,
  .review-social-btn img {
    width: 28px;
    height: 28px;
  }

  .review-social-dropdown {
    width: 100%;
    max-width: 100%;
    padding: 16px 14px 14px;
  }

  .review-social-platform-select {
    width: 130px;
    min-width: 110px;
    padding: 0 8px;
  }

  .review-social-dropdown__input {
    padding: 0 10px;
    font-size: 13px;
  }

  .review-photos-grid {
    gap: 12px;
  }

  .review-photo-upload-slot,
  .review-photo-placeholder-slot {
    width: 100px;
    height: 100px;
  }

  .review-empty-catalog-card {
    padding: 32px 16px;
  }

  .review-empty-catalog-img {
    width: 200px;
    height: 130px;
  }

  .review-empty-services-card {
    padding: 32px 16px 40px;
    min-height: 380px;
  }

  .review-empty-services-img {
    width: 240px;
    height: 155px;
  }

  .review-btn-add-services {
    width: 210px;
  }

  .review-products-grid {
    grid-template-columns: 1fr;
  }

  .review-product-card .review-product-tag,
  .review-product-card .review-product-tag span {
    font-size: 12px;
    line-height: 16px;
  }

  .review-product-card .review-product-tag {
    height: 22px;
    padding: 0 8px;
    gap: 5px;
  }

  .review-product-card .review-product-card__add-btn,
  .review-product-card .review-product-card__add-btn span {
    font-size: 12px;
    line-height: 16px;
  }

  .review-product-card .review-product-card__param-count {
    font-size: 12px;
    line-height: 16px;
  }
}

@media (max-width: 480px) {
  .review-hero__title {
    font-size: 22px;
  }

  .header--auth .header__btn {
    padding: 0 10px;  
  }

  .review-identity-header {
    align-items: center;
    height: auto;
    gap: 10px;
  }

  .review-logo-preview {
    width: 56px;
    height: 56px;
  }

  .review-logo-initial {
    font-size: 16px;
  }

  .review-field-card {
    padding: 10px 12px;
    min-height: 64px;
  }

  .review-field-input {
    font-size: 13.5px;
  }

  .review-field-input--title {
    font-size: 14px;
  }

  .review-badge-warning {
    font-size: 9px;
    height: 19px;
    padding: 0 5px;
    right: 8px;
  }

  .review-social-card {
    padding: 12px 10px;
  }

  .review-summary-card {
    padding: 12px 14px;
    min-height: 110px;
  }

  .review-service-card {
    padding: 12px 14px;
    min-height: auto;
  }

  .review-service-card--active {
    padding: 10px 12px;
  }

  .review-service-input-title {
    height: 38px;
    font-size: 13.5px;
  }

  .review-service-input-desc {
    padding: 8px 12px;
    font-size: 12.5px;
    min-height: 64px;
  }

  .review-tag-pill,
  .review-tag-action {
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .review-disciplines-dropdown {
    padding: 16px 12px 18px;
    border-radius: 10px;
  }

  .review-disciplines-title {
    font-size: 15px;
  }

  .review-disciplines-search-wrap {
    height: 42px;
    margin-bottom: 12px;
  }

  .review-disciplines-input {
    font-size: 13px;
    padding: 0 12px 0 38px;
  }

  .review-disciplines-search-icon {
    left: 12px;
    width: 16px;
    height: 16px;
  }

  .review-add-service-btn {
    width: 136px;
  }

  .review-social-btn,
  .review-social-btn img {
    width: 26px;
    height: 26px;
  }

  .review-social-dropdown {
    padding: 14px 10px 12px;
  }

  .review-social-platform-select {
    width: 110px;
    min-width: 96px;
    height: 34px;
    padding: 0 6px;
  }

  .review-social-platform-name {
    font-size: 12px;
  }

  .review-social-dropdown__input {
    height: 34px;
    font-size: 12px;
    padding: 0 8px;
  }

  .review-section__content {
    gap: 12px;
  }

  .review-grid-2,
  .review-grid-3 {
    gap: 12px;
  }
}

/* ==========================================================================
   Add Product to Catalog Modal
   ========================================================================== */

.product-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Hide browser scroll when modal is open */
html:has(.product-modal-backdrop.is-open) {
  overflow: hidden !important;
  scrollbar-width: none !important;
}

html:has(.product-modal-backdrop.is-open)::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.product-modal {
  background: var(--color-white);
  width: 870px;
  height: 651px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  border-radius: 12px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.18), 0 0 1px 1px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  font-family: var(--font-rubik);
  margin: auto;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-modal-backdrop.is-open .product-modal {
  transform: translateY(0) scale(1);
}

/* Header (Shared across Step 1 and Step 2) */
.product-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border-divider);
  background: var(--color-white);
  flex-shrink: 0;
  box-sizing: border-box;
}

.product-modal__header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-modal__icon-badge {
  width: 41px;
  height: 41px;
  border-radius: 8px;
  background: var(--color-badge-ai-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-modal__title {
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  color: var(--color-text-primary);
  margin: 0;
}

.product-modal__subtitle {
  font-family: var(--font-rubik);
  font-size: 12px;
  font-weight: 400;
  line-height: 16.8px;
  color: var(--color-text-sub);
  margin: 2px 0 0;
}

.product-modal__close-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-slate);
  transition: background 0.15s ease, border-color 0.15s ease;
  padding: 0;
  box-sizing: border-box;
  flex-shrink: 0;
  line-height: 0;
}

.product-modal__close-btn svg {
  display: block;
  pointer-events: none;
}

.product-modal__close-btn:hover {
  background: var(--color-border-alt);
  border-color: var(--color-border-close-hover);
}

/* Steps Container */
.product-modal__step {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0;
}

.product-modal__step--hidden {
  display: none !important;
}

/* Step 1 Body */
.product-modal__body {
  padding: 32px 24px 24px;
  overflow-y: auto;
  flex-grow: 1;
  min-height: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--color-scrollbar-thumb) var(--color-bg-nav-btn-active);
}

.product-modal__body::-webkit-scrollbar {
  width: 6px;
  display: block;
}

.product-modal__body::-webkit-scrollbar-track {
  background: var(--color-bg-nav-btn-active);
  border-radius: 4px;
}

.product-modal__body::-webkit-scrollbar-thumb {
  background: var(--color-scrollbar-thumb);
  border-radius: 4px;
}

.product-modal__body::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-placeholder);
}

.product-modal__content-wrap {
  width: 100%;
  max-width: 552px;
  margin: 0 auto;
}

.product-modal__intro {
  margin-bottom: 24px;
}

.product-modal__heading {
  font-family: var(--font-manrope);
  font-size: 16px;
  font-weight: 700;
  line-height: 19.2px;
  color: var(--color-compliment-3);
  margin: 0 0 6px;
}

.product-modal__desc {
  font-family: var(--font-rubik);
  font-size: 12px;
  font-weight: 400;
  line-height: 16.8px;
  color: var(--color-text-sub);
  max-width: 366px;
  margin: 0;
}

.product-modal__form {
  display: flex;
  flex-direction: column;
}

.product-modal__field {
  margin-bottom: 20px;
}

.product-modal__label {
  display: block;
  font-family: var(--font-rubik);
  font-size: 12px;
  font-weight: 400;
  line-height: 16.8px;
  color: var(--color-text-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: normal;
}

.product-modal__input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--color-border-light);
  border-radius: 14px;
  padding: 0 20px;
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 400;
  line-height: 16.8px;
  color: var(--color-text-primary);
  background: var(--color-white);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-modal__input::placeholder {
  color: var(--color-text-subtle);
}

.product-modal__input:focus {
  border-color: var(--color-compliment-3);
  box-shadow: 0 0 0 3px rgba(13, 121, 181, 0.12);
}

.product-modal__error-msg {
  font-family: var(--font-rubik);
  font-size: 12px;
  color: var(--color-error);
  margin-top: 5px;
  display: none;
}

.product-modal__field--error .product-modal__input {
  border-color: var(--color-error);
}

.product-modal__field--error .product-modal__error-msg {
  display: block;
}

.product-modal__textarea {
  width: 100%;
  height: 100px;
  min-height: 100px;
  border: 1px solid var(--color-border-light);
  border-radius: 14px;
  padding: 13px 20px;
  font-family: var(--font-rubik);
  font-size: 13px;
  font-weight: 400;
  line-height: 16.8px;
  color: var(--color-text-primary);
  background: var(--color-white);
  outline: none;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-modal__textarea::placeholder {
  color: var(--color-text-subtle);
}

.product-modal__textarea:focus {
  border-color: var(--color-compliment-3);
  box-shadow: 0 0 0 3px rgba(13, 121, 181, 0.12);
}

/* Chips in Step 1 */
.product-modal__chips {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.product-modal__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  border-radius: 20px;
  font-family: var(--font-rubik);
  font-size: 13px;
  font-weight: 500;
  line-height: 16.8px;
  cursor: pointer;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-text-sub);
  padding: 4px 13px 4px 10px;
  transition: all 0.15s ease;
  user-select: none;
  box-sizing: border-box;
}

.product-modal__chip > span {
  font-size: inherit;
}

.product-modal__chip:hover {
  border-color: var(--color-border-mid);
  color: var(--color-text-primary);
}

.product-modal__chip--selected {
  border: 1px solid var(--color-compliment-2);
  color: var(--color-compliment-2);
  background: var(--color-white);
}

.product-modal__chip--selected:hover {
  border-color: var(--color-green-dark);
  color: var(--color-green-dark);
}

.product-modal__chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: currentColor;
}

.product-modal__chip-icon svg {
  display: block;
  width: 15px;
  height: 15px;
}

/* Modal Footer (Both Steps) */
.product-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
  border-top: 1px solid var(--color-border-header);
  background: var(--color-white);
  flex-shrink: 0;
  box-sizing: border-box;
}

.product-modal__btn-secondary {
  background: transparent;
  border: none;
  color: var(--color-text-sub);
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.product-modal__btn-secondary:hover {
  color: var(--color-text-primary);
}

.product-modal__btn-primary {
  background: var(--color-accent-brand-yellow);
  color: var(--color-text-primary);
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  border: none;
  border-radius: 10px;
  min-width: 158px;
  height: 40px;
  padding: 0 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
  white-space: nowrap;
}

.product-modal__btn-primary:hover {
  background: var(--color-accent-yellow-mid);
}



/* Step 2 Subbar*/
.product-modal__subbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding: 12px 36px;
  border-bottom: 1px solid var(--color-border-header);
  gap: 16px;
  flex-shrink: 0;
  box-sizing: border-box;
  background: var(--color-white);
}

.product-modal__subbar-left {
  min-width: 0;
}

.product-modal__subbar-title {
  font-family: var(--font-rubik);
  font-size: 13px;
  font-weight: 500;
  line-height: 16.8px;
  color: var(--color-text-primary);
  margin: 0 0 4px;
  word-break: break-word;
}

.product-modal__subbar-subtitle {
  font-family: var(--font-rubik);
  font-size: 12px;
  font-weight: 400;
  line-height: 16.8px;
  color: var(--color-text-sub);
  margin: 0;
}

.product-modal__subbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.product-modal__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.product-modal__import-btn {
  height: 35px;
  padding: 0 12px;
  background: var(--color-badge-ai-bg);
  border: 1px solid var(--color-border-indigo);
  color: var(--color-compliment-3);
  font-family: var(--font-rubik);
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.product-modal__import-btn:hover {
  background: var(--color-badge-ai-border);
}

/* Step 2 Table  */
.product-modal__table-container {
  padding: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: scroll;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--color-scrollbar-thumb) var(--color-bg-nav-btn-active);
}

.product-modal__table-container::-webkit-scrollbar {
  width: 6px;
  display: block;
}

.product-modal__table-container::-webkit-scrollbar-track {
  background: var(--color-bg-nav-btn-active);
  border-radius: 4px;
}

.product-modal__table-container::-webkit-scrollbar-thumb {
  background: var(--color-scrollbar-thumb);
  border-radius: 4px;
}

.product-modal__table-container::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-placeholder);
}

.product-modal__table-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-white);
  display: grid;
  grid-template-columns: 204px 1fr 117px 25px;
  gap: 20px;
  padding: 14px 36px 12px 36px;
  border-bottom: 1px solid var(--color-border-table);
  color: var(--color-theme-primary);
  font-family: var(--font-rubik);
  font-size: 12px;
  font-weight: 400;
  line-height: 16.8px;
  flex-shrink: 0;
  box-sizing: border-box;
  align-items: center;
}

.product-modal__table-header>.product-modal__col-param,
.product-modal__table-header>.product-modal__col-method,
.product-modal__table-header>.product-modal__col-unit,
.product-modal__table-header>.product-modal__col-action {
  font-size: 12px;
}

.product-modal__table-body {
  flex-shrink: 0;
}

.product-modal__row {
  display: grid;
  grid-template-columns: 204px 1fr 117px 25px;
  gap: 20px;
  align-items: center;
  padding: 0 36px;
  min-height: 55px;
  border-bottom: 1px solid var(--color-border-table);
  background: var(--color-white);
  transition: background 0.15s ease;
  box-sizing: border-box;
}

.product-modal__row:hover {
  background: rgba(249, 250, 251, 0.7);
}

.product-modal__row--new {
  min-height: 45px;
  background: var(--color-bg-row-new);
  border-top: 1px solid var(--color-border-focus-purple);
  border-bottom: 1px solid var(--color-border-focus-purple);
}

.product-modal__row--new:hover {
  background: var(--color-bg-row-new);
}

.product-modal__cell-param {
  font-family: var(--font-rubik);
  font-size: 13px;
  font-weight: 400;
  line-height: 16.8px;
  color: var(--color-text-primary);
  word-break: break-word;
}

.product-modal__cell-method {
  font-family: var(--font-rubik);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted-purple);
  line-height: 16.8px;
  word-break: break-word;
}

.product-modal__cell-unit {
  font-family: var(--font-rubik);
  font-size: 13px;
  font-weight: 400;
  line-height: 16.8px;
  color: var(--color-text-muted-purple);
  word-break: break-word;
}

.product-modal__cell-action {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal__row-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-rubik);
  font-size: 13px;
  font-weight: 400;
  line-height: 16.8px;
  color: var(--color-text-primary);
  outline: none;
  padding: 0;
  box-sizing: border-box;
}

.product-modal__row-input::placeholder {
  color: var(--color-text-sub);
}

.product-modal__del-btn {
  width: 25px;
  height: 25px;
  border: 1px solid var(--color-border-input-light);
  border-radius: 5px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.product-modal__del-btn:hover {
  border-color: var(--color-error);
  background: var(--color-error-bg-red);
}

.product-modal__del-btn:hover svg path {
  fill: var(--color-error);
}

.product-modal__add-row-wrap {
  display: flex;
  justify-content: center;
  padding: 18px 0;
  flex-shrink: 0;
}

.product-modal__add-row-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 35px;
  padding: 0 14px;
  background: var(--color-white);
  border: 1px solid var(--color-border-sky);
  color: var(--color-compliment-3);
  font-family: var(--font-rubik);
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.product-modal__add-row-btn>span{
  font-size: 13px;
} 

.product-modal__add-row-btn:hover {
  background: var(--color-sky-bg);
  border-color: var(--color-compliment-3);
}


/* Modal Responsive - Tablet & Laptops (max-width: 900px) */
@media (max-width: 900px) {
  .product-modal {
    width: calc(100vw - 32px);
    height: auto;
    max-height: calc(100vh - 32px);
  }

  .product-modal__subbar {
    padding: 0 24px;
  }

  .product-modal__table-header,
  .product-modal__row {
    padding: 0 24px;
    gap: 16px;
    grid-template-columns: 190px 1fr 110px 30px;
  }

  .product-modal__footer {
    padding: 16px 24px;
  }
}

/* Modal Responsive - Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .product-modal-backdrop {
    padding: 12px;
    align-items: center;
  }

  .product-modal {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 24px);
    border-radius: 12px;
    margin: auto;
  }

  .product-modal__header {
    padding: 14px 16px;
    gap: 12px;
  }

  .product-modal__header-left {
    gap: 12px;
    min-width: 0;
  }

  .product-modal__icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }

  .product-modal__icon-badge svg {
    width: 17px;
    height: 22px;
  }

  .product-modal__title {
    font-size: 15px;
    line-height: 1.3;
  }

  .product-modal__subtitle {
    font-size: 11px;
    line-height: 1.3;
  }

  /* Step 1 Mobile Adjustments */
  .product-modal__body {
    padding: 20px 16px;
  }

  /* Step 2 Subbar Mobile */
  .product-modal__subbar {
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 12px;
  }

  .product-modal__subbar-left {
    width: 100%;
  }

  .product-modal__subbar-title {
    margin-bottom: 2px;
  }

  .product-modal__subbar-subtitle {
    font-size: 12px;
  }

  .product-modal__subbar-right {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .product-modal__search-icon {
    left: 10px;
    width: 14px;
    height: 14px;
  }

  .product-modal__import-btn {
    flex-shrink: 0;
    height: 35px;
    padding: 0 12px;
    font-size: 12px;
    gap: 5px;
  }

  /* Step 2 Table Mobile Scroll */
  .product-modal__table-container {
    padding: 0;
    overflow-x: auto;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    flex-grow: 1;
    min-height: 0;
  }

  .product-modal__table-header {
    min-width: 580px;
    padding: 10px 16px;
    gap: 12px;
    grid-template-columns: 170px 1fr 100px 30px;
    font-size: 11px;
  }

  .product-modal__table-header>.product-modal__col-param,
  .product-modal__table-header>.product-modal__col-method,
  .product-modal__table-header>.product-modal__col-unit,
  .product-modal__table-header>.product-modal__col-action {
    font-size: 11px;
  }

  .product-modal__table-body {
    min-width: 580px;
  }

  .product-modal__row {
    min-width: 580px;
    padding: 0 16px;
    gap: 12px;
    grid-template-columns: 170px 1fr 100px 30px;
    min-height: 48px;
  }

  .product-modal__row--new {
    min-height: 44px;
  }

  .product-modal__cell-param,
  .product-modal__cell-method,
  .product-modal__cell-unit,
  .product-modal__row-input {
    font-size: 12px;
    line-height: 1.4;
  }

  .product-modal__add-row-wrap {
    padding: 14px 16px;
    position: sticky;
    left: 0;
  }

  .product-modal__add-row-btn {
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
  }

  .product-modal__add-row-btn>span{
    font-size: 12px;
  } 

  /* Footer Mobile */
  .product-modal__footer {
    padding: 12px 16px;
    gap: 12px;
  }

  .product-modal__btn-secondary {
    font-size: 13px;
    padding: 6px 4px;
  }

  .product-modal__btn-primary {
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
    min-width: 140px;
  }
}

/* Small Mobile Screen Adjustments (max-width: 480px) */
@media (max-width: 480px) {
  .product-modal-backdrop {
    padding: 6px;
  }

  .product-modal {
    max-height: calc(100vh - 12px);
    border-radius: 10px;
  }

  .product-modal__header {
    padding: 12px 14px;
  }

  .product-modal__subbar {
    padding: 12px 14px;
    gap: 10px;
  }

  .product-modal__subbar-right {
    flex-wrap: wrap;
    gap: 8px;
  }

  .product-modal__import-btn {
    width: 100%;
    justify-content: center;
  }

  .product-modal__table-header {
    padding: 10px 14px;
  }

  .product-modal__row {
    padding: 0 14px;
  }

  .product-modal__footer {
    padding: 10px 14px;
  }

  #btnSaveCatalog {
    padding: 0 12px;
    font-size: 12px;
  }
}