/* onweb_form v1.2.2 (c) ONWEB */
:root { --owf-accent: #4f46e5; --owf-accent2: #8b5cf6; --owf-bottom: 24px; }

/* ---------- 플로팅 버튼 ---------- */
#owf-root { position: fixed; bottom: var(--owf-bottom); z-index: 99980; }
#owf-root.owf-pos-right { right: 20px; }
#owf-root.owf-pos-left  { left: 20px; }

.owf-fab {
  width: 58px; height: 58px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, var(--owf-accent), var(--owf-accent2));
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--owf-accent) 45%, transparent), 0 2px 8px rgba(0,0,0,.12);
  transition: transform .18s ease, box-shadow .18s ease;
}
@supports not (color: color-mix(in srgb, red, blue)) {
  .owf-fab { box-shadow: 0 6px 20px rgba(0,0,0,.28); }
}
.owf-fab:hover { transform: translateY(-2px) scale(1.05); }
.owf-fab:active { transform: scale(.96); }
.owf-fab svg { width: 27px; height: 27px; }

/* 다중 폼 선택 메뉴 */
.owf-menu {
  position: absolute; bottom: 70px; width: 250px;
  background: #fff; border: 1px solid #ececf4; border-radius: 16px;
  box-shadow: 0 12px 32px rgba(30,30,60,.16); overflow: hidden;
}
.owf-pos-right .owf-menu { right: 0; }
.owf-pos-left  .owf-menu { left: 0; }
.owf-menu button {
  display: block; width: 100%; text-align: left; border: 0; background: #fff;
  padding: 13px 16px; cursor: pointer; border-bottom: 1px solid #f4f4f8;
  transition: background .12s ease;
}
.owf-menu button:last-child { border-bottom: 0; }
.owf-menu button:hover { background: #f7f7fc; }
.owf-menu strong { display: block; font-size: 14px; color: #26263a; }
.owf-menu span { display: block; font-size: 12px; color: #9a9ab0; margin-top: 2px; }

/* ---------- 플로팅 패널 ---------- */
.owf-panel {
  position: absolute; bottom: 70px; width: 362px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid #ececf4; border-radius: 18px;
  box-shadow: 0 16px 48px rgba(30,30,60,.2); overflow: hidden;
  display: flex; flex-direction: column; max-height: min(650px, calc(100vh - 120px));
}
.owf-pos-right .owf-panel { right: 0; }
.owf-pos-left  .owf-panel { left: 0; }

.owf-panel-head {
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--owf-accent), var(--owf-accent2));
  display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto;
}
.owf-panel-head strong { font-size: 15.5px; color: #fff; display: block; letter-spacing: -.2px; }
.owf-panel-head span { font-size: 12px; color: rgba(255,255,255,.82); display: block; margin-top: 3px; }
.owf-close {
  border: 0; background: rgba(255,255,255,.16); cursor: pointer; color: #fff;
  font-size: 17px; line-height: 1; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  transition: background .12s ease;
}
.owf-close:hover { background: rgba(255,255,255,.3); }
.owf-panel-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 폼 공용 ---------- */
.owf-form { font-size: 14px; color: #333; }
.owf-badge {
  margin: 14px 18px 0; padding: 9px 13px; border-radius: 10px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--owf-accent) 9%, #fff),
    color-mix(in srgb, var(--owf-accent2) 9%, #fff));
  color: var(--owf-accent); font-size: 12.5px; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--owf-accent) 18%, #fff);
}
@supports not (color: color-mix(in srgb, red, blue)) {
  .owf-badge { background: #f2f2fb; border-color: #e4e4f4; }
}
.owf-inline .owf-badge { margin: 14px 18px 0; }
.owf-fields { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 13px; }
.owf-label { display: block; font-size: 12.5px; color: #77778c; margin-bottom: 5px; font-weight: 500; }
.owf-label em, .owf-check em { color: #e05b5b; font-style: normal; }
.owf-input {
  width: 100%; box-sizing: border-box; height: 42px; padding: 0 13px;
  border: 1.5px solid #e4e4ec; border-radius: 11px; font-size: 14px;
  background: #fafafc; color: #222; transition: border-color .15s ease, background .15s ease;
}
.owf-input:focus {
  outline: none; border-color: var(--owf-accent); background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--owf-accent) 12%, transparent);
}
@supports not (color: color-mix(in srgb, red, blue)) {
  .owf-input:focus { box-shadow: none; }
}
textarea.owf-ta { height: 74px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
select.owf-input { appearance: auto; }
input[type="date"].owf-input { line-height: 40px; }

.owf-check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 13px; color: #555; position: relative; }
/* 테마 CSS가 네이티브 체크박스를 숨겨도 동작하도록 자체 그리기 방식 사용 */
.owf-check input {
  position: absolute !important; opacity: 0 !important; width: 20px; height: 20px;
  margin: 0; left: 0; top: 0; display: block !important; appearance: none;
}
.owf-cbox {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px;
  border: 1.5px solid #d9d9e4; border-radius: 6px; background: #fff;
  position: relative; transition: background .13s ease, border-color .13s ease;
}
.owf-check input:checked + .owf-cbox {
  background: linear-gradient(135deg, var(--owf-accent), var(--owf-accent2));
  border-color: transparent;
}
.owf-check input:checked + .owf-cbox::after {
  content: ''; position: absolute; left: 6.5px; top: 3px; width: 4.5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(43deg);
}
.owf-check input:focus-visible + .owf-cbox {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--owf-accent) 15%, transparent);
}
@supports not (color: color-mix(in srgb, red, blue)) {
  .owf-check input:focus-visible + .owf-cbox { box-shadow: 0 0 0 3px rgba(120,120,200,.25); }
}
.owf-check span { line-height: 1.55; }
.owf-check-desc { font-size: 12px; color: #9a9ab0; margin: 5px 0 0 29px; line-height: 1.5; }

/* 허니팟 */
.owf-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* 동의 */
.owf-consent { background: #f7f7fa; border-radius: 11px; padding: 11px 13px; position: relative; }
.owf-consent-toggle {
  position: absolute; right: 11px; top: 11px; border: 0; background: none;
  color: var(--owf-accent); font-size: 12px; cursor: pointer; text-decoration: underline;
}
.owf-consent-body { margin-top: 9px; padding-top: 9px; border-top: 1px solid #e9e9ef; font-size: 12px; color: #8a8a9a; line-height: 1.65; }

/* 캡차 */
.owf-captcha { display: flex; align-items: center; gap: 8px; }
.owf-captcha-q {
  flex: 0 0 auto; font-family: monospace; font-size: 14px; font-weight: 700;
  padding: 10px 13px; border-radius: 11px; user-select: none;
  background: linear-gradient(135deg, var(--owf-accent), var(--owf-accent2)); color: #fff;
  letter-spacing: 1px;
}
.owf-captcha .owf-input { flex: 1; }

/* 메시지 / 제출 */
.owf-msg { padding: 10px 13px; border-radius: 10px; font-size: 13px; background: #fdefef; color: #c0392b; border: 1px solid #f6d9d9; }
.owf-submit {
  width: 100%; height: 48px; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, var(--owf-accent), var(--owf-accent2));
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.2px;
  box-shadow: 0 5px 16px color-mix(in srgb, var(--owf-accent) 35%, transparent);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
@supports not (color: color-mix(in srgb, red, blue)) {
  .owf-submit { box-shadow: 0 5px 16px rgba(0,0,0,.18); }
}
.owf-submit:hover { transform: translateY(-1px); }
.owf-submit:active { transform: none; }
.owf-submit:disabled { opacity: .55; cursor: default; transform: none; }

/* 마감 */
.owf-closed { padding: 44px 20px; text-align: center; color: #888; }
.owf-closed i { font-style: normal; font-size: 30px; display: block; margin-bottom: 10px; opacity: .7; }
.owf-closed p { margin: 0; font-size: 14px; line-height: 1.6; }

/* 완료 */
.owf-done { padding: 38px 24px; text-align: center; }
.owf-done-icon {
  width: 56px; height: 56px; margin: 0 auto 15px; border-radius: 50%;
  background: linear-gradient(135deg, var(--owf-accent), var(--owf-accent2));
  color: #fff; font-size: 25px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--owf-accent) 35%, transparent);
}
@supports not (color: color-mix(in srgb, red, blue)) {
  .owf-done-icon { box-shadow: 0 6px 18px rgba(0,0,0,.16); }
}
.owf-done-title { margin: 0 0 13px; font-size: 16.5px; font-weight: 700; color: #26263a; }
.owf-done-no {
  display: inline-block; font-family: monospace; font-size: 17px; letter-spacing: 1.5px;
  background: #f4f4f8; border: 1px dashed #d6d6e4; border-radius: 10px;
  padding: 10px 18px; color: #3a3a52; margin-bottom: 13px;
}
.owf-done-desc { margin: 0 0 16px; font-size: 13px; color: #8a8a9a; line-height: 1.7; }
.owf-done-link { font-size: 13px; color: var(--owf-accent); text-decoration: underline; }

/* ---------- 인라인 ---------- */
.owf-inline { max-width: 480px; margin: 0 auto; }
.owf-inline .owf-form {
  border: 1px solid #ececf4; border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 4px 20px rgba(30,30,60,.06);
}
.owf-head-inline {
  padding: 18px; background: linear-gradient(135deg, var(--owf-accent), var(--owf-accent2));
}
.owf-head-txt strong { display: block; font-size: 16.5px; color: #fff; letter-spacing: -.2px; }
.owf-head-txt span { display: block; font-size: 12.5px; color: rgba(255,255,255,.82); margin-top: 4px; }

@media (max-width: 480px) {
  .owf-panel { width: calc(100vw - 32px); }
}

/* ---------- 날짜 캘린더 ---------- */
.owf-date { position: relative; }
.owf-date-btn {
  width: 100%; height: 42px; padding: 0 13px; cursor: pointer;
  border: 1.5px solid #e4e4ec; border-radius: 11px; background: #fafafc;
  display: flex; align-items: center; gap: 9px; font-size: 14px; color: #9a9ab0;
  transition: border-color .15s ease, background .15s ease; font-family: inherit;
}
.owf-date-btn svg { width: 17px; height: 17px; color: var(--owf-accent); flex: 0 0 auto; }
.owf-date-open .owf-date-btn, .owf-date-btn:focus { outline: none; border-color: var(--owf-accent); background: #fff; }
.owf-date-set .owf-date-btn { color: #222; background: #fff; }
.owf-date-btn.owf-date-err { border-color: #e05b5b; }

.owf-cal {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  width: 284px; max-width: 100%; background: #fff; border: 1px solid #ececf4;
  border-radius: 20px; box-shadow: 0 14px 40px rgba(30,30,60,.18); padding: 16px;
}
.owf-cal-up { top: auto; bottom: calc(100% + 6px); }

.owf-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.owf-cal-title { font-size: 15px; font-weight: 700; color: #26263a; letter-spacing: -.2px; }
.owf-cal-nav {
  width: 34px; height: 34px; border: 1px solid #ececf4; border-radius: 11px;
  background: #fff; cursor: pointer; font-size: 16px; color: #77778c;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s ease;
}
.owf-cal-nav:hover { background: #f6f6fa; }

.owf-cal-week { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.owf-cal-week span { text-align: center; font-size: 11.5px; font-weight: 700; color: #9a9ab0; padding: 4px 0; }
.owf-cal-week .owf-sun { color: #e05b5b; }
.owf-cal-week .owf-sat { color: #4c66e0; }

.owf-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.owf-cal-day {
  height: 34px; border: 0; background: none; cursor: pointer; border-radius: 50%;
  font-size: 13.5px; color: #3a3a52; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  transition: background .1s ease;
}
.owf-cal-day:hover { background: #f2f2f8; }
.owf-cal-day.owf-sun { color: #e05b5b; }
.owf-cal-day.owf-sat { color: #4c66e0; }
.owf-cal-day.owf-out { color: #cfcfda; }
.owf-cal-day.owf-out.owf-sun { color: #f0bcbc; }
.owf-cal-day.owf-out.owf-sat { color: #bcc7f0; }
.owf-cal-day.owf-dis { color: #d8d8e2; cursor: default; }
.owf-cal-day.owf-dis:hover { background: none; }
.owf-cal-day.owf-today { box-shadow: inset 0 0 0 1.5px #e4e4ec; }
.owf-cal-day.owf-sel { background: #1c1c1a; color: #fff !important; font-weight: 700; }
.owf-cal-day.owf-sel:hover { background: #1c1c1a; }

/* ---------- 테마 CSS 간섭 방지 하드닝 ----------
   스킨/테마가 input 폭, text-align, 패딩 등을 전역으로 재정의해도
   폼 레이아웃이 무너지지 않도록 핵심 속성을 고정 */
.owf-inline, .owf-panel, .owf-menu { text-align: left; }
.owf-inline *, .owf-panel *, .owf-menu * { box-sizing: border-box; }

.owf-head-inline { padding: 18px !important; text-align: left; }
.owf-panel-head { padding: 16px 18px !important; text-align: left; }
.owf-head-txt strong, .owf-head-txt span,
.owf-panel-head strong, .owf-panel-head span { margin: 0; padding: 0; text-align: left; }

.owf-fields { padding: 14px 18px 18px !important; text-align: left; }
.owf-field { margin: 0; padding: 0; width: 100%; text-align: left; float: none; }
.owf-label { width: 100%; margin: 0 0 5px; text-align: left; float: none; }
.owf-badge { text-align: left; }

.owf-form input.owf-input,
.owf-form select.owf-input,
.owf-form textarea.owf-input {
  width: 100% !important; max-width: none !important; min-width: 0 !important;
  display: block !important; margin: 0 !important; float: none !important;
  text-align: left; text-indent: 0;
}
.owf-form input.owf-input, .owf-form select.owf-input { height: 42px !important; }
.owf-form textarea.owf-ta { height: 74px !important; }

.owf-form .owf-date { width: 100% !important; }
.owf-form .owf-date-btn {
  width: 100% !important; max-width: none !important; margin: 0 !important;
  text-align: left; justify-content: flex-start;
}
.owf-captcha { justify-content: flex-start; }
.owf-captcha .owf-input { width: auto !important; flex: 1 1 auto !important; }
.owf-check { justify-content: flex-start; text-align: left; width: 100%; }
.owf-check-desc { text-align: left; }
.owf-consent { text-align: left; width: 100%; }
.owf-msg { text-align: left; }
.owf-submit { width: 100% !important; max-width: none !important; margin: 0 !important; float: none !important; }
.owf-done { text-align: center !important; }
.owf-cal { text-align: center; }
.owf-cal-head { text-align: left; }
