/* Neuphoria Support Center — guide-submission-tool 톤 이식 (라이트 테마, 로고 블루 기반) */
:root {
  --brand: #5b7ba8;        /* 메인 블루 (로고 색) */
  --brand-dark: #3f5a85;   /* 진한 블루 (호버/강조) */
  --brand-soft: #e9eff7;   /* 옅은 블루 (배경 액센트) */
  --brand-soft-2: #dce5f1;
  --ink: #1b2433;
  --ink-2: #3b475c;
  --sub: #6b7891;
  --line: #e2e7ef;
  --line-soft: #eef1f7;
  --bg: #f5f7fb;
  --card: #ffffff;
  --accent: #5b7ba8;       /* 버튼/포커스 = 브랜드 블루 */
  --accent-ink: #ffffff;
  --danger: #d04949;
  --ok: #34a88b;
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* hidden 속성이 .field input 등에 덮이지 않게 */
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(900px 400px at 80% -10%, #dce5f1 0%, transparent 60%),
    radial-gradient(700px 350px at 10% 10%, #e9eff7 0%, transparent 55%),
    var(--bg);
  min-height: 100vh;
  color: var(--ink);
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Segoe UI', -apple-system, 'Malgun Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── 탑바 (가운데 정렬 + 우상단 언어 배지) ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 28px 18px;
  background: #ffffffe6;
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 #ffffff inset, 0 2px 14px rgba(91, 123, 168, 0.06);
}
.logo-img {
  height: 180px;
  width: auto;
  display: block;
  object-fit: contain;
  margin: -30px 0 -50px; /* PNG 위아래 투명 여백 시각 보정 (guide-tool 동일) */
  user-select: none;
  pointer-events: none;
}
.official {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--brand-dark);
  border: 1px solid var(--brand-soft-2);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--brand-soft);
}
.lang-switcher {
  position: absolute;
  top: 18px;
  inset-inline-end: 24px;
  z-index: 51;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.lang-btn:hover {
  border-color: var(--brand-soft-2);
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.lang-caret { font-size: 9px; color: var(--sub); }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(63, 90, 133, 0.16);
  min-width: 180px;
  max-height: 320px;
  overflow: auto;
  z-index: 50;
  padding: 6px;
}
.lang-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: 0;
  text-align: start;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--ink);
}
.lang-item:hover { background: var(--brand-soft); }
.lang-item.active { font-weight: 700; color: var(--brand-dark); }

/* ── 본문 ── */
.wrap { max-width: 660px; margin: 0 auto; padding: 28px 18px 60px; }
.hero h1 { font-size: 26px; margin: 8px 0 6px; }
.hero p { color: var(--sub); margin: 0 0 22px; line-height: 1.6; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 4px 18px rgba(20, 24, 60, 0.05);
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) {
  .row { grid-template-columns: 1fr; gap: 0; }
  .topbar { padding: 14px 14px 10px; gap: 2px; }
  .logo-img { height: 110px; margin: -18px 0 -30px; } /* guide-tool 모바일 동일 */
  .lang-switcher { top: 10px; inset-inline-end: 10px; }
}

.field { margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.req { color: var(--danger); margin-inline-start: 3px; }
.opt { color: var(--sub); font-weight: 500; font-size: 12px; }
.label-row { display: flex; align-items: center; justify-content: space-between; }
.label-row .req { margin-inline-end: auto; }
.counter { font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fbfcfe;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field input.prefilled { background: var(--brand-soft); }
.field input.invalid,
.field textarea.invalid { border-color: var(--danger); }
.field input.invalid:focus,
.field textarea.invalid:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }

/* 인라인 에러 */
.err {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--danger);
}

/* 이미지 첨부 */
.img-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.img-cell {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.img-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-del {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(27, 36, 51, 0.72);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-del:hover { background: var(--danger); }
.img-add {
  margin-top: 10px;
  background: #fff;
  border: 1px dashed var(--brand-soft-2);
  color: var(--brand-dark);
  border-radius: 9px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.img-add:hover { border-color: var(--brand); background: var(--brand-soft); }

.mail-notice {
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-2);
  color: var(--brand-dark);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}

.privacy {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--sub);
  text-align: center;
}

.turnstile-wrap { margin-bottom: 8px; min-height: 0; }

.submit {
  width: 100%;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 10px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.submit:hover { filter: brightness(1.07); }
.submit:disabled { opacity: 0.6; cursor: default; }

/* ── 완료 화면 ── */
.ok {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 24px;
}
.ok .check {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 28px;
  line-height: 56px;
}
.ok h2 { margin: 0 0 8px; }
.ok p { color: var(--sub); margin: 0 0 16px; }
.ticket-no {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-2);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ok button {
  display: block;
  margin: 0 auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink);
}
.ok button:hover { background: var(--brand-soft); }

/* RTL(아랍어) */
[dir='rtl'] .lang-switcher { margin-left: 0; margin-right: auto; }
