/* =========================================================================
   차놀자 렌트카 — 스타일 (styles.css)
   ========================================================================= */

/* ---------- 팔레트 & 토큰 ------------------------------------------------ */
:root {
  --brand: #54c3f1;
  --brand-dark: #2ea3d6;
  --brand-darker: #1a86b8;
  --brand-tint: #eaf7fd;
  --brand-tint-2: #f4fbfe;

  --ink: #16232b;
  --ink-2: #3d4d57;
  --muted: #6b7a84;
  --line: #e5eaee;
  --bg: #ffffff;
  --bg-soft: #f7fafc;

  --star: #f5b418;
  --danger: #e03e3e;
  --success: #22a06b;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 9px;

  --shadow-sm: 0 1px 3px rgba(22, 35, 43, .08);
  --shadow: 0 6px 22px rgba(22, 35, 43, .09);
  --shadow-lg: 0 18px 48px rgba(22, 35, 43, .16);

  --container: 1140px;
  --header-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", "맑은 고딕", Roboto, sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 리셋 --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; letter-spacing: -.02em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 버튼 --------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: .95rem; line-height: 1;
  transition: transform .12s var(--ease), box-shadow .2s var(--ease),
    background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--brand {
  background: var(--brand); color: #fff;
  box-shadow: 0 6px 16px rgba(84, 195, 241, .35);
}
.btn--brand:hover { background: var(--brand-dark); box-shadow: 0 8px 22px rgba(46, 163, 214, .42); }
.btn--ghost {
  background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .7);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }
.btn--sm { padding: 9px 16px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- 헤더 --------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.header__logo img { height: 32px; width: auto; }

.nav { display: flex; align-items: center; }
.nav__menu {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav__menu > li > a {
  display: block; padding: 9px 14px; border-radius: 8px;
  font-weight: 600; font-size: .95rem; color: var(--ink-2);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav__menu > li > a:hover { background: var(--brand-tint); color: var(--brand-darker); }
.nav__cta { margin-left: 8px; }
.nav__cta .btn { color: #fff; }
.nav__cta .btn:hover { color: #fff; }

.nav__toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 0; position: relative;
}
.nav__toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 27px; }
.nav__toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.nav__toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 히어로 ------------------------------------------------------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: #0f2a37 url("https://images.unsplash.com/photo-1502877338535-766e1452684a?auto=format&fit=crop&w=1600&q=70")
    center / cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(20, 60, 82, .92) 0%, rgba(46, 163, 214, .68) 55%, rgba(84, 195, 241, .55) 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  padding: 90px 20px 96px; max-width: 760px;
}
.hero__eyebrow {
  display: inline-block; margin: 0 0 16px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3);
  padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  backdrop-filter: blur(4px);
}
.hero__title { font-size: clamp(2rem, 6vw, 3.3rem); margin: 0 0 18px; text-shadow: 0 2px 16px rgba(0, 0, 0, .25); }
.hero__slogan { font-size: clamp(1rem, 2.6vw, 1.25rem); margin: 0 0 32px; opacity: .96; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 신뢰 지표 ---------------------------------------------------- */
.stats { background: var(--ink); color: #fff; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 34px 20px;
}
.stat { text-align: center; padding: 6px 8px; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 60%; background: rgba(255, 255, 255, .14);
}
.stat__value { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; color: var(--brand); letter-spacing: -.03em; }
.stat__value span { font-size: .55em; margin-left: 2px; color: #fff; font-weight: 700; }
.stat__label { font-size: .9rem; color: #c4ced4; margin-top: 4px; }

/* ---------- 섹션 공통 ---------------------------------------------------- */
.section { padding: 78px 0; }
.section--tint { background: var(--brand-tint-2); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section__eyebrow {
  color: var(--brand-dark); font-weight: 800; font-size: .82rem;
  letter-spacing: .12em; margin: 0 0 8px;
}
.section__title { font-size: clamp(1.55rem, 4vw, 2.2rem); }
.section__desc { color: var(--muted); margin: 14px 0 0; font-size: 1.02rem; }

.note { color: var(--muted); font-size: .86rem; }
.note--center { text-align: center; margin-top: 22px; }

/* 예약 확인 결과 (고객용) */
.reserve-results { max-width: 720px; margin: 24px auto 0; display: grid; gap: 14px; }
.reserve-results__title { font-size: 1rem; font-weight: 800; color: var(--ink); margin: 4px 0 2px; text-align: center; }
.reserve-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow-sm); padding: 16px 18px; }
.reserve-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.reserve-card__car { font-weight: 800; color: var(--ink); font-size: 1.02rem; }
.reserve-badge { font-size: .78rem; font-weight: 700; color: var(--brand-darker); background: var(--brand-tint); border: 1px solid var(--brand); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.reserve-card__dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 0; }
.reserve-card__dl > div { display: flex; gap: 8px; font-size: .9rem; }
.reserve-card__dl dt { color: var(--muted); min-width: 52px; flex: 0 0 auto; }
.reserve-card__dl dd { color: var(--ink-2); margin: 0; font-weight: 600; }
.reserve-empty { max-width: 720px; margin: 24px auto 0; text-align: center; color: var(--ink-2); background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius); padding: 26px 20px; font-weight: 600; }
.reserve-empty span { display: block; margin-top: 8px; font-size: .86rem; color: var(--muted); font-weight: 500; }
@media (max-width: 560px) { .reserve-card__dl { grid-template-columns: 1fr; } }
.reserve-badge.is-paid { color: #fff; background: var(--success); border-color: var(--success); }
.reserve-paidnote { margin: 12px 0 0; font-size: .82rem; color: var(--success); font-weight: 700; }
.reserve-pay-btn { margin-top: 12px; }
.reserve-cancel-btn { margin-top: 8px; }
.reserve-badge.is-cancelled { color: #fff; background: var(--danger); border-color: var(--danger); }
.reserve-card--cancelled { opacity: .72; }
.reserve-cancelnote { margin: 12px 0 0; font-size: .82rem; color: var(--danger); font-weight: 700; }

/* 결제 모달 (목업) */
.pay-amount { background: var(--brand-tint); border: 1px solid var(--brand); border-radius: var(--radius); padding: 14px 16px; margin: 4px 0 18px; }
.pay-amount__car { font-size: .86rem; color: var(--ink-2); margin-bottom: 6px; }
.pay-amount__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pay-amount__row span { color: var(--muted); font-size: .9rem; }
.pay-amount__row strong { font-size: 1.35rem; color: var(--brand-darker); }
.pay-methods { display: grid; gap: 8px; }
.pay-method { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.pay-method input { accent-color: var(--brand-dark); }
.pay-card { display: grid; gap: 4px; margin-top: 14px; }
.pay-receipt .summary { margin-top: 6px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* 예약가능 여부 배지 */
.avail { position: absolute; top: 10px; right: 10px; z-index: 2; font-size: .72rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.avail--on { background: var(--success); color: #fff; }
.avail--off { background: rgba(61, 77, 87, .92); color: #fff; }
.card--off .card__media img { filter: grayscale(.7); opacity: .82; }
.card--off .card__cta[disabled] { opacity: .7; cursor: not-allowed; }

/* 회원 UI */
.nav__member { display: flex; align-items: center; }
.member-link { background: none; border: 0; color: var(--brand-darker); font-weight: 700; font-size: .92rem; cursor: pointer; padding: 6px 4px; }
.member-link:hover { text-decoration: underline; }
.member-hi { font-weight: 700; color: var(--ink); font-size: .92rem; margin-right: 8px; }
.mtabs { display: flex; gap: 6px; margin: 4px 0 16px; border-bottom: 1px solid var(--line); }
.mtab { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 6px; font-weight: 700; color: var(--muted); cursor: pointer; }
.mtab.is-active { color: var(--brand-darker); border-bottom-color: var(--brand); }
.res-member { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; font-size: .9rem; color: var(--ink-2); }
.res-member.is-member { background: var(--brand-tint); border-color: var(--brand); }
.res-member__badge { font-size: .74rem; font-weight: 800; color: #fff; background: var(--brand-dark); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.res-member__badge--guest { background: var(--muted); }
.res-member .member-link { margin-left: auto; white-space: nowrap; }
.mtag { font-size: .68rem; font-weight: 800; color: var(--brand-darker); background: var(--brand-tint); border-radius: 999px; padding: 2px 7px; vertical-align: middle; }
.mtag--guest { color: var(--muted); background: var(--bg-soft); }

/* ---------- 필터 --------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filter {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  transition: all .18s var(--ease);
}
.filter:hover { border-color: var(--brand); color: var(--brand-darker); }
.filter.is-active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(84, 195, 241, .35); }

/* ---------- 그리드 & 카드 ------------------------------------------------ */
.grid { display: grid; gap: 24px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--reviews { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(22, 35, 43, .78); color: #fff; font-size: .76rem; font-weight: 700;
  padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(3px);
}
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card__title h3 { font-size: 1.22rem; }
.card__maker { font-size: .85rem; color: var(--muted); font-weight: 600; }
.card__meta { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.card__meta li { font-size: .82rem; color: var(--ink-2); background: var(--bg-soft); padding: 4px 10px; border-radius: 6px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .74rem; color: var(--brand-darker); background: var(--brand-tint); padding: 3px 9px; border-radius: 6px; font-weight: 600; }
.card__price {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  border-top: 1px dashed var(--line); padding-top: 14px; margin-top: auto;
}
.card__price .price-label { display: block; font-size: .74rem; color: var(--muted); margin-bottom: 2px; }
.card__price strong { font-size: 1.02rem; color: var(--ink); }
.card__cta { margin-top: 4px; }
.empty { text-align: center; color: var(--muted); grid-column: 1 / -1; padding: 40px 0; }

/* ---------- 폼 ----------------------------------------------------------- */
.card--form {
  max-width: 720px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.card--form.is-highlight { box-shadow: 0 0 0 4px rgba(84, 195, 241, .35), var(--shadow-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: .9rem; margin-bottom: 7px; color: var(--ink-2); }
.req { color: var(--danger); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(84, 195, 241, .2);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field textarea { resize: vertical; min-height: 84px; }
.field__error { color: var(--danger); font-size: .82rem; margin: 6px 0 0; min-height: 1em; }

/* ---------- 지점 안내 ---------------------------------------------------- */
.branch { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: start; }
.branch__subtitle { font-size: 1.1rem; margin: 26px 0 12px; color: var(--ink); }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 11px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 34%; color: var(--muted); font-weight: 700; font-size: .92rem; }
.info-table td { color: var(--ink); font-size: .96rem; }
.info-table a { color: var(--brand-darker); font-weight: 700; }

.amenities { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.amenity { display: flex; gap: 12px; align-items: flex-start; }
.amenity__icon {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-darker);
}
.amenity strong { display: block; font-size: .96rem; }
.amenity span { display: block; color: var(--muted); font-size: .86rem; }

.branch__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.branch__map iframe { width: 100%; height: 100%; min-height: 380px; display: block; }

/* ---------- 후기 --------------------------------------------------------- */
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review__stars { color: var(--star); font-size: 1.05rem; letter-spacing: 2px; }
.review__stars--off { color: var(--line); }
.review__text { margin: 0; color: var(--ink-2); font-size: .95rem; }
.review__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.review__foot strong { font-size: .95rem; }
.review__foot span { font-size: .82rem; color: var(--muted); }

/* ---------- FAQ ---------------------------------------------------------- */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq__q { margin: 0; }
.faq__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; background: #fff; border: none; text-align: left;
  font-size: 1.02rem; font-weight: 700; color: var(--ink); transition: background .18s var(--ease);
}
.faq__btn:hover { background: var(--brand-tint-2); }
.faq__icon { flex: none; position: relative; width: 18px; height: 18px; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--brand-dark); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.faq__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq__btn[aria-expanded="true"] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__panel { padding: 0 20px 20px; }
.faq__panel p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- 푸터 --------------------------------------------------------- */
.footer { background: var(--ink); color: #c4ced4; }
.footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px;
  padding: 54px 20px 40px;
}
.footer__logo { filter: brightness(0) invert(1); opacity: .95; margin-bottom: 14px; }
.footer__addr { margin: 4px 0; font-size: .88rem; }
.footer__addr[data-branch-name] { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__links a { font-size: .9rem; transition: color .15s var(--ease); }
.footer__links a:hover { color: var(--brand); }
.sns { display: flex; gap: 10px; }
.sns a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #fff; transition: background .18s var(--ease), transform .18s var(--ease);
}
.sns a:hover { background: var(--brand); transform: translateY(-2px); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; }
.footer__bottom p { margin: 0; font-size: .82rem; color: #93a1a9; }
.footer__bottom-inner {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.footer__admin {
  font-size: .8rem; color: #93a1a9; border: 1px solid rgba(255, 255, 255, .16);
  padding: 4px 12px; border-radius: 999px; transition: color .15s var(--ease), border-color .15s var(--ease);
}
.footer__admin:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- 챗봇 --------------------------------------------------------- */
.chatbot { position: fixed; right: 22px; bottom: 22px; z-index: 150; }
.chatbot__fab {
  width: 62px; height: 62px; border-radius: 50%; border: none;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(84, 195, 241, .5);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.chatbot__fab:hover { background: var(--brand-dark); transform: scale(1.06); }
.chatbot__fab[aria-expanded="true"] { transform: scale(.9); opacity: .9; }

.chatbot__panel {
  position: absolute; right: 0; bottom: 78px; width: 350px; max-width: calc(100vw - 44px);
  height: 520px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s var(--ease);
}
.chatbot__panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.chatbot__head {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
}
.chatbot__head-info { display: flex; align-items: center; gap: 10px; }
.chatbot__avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 1.2rem; }
.chatbot__head-info strong { display: block; font-size: 1rem; }
.chatbot__badge { font-size: .72rem; background: rgba(255, 255, 255, .22); padding: 2px 8px; border-radius: 999px; display: inline-block; margin-top: 2px; }
.chatbot__close { background: none; border: none; color: #fff; font-size: 1.1rem; width: 32px; height: 32px; border-radius: 8px; transition: background .15s var(--ease); }
.chatbot__close:hover { background: rgba(255, 255, 255, .2); }

.chatbot__log { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 10px; }
.chat__msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; word-break: break-word; animation: pop .2s var(--ease); }
.chat__msg--bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--ink-2); }
.chat__msg--user { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.chat__typing { display: flex; gap: 4px; align-items: center; }
.chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.chat__typing span:nth-child(2) { animation-delay: .2s; }
.chat__typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.chatbot__chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 14px; border-top: 1px solid var(--line); background: #fff; }
.chip {
  border: 1.5px solid var(--brand); background: var(--brand-tint-2); color: var(--brand-darker);
  font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.chip:hover { background: var(--brand); color: #fff; }

.chatbot__form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.chatbot__form input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: .92rem; font-family: inherit; }
.chatbot__form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(84, 195, 241, .18); }
.chatbot__form button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--brand); color: #fff; display: grid; place-items: center; transition: background .15s var(--ease); }
.chatbot__form button:hover { background: var(--brand-dark); }

/* ---------- 모달 --------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 30, 40, .55); backdrop-filter: blur(3px); animation: fade .2s var(--ease); }
.modal__box {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  max-width: 460px; width: 100%; padding: 34px 30px 28px; text-align: center;
  box-shadow: var(--shadow-lg); animation: rise .28s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal__check {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--success); color: #fff; display: grid; place-items: center;
  font-size: 1.9rem; font-weight: 900;
}
.modal__title { font-size: 1.35rem; margin-bottom: 8px; }
.modal__lead { color: var(--muted); font-size: .95rem; margin: 0 0 20px; }
.summary { text-align: left; background: var(--bg-soft); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 6px; display: grid; gap: 9px; }
.summary > div { display: flex; gap: 12px; }
.summary dt { flex: none; width: 68px; color: var(--muted); font-size: .88rem; font-weight: 700; margin: 0; }
.summary dd { margin: 0; font-size: .92rem; color: var(--ink); }
.modal .note { margin: 14px 0 18px; }

/* ---------- 반응형 ------------------------------------------------------- */
@media (max-width: 900px) {
  .branch { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .3s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu > li > a { padding: 13px 12px; border-radius: 8px; }
  .nav__cta { margin: 8px 0 0; }
  .nav__cta .btn { width: 100%; }

  .stats__grid { grid-template-columns: 1fr 1fr; gap: 8px 0; }
  .stat:nth-child(3)::before, .stat:nth-child(1)::before { display: none; }
  .stat:nth-child(3), .stat:nth-child(4) { padding-top: 20px; }
  .stat:nth-child(3)::after, .stat:nth-child(4)::after {
    content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
    background: rgba(255, 255, 255, .14);
  }
}

@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .hero__inner { padding: 66px 20px 70px; }
  .hero__cta .btn { flex: 1; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .card--form { padding: 22px 18px; }
  .grid--cards { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .chatbot { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
