/* ============================================================
   help.css — Help & Support Page (/profile/help)
   Namespace prefix: boh-help
   ============================================================ */

.boh-help {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.boh-help__desc {
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
  font-size: 14px;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.boh-help__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.boh-help__card {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--boh-color-surface);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--boh-shadow-card);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease;
  text-decoration: none;
}

.boh-help__card:active {
  transform: scale(0.98);
}

.boh-help__icon-box {
  width: 3rem;
  height: 3rem;
  background-color: var(--boh-color-bg);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.boh-help__icon-box svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--boh-color-primary);
}

.boh-help__card-title {
  color: var(--boh-color-primary);
  font-weight: var(--boh-font-weight-700);
  font-size: 16px;
  margin: 0;
  line-height: 1.2;
}

.boh-help__card-desc {
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
  font-size: 13px;
  margin: 0.25rem 0 0 0;
  line-height: 1.2;
}

/* Header styling */
.boh-help__header {
  padding: 2.5rem var(--boh-space-screen) 0.625rem var(--boh-space-screen);
  flex-shrink: 0;
  background-color: var(--boh-color-bg);
  position: relative;
  z-index: 10;
}

.boh-help__header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.boh-help__header-back {
  padding: 0.5rem;
  margin-left: -0.5rem;
  color: var(--boh-color-primary);
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.boh-help__header-back svg {
  width: 1.5rem;
  height: 1.5rem;
}

.boh-help__header-title {
  font-family: var(--boh-font-sans);
  font-weight: var(--boh-font-weight-700);
  color: var(--boh-color-primary);
  font-size: var(--boh-font-size-navtitle);
  margin: 0;
}

/* Call Dialog styling */
.boh-help__modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  box-sizing: border-box;
}

.boh-help__modal-overlay--bottom {
  align-items: flex-end;
  padding: 0;
}

.boh-help__modal-overlay--open {
  display: flex;
}

.boh-help__modal-container {
  max-width: 320px;
  width: 100%;
  border-radius: 24px;
  background-color: var(--boh-color-surface);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.boh-help__modal-container--bottom {
  max-width: 100%;
  width: 100%;
  border-radius: 24px 24px 0 0;
  text-align: left;
  padding-bottom: 0.875rem;
}

.boh-help__call-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--boh-color-bg);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

.boh-help__call-icon-box svg {
  color: var(--boh-color-primary);
  width: 1.75rem;
  height: 1.75rem;
}

.boh-help__modal-title {
  font-family: var(--boh-font-serif);
  color: var(--boh-color-primary);
  font-size: 20px;
  font-weight: var(--boh-font-weight-600);
  margin: 0;
}

.boh-help__modal-title--dialog {
  margin-bottom: 0.25rem;
}

.boh-help__modal-desc {
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
  font-size: 13px;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.boh-help__modal-hotline {
  color: var(--boh-color-primary);
  font-weight: var(--boh-font-weight-700);
  font-size: 18px;
  letter-spacing: 0.05em;
  margin: 0 0 1.5rem 0;
}

.boh-help__modal-actions {
  display: flex;
  gap: 0.75rem;
}

.boh-help__modal-cancel {
  flex: 1;
  background-color: var(--boh-color-bg);
  color: var(--boh-color-primary);
  font-weight: var(--boh-font-weight-700);
  font-size: 14px;
  padding: 0.75rem 0;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.boh-help__modal-cancel:active {
  transform: scale(0.98);
}

.boh-help__modal-confirm {
  flex: 1;
  background-color: var(--boh-color-primary);
  color: var(--boh-color-surface);
  font-weight: var(--boh-font-weight-700);
  font-size: 14px;
  padding: 0.75rem 0;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  transition: transform 0.15s ease;
}

.boh-help__modal-confirm:active {
  transform: scale(0.98);
}

/* Ask Modal specific */
.boh-help__modal-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.boh-help__modal-close {
  background-color: transparent;
  color: color-mix(in srgb, var(--boh-color-muted) 50%, transparent);
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boh-help__modal-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.boh-help__form-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.boh-help__field {
  display: flex;
  flex-direction: column;
}

.boh-help__field-label {
  color: var(--boh-color-primary);
  font-weight: var(--boh-font-weight-700);
  font-size: 12px;
  margin-bottom: 0.375rem;
}

.boh-help__select {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--boh-color-bg);
  border: 1px solid color-mix(in srgb, var(--boh-color-border) 10%, transparent);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 16px;
  color: var(--boh-color-primary);
  outline: none;
  font-family: var(--boh-font-sans);
}

.boh-help__textarea {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--boh-color-bg);
  border: 1px solid color-mix(in srgb, var(--boh-color-border) 10%, transparent);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 16px;
  color: var(--boh-color-primary);
  outline: none;
  resize: none;
  font-family: var(--boh-font-sans);
}

.boh-help__send-btn {
  width: 100%;
  background-color: var(--boh-color-primary);
  color: var(--boh-color-surface);
  font-weight: var(--boh-font-weight-700);
  font-size: 14px;
  padding: 0.875rem 0;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.15s ease;
}

.boh-help__send-btn svg {
  width: 1rem;
  height: 1rem;
}

.boh-help__send-btn:active {
  transform: scale(0.98);
}
/* BOH.Web reused .boh-favorites__main here by mistake; the SPA view uses the
   correct namespace, so the scroll container is defined properly. */
.boh-help__main {
  flex: 1;
  overflow-y: auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.boh-help__main::-webkit-scrollbar {
  display: none;
}

/* ── SPA client-render states ──────────────────────────────────────────────
   Added for BOH.SPA: data arrives asynchronously, so these pages need
   loading / error / empty placeholders the server-rendered BOH.Web did not. */
.boh-help__loading,
.boh-help__error {
  font-size: 13px;
  color: var(--boh-color-primary);
  padding: 1rem 0;
  text-align: center;
}

.boh-help__error {
  color: #A8584E;
}
