* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #fff;
  font-family: "SamsungOne", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.phone {
  --bottom-height: 86px;
  width: 360px;
  height: 720px;
  background: url("../assets/resources/images/bg1.png") center / cover no-repeat;
  border-radius: 16px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.51);
  overflow: hidden;
  position: relative;
}

.topbar {
  width: 359px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.topbar-title {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
}

.top-icons {
  display: flex;
  gap: 16px;
}

.top-icon {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}


.content {
  padding: 32px 16px 0;
  height: calc(720px - 48px - var(--bottom-height));
  overflow-y: auto;
  overflow-x: hidden;
}

.ai-contents {
  width: 328px;
}

.ai-intro-hello {
  margin: 0;
  font-size: 24px;
  line-height: 31.92px;
  font-weight: 700;
  color: #000;
}

.ai-intro-question {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 26.6px;
  font-weight: 400;
  color: #000;
}

.ai-suggestions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.ai-chip {
  height: 32px;
  border: 1px solid #eee;
  border-radius: 16px;
  background: #fff;
  padding: 8px 16px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
}

.ai-support {
  margin: 40px 0 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: #000;
}

.ai-support-link {
  color: #006bea;
}

.ai-plus-contents {
  width: 328px;
}

.ai-plus-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-plus-icon {
  width: 25px;
  height: 25px;
}

.ai-plus-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.ai-plus-message {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: #000;
}

.ai-plus-card {
  margin-top: 24px;
  width: 328px;
  min-height: 128px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  display: flex;
  gap: 16px;
}

.ai-plus-thumb {
  width: 96px;
  height: 96px;
  background: #f2f2f2;
  flex: none;
}

.ai-plus-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.ai-plus-text {
  flex: 1;
}

.ai-plus-text h2 {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: #000;
}

.ai-plus-meta {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  color: #000;
}

.ai-plus-index-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ai-plus-energy {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.ai-plus-energy span {
  font-size: 10px;
  line-height: 13.3px;
  font-weight: 400;
  color: #000;
  white-space: nowrap;
}

.ai-plus-energy img {
  width: 30px;
  height: 16px;
  display: block;
}

.ai-plus-charger {
  width: 24px;
  height: 16px;
  display: flex;
  align-items: center;
}

.ai-plus-charger img {
  width: 12px;
  height: 16px;
  display: block;
}

.ai-plus-price {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: #000;
}

.ai-plus-rating {
  margin-top: 24px;
}

.ai-plus-followup-rating {
  margin-top: 24px;
}

.ai-plus-followup-desc {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: #000;
}

.ai-plus-followup .ai-support {
  margin-top: 8px;
}

.ai-plus-followup-cta {
  margin-top: 16px;
  width: 171px;
  height: 32px;
  border: 0;
  border-radius: 16px;
  background: #2189ff;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  padding: 8px 16px;
}

.ai-plus-followup-note {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: #000;
}

.ai-plus-rating-title {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: #000;
}

.ai-plus-stars {
  margin-top: 12px;
  display: flex;
  gap: 4px;
}

.ai-plus-star {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: url('/hosthub/assets/resources/images/icon-review-rating-star.svg') no-repeat 50% 50%;
  background-size: 100% auto;
  cursor: pointer;
}

.ai-plus-star.selected {
  background-image: url('/hosthub/assets/resources/images/icon-review-rating-star-selected.svg');
}

.ai-plus-contents-mini {
  width: 328px;
  margin-top: 24px;
}

.ai-plus-mini-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-plus-mini-message {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: #000;
}

.ai-plus-mini-rating {
  margin-top: 24px;
}

.bottom {
  position: absolute;
  left: 0;
  width: 360px;
  bottom: 0;
  height: 114px;
  padding: 0;
  z-index: 1;
}

.bottom-default {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 360px;
  height: 86px;
  padding: 1px 0 0;
  background: transparent;
  z-index: 1;
}

.bottom-default__search {
  width: 328px;
  height: 42px;
  margin: 0 16px;
  border: 1px solid #2189ff;
  border-radius: 20px;
  background: #fff;
  padding: 7px 12px 7px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bottom-default__search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
  line-height: 22px;
  font-weight: 400;
  color: #000;
  min-width: 0;
}

.bottom-default__search input::placeholder {
  color: #757575;
}

.bottom-default__search-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bottom-default__icon-btn {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bottom-default__icon-btn--send {
  background: transparent;
  border-radius: 0;
}

.bottom-default__icon-btn--plus {
  background: transparent;
}

.bottom-default__icon-btn img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.bottom-default__caption {
  width: 360px;
  height: 40px;
  padding: 11px 35px;
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: #757575;
}

.bottom-default__caption a {
  margin-left: 0;
  color: #000;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 1px;
}

.bottom::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 360px;
  height: 90px;
  background: #faf9fc;
  border-radius: 0 0 16px 16px;
  z-index: -1;
}

.chip {
  width: 99px;
  height: 32px;
  margin: 0 auto;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: #000;
  background-color: #fff;
}

.actions {
  margin: 8px 16px 0;
  display: flex;
  gap: 8px;
}

.actions .cta {
  width: 160px;
  height: 32px;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

button {
  height: 32px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.cancel.cta--outlined.cta--black {
  border-color: #2189ff !important;
  background: transparent !important;
  color: #006bea !important;
}

.next.cta--contained.cta--emphasis {
  opacity: 0.2;
}

.next.cta--contained.cta--emphasis:disabled {
  opacity: 0.2;
  background: #2189ff;
  color: #fff;
  cursor: default;
}

.next.cta--contained.cta--emphasis.is-active {
  opacity: 1;
  background: #2189ff;
  color: #fff;
}

#bottom-cancel-btn:disabled,
#bottom-previous-btn:disabled,
.next.cta--contained.cta--emphasis:disabled {
  pointer-events: none;
  cursor: default;
}

.caption {
  margin-top: 8px;
  height: 26px;
  padding: 4px 38px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: #757575;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
}

.caption a {
  color: #000;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 1px;
}

/* ── Step 2: Your Review + Upload ── */

.ai-step2-review {
  margin-top: 24px;
}

.ai-step2-review-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ai-step2-edit-icon {
  flex-shrink: 0;
  display: block;
}

.ai-step2-review-title {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: #000;
}

.ai-step2-textarea {
  display: block;
  width: 100%;
  min-height: 51px;
  height: 51px;
  max-height: 184px;
  overflow-y: auto;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 16px;
  font-family: "SamsungOne", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 18.6px;
  color: #000;
  background: #fff;
  resize: none;
  box-sizing: border-box;
}

.ai-step2-textarea::placeholder {
  color: #555;
}

.ai-step2-textarea:focus {
  outline: none;
  border: 2px solid #2189ff;
  padding: 15px;
}

.ai-step2-counter {
  margin: 8px 0 0;
  padding: 0;
  text-align: right;
  font-size: 10px;
  line-height: 13.3px;
  color: #555;
}

.ai-step2-upload {
  margin-top: 24px;
}

.ai-step2-upload-header {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-step2-upload-title {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: #000;
}

.ai-step2-help-btn {
  width: 16px;
  height: 16px;
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
}

.ai-step2-upload-subtitle {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 13.3px;
  color: #555;
}

.ai-step2-upload-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ai-step2-upload-add {
  width: 88px;
  height: 88px;
  background: url('/hosthub/assets/resources/images/icon-dashed-border-box.svg') no-repeat center / 100%;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.ai-step2-upload-add:hover {
  opacity: 0.7;
}

.ai-step2-upload-thumb {
  position: relative;
  flex-shrink: 0;
}

.ai-step2-upload-thumb-media {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  border: 1px solid #eee;
  object-fit: cover;
  display: block;
}

.ai-step2-delete-btn {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 420px) {
  body {
    place-items: start center;
    background: #fff;
  }

  .phone {
    border-radius: 0;
    box-shadow: none;
    height: 100vh;
  }
}
