/* 동승 홈페이지 — 히어로 AI 검색창
   기존 스타일시트 끝에 붙이거나 별도 파일로 head 에 추가한다.
   히어로 배경 사진 위에 올라가므로 반투명 + 흰 글자를 기본으로 한다. */

.ds-aisearch {
  max-width: 860px;
  margin: 0 auto 18px;
}

.ds-aisearch__form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 18px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 14px;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color .15s ease, background .15s ease;
}
.ds-aisearch__form:focus-within {
  border-color: #fff;
  background: rgba(255, 255, 255, .22);
}

.ds-aisearch__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 17px;
  font-family: inherit;
  outline: none;
}
.ds-aisearch__input::placeholder { color: rgba(255, 255, 255, .72); }

.ds-aisearch__btn {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.ds-aisearch__btn:hover { background: rgba(255, 255, 255, .18); }

.ds-aisearch__note {
  margin: 10px 2px 0;
  color: rgba(255, 255, 255, .88);
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.ds-aisearch__note b { color: #fff; font-weight: 700; }

@media (max-width: 560px) {
  .ds-aisearch__form { padding-left: 14px; }
  .ds-aisearch__input { font-size: 15px; padding: 12px 0; }
  .ds-aisearch__note { font-size: 11.5px; }
}

/* ── AI 상담 레이어 팝업 ───────────────────────────────────────── */
.ds-ailayer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ds-ailayer[hidden] { display: none; }

.ds-ailayer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 40, .58);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.ds-ailayer__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(880px, 100%);
  max-height: 92vh;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 20, 40, .35);
}

.ds-ailayer__bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e6ef;
  background: #f9faff;
}
.ds-ailayer__title { font-size: 14px; font-weight: 700; color: #142046; }
.ds-ailayer__close {
  width: 34px; height: 34px;
  margin: 0 0 0 auto; padding: 0;
  border: 0; border-radius: 8px;
  background: transparent;
  color: #6b7280;
  font-size: 26px; line-height: 1;
  cursor: pointer;
}
.ds-ailayer__close:hover { background: #eef2ff; color: #1839c4; }

.ds-ailayer__frame {
  flex: 1 1 auto;
  width: 100%;
  height: 78vh;          /* iframe 이 postMessage 로 실제 높이를 알려오면 조정된다 */
  border: 0;
  display: block;
}

@media (max-width: 560px) {
  .ds-ailayer { padding: 0; }
  .ds-ailayer__panel { width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
  .ds-ailayer__frame { height: calc(100vh - 59px); }
}
