:root {
  --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Noto Serif KR', Georgia, serif;

  /* Core Brand Palette: Deep Espresso Charcoal + Alabaster Warm White + Brushed Bronze Gold */
  --espresso: #18181B;
  --espresso-soft: #27272A;
  --alabaster: #FAF8F5;
  --alabaster-alt: #F3EFE8;
  --surface-white: #FFFFFF;
  --bronze-gold: #8C6D23;
  --bronze-gold-hover: #75591B;
  --gold-highlight: #D6B779;
  --gold-tab-border: #C5A059;
  --gold-tint: rgba(140, 109, 35, 0.08);
  --gold-hairline: rgba(140, 109, 35, 0.28);
  --gold-hairline-strong: rgba(140, 109, 35, 0.42);

  --text-primary: #18181B;
  --text-secondary: #3F3F46;
  --text-muted: #71717A;
  --border-subtle: #E7E2D8;

  --radius-card: 16px;
  --radius-sm: 8px;
  --radius-btn: 10px;
  --shadow-card: 0 10px 32px rgba(24, 24, 27, 0.05), 0 1px 3px rgba(24, 24, 27, 0.04);
  --shadow-drawer: -14px 0 42px rgba(24, 24, 27, 0.18);

  /* Hero Gallery Images (overrideable CSS vars) */
  --hero-img-1: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80');
  --hero-img-2: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1600&q=80');
  --hero-img-3: url('https://images.unsplash.com/photo-1600566753376-12c8ab7fb75b?auto=format&fit=crop&w=1600&q=80');
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--alabaster);
  color: var(--text-primary);
  min-height: 100vh;
  padding-bottom: 96px;
  line-height: 1.6;
  font-size: 15.5px;
}

.bg-canvas {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(214, 183, 121, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(140, 109, 35, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #FAF8F5 0%, #F4F0E8 100%);
  z-index: -1;
  pointer-events: none;
}

/* =========================================================================
   1. Sticky 3-Column Symmetric Header (#18181B)
   ========================================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(24, 24, 27, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(214, 183, 121, 0.25);
  padding: 13px 20px;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.header-spacer {
  min-width: 0;
}

.brand-wrap {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-highlight);
  color: var(--gold-highlight);
  background: rgba(214, 183, 121, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.3;
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.08rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(214, 183, 121, 0.42);
  background: rgba(250, 248, 245, 0.04);
  color: var(--gold-highlight);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header-icon-btn:hover {
  background: rgba(214, 183, 121, 0.16);
  border-color: var(--gold-highlight);
  transform: translateY(-1px);
}

.header-icon-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================================
   2. 3-Image Auto-Transition Architecture Gallery Hero Banner
   ========================================================================= */
#ms-hero-slider {
  position: relative;
  width: 100%;
  height: 390px;
  overflow: hidden;
  background-color: var(--espresso);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  animation: msHeroCrossfade 18s infinite ease-in-out;
  will-change: opacity, transform;
}

.hero-slide-1 {
  background-image: linear-gradient(135deg, rgba(24, 24, 27, 0.35), rgba(24, 24, 27, 0.55)), var(--hero-img-1);
  animation-delay: 0s;
}

.hero-slide-2 {
  background-image: linear-gradient(135deg, rgba(24, 24, 27, 0.35), rgba(24, 24, 27, 0.55)), var(--hero-img-2);
  animation-delay: 6s;
}

.hero-slide-3 {
  background-image: linear-gradient(135deg, rgba(24, 24, 27, 0.35), rgba(24, 24, 27, 0.55)), var(--hero-img-3);
  animation-delay: 12s;
}

@keyframes msHeroCrossfade {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  8% {
    opacity: 1;
  }
  33% {
    opacity: 1;
  }
  42% {
    opacity: 0;
    transform: scale(1.06);
  }
  100% {
    opacity: 0;
    transform: scale(1.06);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(24, 24, 27, 0.48) 0%,
    rgba(24, 24, 27, 0.62) 55%,
    rgba(24, 24, 27, 0.82) 100%
  );
  z-index: 2;
}

.hero-overlay-content {
  position: relative;
  z-index: 3;
  height: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--alabaster);
}

.hero-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold-highlight);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero-main-title {
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.02em;
  color: var(--alabaster);
  word-break: keep-all;
  max-width: 680px;
}

.hero-vertical-hairline {
  width: 1px;
  height: 24px;
  background: var(--gold-highlight);
  margin: 16px auto;
  opacity: 0.85;
}

.hero-sub-caption {
  font-size: 0.92rem;
  font-weight: 400;
  color: rgba(250, 248, 245, 0.86);
  letter-spacing: 0.01em;
  word-break: keep-all;
}

/* =========================================================================
   3. 2-Card Main Container (max-width: 820px)
   ========================================================================= */
.lounge-container {
  max-width: 820px;
  margin: -34px auto 0;
  padding: 0 20px 32px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lounge-notice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--espresso);
  color: var(--alabaster);
  border: 1px solid rgba(214, 183, 121, 0.35);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.84rem;
  box-shadow: 0 6px 20px rgba(24, 24, 27, 0.14);
}

.notice-badge {
  display: inline-flex;
  align-items: center;
  color: var(--gold-highlight);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.notice-text {
  color: rgba(250, 248, 245, 0.85);
  font-weight: 400;
}

.glass-card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-left: 2.5px solid var(--bronze-gold);
  border-radius: var(--radius-card);
  padding: 28px 28px 26px;
  box-shadow: var(--shadow-card);
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--bronze-gold);
  text-transform: uppercase;
}

.news-date-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--alabaster);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 6px;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 10px;
  word-break: keep-all;
}

.section-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  word-break: keep-all;
}

/* Card 1: Briefing 3-line summary + inline lead box */
.news-summary-box {
  background: var(--alabaster);
  border-left: 2.5px solid var(--bronze-gold);
  border-radius: 0 10px 10px 0;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.news-summary-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--bronze-gold);
  margin-bottom: 10px;
}

.news-summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.bullet-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--gold-highlight);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.briefing-blog-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--bronze-gold);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--gold-hairline);
  border-radius: 6px;
  background: var(--alabaster);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.blog-read-link:hover {
  background: var(--gold-tint);
  border-color: var(--bronze-gold);
}

.hero-inline-lead-box {
  background: var(--alabaster);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px;
}

.inline-lead-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.inline-lead-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
}

.inline-lead-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.inline-lead-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.complex-input-wrap {
  position: relative;
}

#heroComplex {
  padding-right: 72px;
}

.complex-auto-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--espresso);
  color: var(--gold-highlight);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  pointer-events: none;
}

/* =========================================================================
   4. Card 2: 4-Report Single-Column Full-Width Horizontal Radio Rows
   ========================================================================= */
.report-chip-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.report-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--alabaster);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.report-chip:hover {
  border-color: var(--gold-hairline-strong);
  background: #FFFFFF;
}

.report-chip.selected {
  background: #FFFFFF;
  border-color: var(--bronze-gold);
  box-shadow: 0 0 0 1px var(--bronze-gold), 0 6px 18px rgba(140, 109, 35, 0.1);
}

.chip-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #A1A1AA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.report-chip.selected .chip-radio-dot {
  border-color: var(--bronze-gold);
}

.chip-radio-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bronze-gold);
  transform: scale(0);
  transition: transform 0.18s ease;
}

.report-chip.selected .chip-radio-dot::after {
  transform: scale(1);
}

.chip-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.chip-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.chip-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: right;
  word-break: keep-all;
}

/* =========================================================================
   5. Forms, Inputs & Gold CTA Buttons
   ========================================================================= */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-label .req {
  color: var(--bronze-gold);
}

.form-label .sub {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #D4CFC5;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
  color: #A1A1AA;
}

.form-input:focus {
  outline: none;
  border-color: var(--bronze-gold);
  box-shadow: 0 0 0 3px rgba(140, 109, 35, 0.12);
}

.form-input.font-bold {
  font-weight: 700;
}

.gold-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, #27272A 0%, #18181B 100%);
  color: var(--gold-highlight);
  border: 1px solid rgba(214, 183, 121, 0.45);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.gold-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #8C6D23 0%, #75591B 100%);
  color: #FFFFFF;
  border-color: var(--bronze-gold);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(140, 109, 35, 0.24);
}

.gold-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.privacy-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.success-alert {
  display: none;
  margin-top: 14px;
  padding: 16px;
  border-radius: 10px;
  background: #F4F9F6;
  border: 1px solid rgba(22, 163, 74, 0.28);
}

.success-alert-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #166534;
  margin-bottom: 6px;
}

.success-alert-msg {
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.55;
  margin-bottom: 10px;
}

.success-chat-link {
  background: var(--espresso);
  color: var(--gold-highlight);
  border: 1px solid rgba(214, 183, 121, 0.45);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

/* =========================================================================
   6. Right Bookmark Tab (#ms-side-tab) & Sliding Drawer (#ms-side-drawer)
   ========================================================================= */
#ms-side-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  background: #18181B;
  color: #D6B779;
  border: 1px solid #C5A059;
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 16px 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  cursor: pointer;
  box-shadow: -6px 4px 20px rgba(24, 24, 27, 0.24);
  transition: padding-right 0.2s ease, background 0.2s ease, color 0.2s ease;
}

#ms-side-tab:hover {
  padding-right: 14px;
  background: #27272A;
  color: #FAF8F5;
}

.ms-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 27, 0.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.ms-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

#ms-side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 460px;
  height: 100vh;
  background: var(--alabaster);
  border-left: 1px solid var(--gold-hairline-strong);
  box-shadow: var(--shadow-drawer);
  z-index: 960;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

#ms-side-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  background: var(--espresso);
  color: var(--alabaster);
  padding: 18px 22px;
  border-bottom: 1px solid rgba(214, 183, 121, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.drawer-header-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-highlight);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.drawer-header-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--alabaster);
}

.drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(214, 183, 121, 0.4);
  background: transparent;
  color: var(--gold-highlight);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-close-btn:hover {
  background: rgba(214, 183, 121, 0.16);
}

.drawer-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.drawer-tab-btn {
  padding: 13px 10px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.drawer-tab-btn.active {
  color: var(--bronze-gold);
  border-bottom-color: var(--bronze-gold);
  background: var(--alabaster);
  font-weight: 700;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 24px;
}

.drawer-pane {
  display: none;
}

.drawer-pane.active {
  display: block;
}

/* Mandate Card (Tab 1 Default) */
.mandate-card {
  background: #FFFFFF;
  border: 1px solid rgba(140, 109, 35, 0.42);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}

.mandate-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--bronze-gold);
  margin-bottom: 6px;
}

.mandate-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.mandate-seg-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.mandate-seg-btn {
  padding: 9px 6px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--alabaster);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  word-break: keep-all;
}

.mandate-seg-btn.active {
  background: var(--espresso);
  color: var(--gold-highlight);
  border-color: var(--espresso);
  font-weight: 700;
}

/* Drawer Tab 2: Quick Calculator */
.calc-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}

.calc-tab-btn {
  padding: 9px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.calc-tab-btn.active {
  background: var(--espresso);
  color: var(--gold-highlight);
  border-color: var(--espresso);
}

.calc-pane {
  display: none;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
}

.calc-pane.active {
  display: block;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.calc-input-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.calc-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.calc-result-card {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
  background: var(--alabaster);
  border: 1px solid var(--gold-hairline);
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  padding: 4px 0;
  color: var(--text-secondary);
}

.calc-result-row.highlight {
  font-weight: 700;
  color: var(--bronze-gold);
  border-top: 1px solid var(--border-subtle);
  margin-top: 6px;
  padding-top: 8px;
}

.calc-help-banner {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--espresso);
  color: var(--alabaster);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calc-help-text {
  font-size: 0.8rem;
  color: rgba(250, 248, 245, 0.9);
}

.calc-chat-btn {
  border: 1px solid var(--gold-highlight);
  background: transparent;
  color: var(--gold-highlight);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Drawer Footer */
.drawer-footer {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--border-subtle);
  background: #FFFFFF;
  text-align: center;
  flex-shrink: 0;
}

.drawer-footer-divider {
  width: 44px;
  height: 1.5px;
  background: var(--bronze-gold);
  margin: 0 auto 12px;
}

.drawer-footer-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.drawer-footer-addr {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  word-break: keep-all;
}

.drawer-footer-tel {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bronze-gold);
  margin-top: 3px;
}

/* =========================================================================
   7. Bottom Floating Bar & Chat / Briefing Modals & Toast
   ========================================================================= */
.floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: rgba(24, 24, 27, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(214, 183, 121, 0.28);
  padding: 10px 16px;
}

.floating-bar-inner {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
}

.bar-btn-chat,
.bar-btn-call {
  height: 44px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  cursor: pointer;
}

.bar-btn-chat {
  background: linear-gradient(135deg, #8C6D23 0%, #A6832D 100%);
  color: #FFFFFF;
  border: none;
}

.bar-btn-call {
  background: transparent;
  color: var(--gold-highlight);
  border: 1px solid rgba(214, 183, 121, 0.45);
}

/* Private Lounge 1:1 Chat Modal */
.web-chat-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(24, 24, 27, 0.64);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 16px;
  align-items: center;
  justify-content: center;
}

.web-chat-modal-overlay.show {
  display: flex !important;
}

.web-chat-modal-card {
  width: 100%;
  max-width: 460px;
  height: 84vh;
  max-height: 700px;
  margin: auto;
  background: #FAF8F5;
  border-radius: 16px;
  border: 1px solid rgba(197, 160, 89, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.web-chat-modal-header {
  background: #18181B;
  color: #FAF8F5;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(214, 183, 121, 0.28);
  flex-shrink: 0;
}

.web-chat-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.web-chat-gold-badge {
  border: 1px solid #C5A059;
  color: #D6B779;
  background: rgba(214, 183, 121, 0.08);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.web-chat-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.web-chat-subtitle {
  font-size: 0.74rem;
  color: #D6B779;
  margin-top: 2px;
}

.web-chat-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(214, 183, 121, 0.35);
  background: transparent;
  color: #D6B779;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s ease;
}

.web-chat-modal-close:hover {
  background: rgba(214, 183, 121, 0.16);
}

.web-chat-modal-body {
  flex: 1;
  background: #FAF8F5;
  padding: 18px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
}

.chat-msg-row.user {
  justify-content: flex-end;
}

.chat-bot-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #18181B;
  border: 1.5px solid #C5A059;
  color: #D6B779;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.chat-msg-row .chat-bubble,
.web-chat-modal-body .chat-bubble,
.bubble {
  white-space: pre-line !important;
  line-height: 1.65 !important;
}

.chat-msg-row.bot .chat-bubble {
  background: #FFFFFF;
  color: #18181B;
  border: 1px solid rgba(140, 109, 35, 0.25);
  border-top-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(24, 24, 27, 0.04);
}

.chat-msg-row.user .chat-bubble {
  background: #18181B;
  color: #FFFFFF;
  border: 1px solid #18181B;
  border-top-right-radius: 4px;
}

/* 웹챗 내부 인라인 연락처 접수 카드 */
.chat-inline-lead-card {
  margin: 10px 0 6px 44px;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1.5px solid #8C6D23;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(140, 109, 35, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 85%;
  animation: fadeInBubble 0.25s ease-out;
}

.chat-lead-card-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px dashed rgba(140, 109, 35, 0.3);
  padding-bottom: 8px;
}

.chat-lead-card-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: #8C6D23;
}

.chat-lead-card-sub {
  font-size: 0.76rem;
  color: #71717A;
}

.chat-lead-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-lead-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chat-lead-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #3F3F46;
}

.chat-lead-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #D4D4D8;
  border-radius: 6px;
  font-size: 0.84rem;
  font-family: inherit;
  color: #18181B;
  background: #FAFAFA;
  box-sizing: border-box;
}

.chat-lead-input:focus {
  outline: none;
  border-color: #8C6D23;
  background: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(140, 109, 35, 0.15);
}

.chat-lead-submit-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #8C6D23 0%, #B8902E 100%);
  color: #FFFFFF;
  font-size: 0.86rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  margin-top: 2px;
}

.chat-lead-submit-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.chat-lead-submit-btn:disabled {
  background: #A1A1AA;
  cursor: not-allowed;
  transform: none;
}

.chat-lead-status {
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 6px 8px;
  border-radius: 6px;
}

.chat-quick-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 44px;
  margin-top: 2px;
}

.chat-quick-btn {
  width: 100%;
  text-align: left;
  background: #FFFFFF;
  color: #18181B;
  border: 1px solid rgba(140, 109, 35, 0.35);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-quick-btn::after {
  content: '→';
  color: #8C6D23;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.chat-quick-btn:hover {
  background: #FDFBF7;
  border-color: #8C6D23;
  transform: translateY(-1px);
}

.chat-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 2px;
}

.chat-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8C6D23;
  animation: chatTypingPulse 1.2s infinite ease-in-out;
}

.chat-typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes chatTypingPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1.1); }
}

.web-chat-modal-footer {
  background: #FFFFFF;
  border-top: 1px solid #E7E2D8;
  padding: 8px 14px 12px;
  flex-shrink: 0;
}

.web-chat-reset-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.web-chat-reset-btn {
  background: transparent;
  border: 1px solid rgba(140, 109, 35, 0.35);
  color: #8C6D23;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.web-chat-reset-btn:hover {
  background: rgba(140, 109, 35, 0.08);
}

.web-chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.web-chat-input {
  flex: 1;
  min-height: 42px;
  max-height: 100px;
  padding: 10px 13px;
  border: 1px solid #D4CFC5;
  border-radius: 10px;
  background: #FAF8F5;
  color: #18181B;
  font-size: 0.9rem;
  line-height: 1.4;
  resize: none;
}

.web-chat-input:focus {
  outline: none;
  border-color: #8C6D23;
  background: #FFFFFF;
}

.web-chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(214, 183, 121, 0.45);
  background: #18181B;
  color: #D6B779;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, transform 0.15s ease;
}

.web-chat-send-btn:hover:not(:disabled) {
  background: #27272A;
  transform: translateY(-1px);
}

.web-chat-send-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.web-chat-send-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Toast Notification */
.lounge-toast {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(24, 24, 27, 0.95);
  color: var(--alabaster);
  border: 1px solid rgba(214, 183, 121, 0.35);
  padding: 11px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 90vw;
}

.lounge-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Briefing Result Modal */
.briefing-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 27, 0.7);
  backdrop-filter: blur(6px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.briefing-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.briefing-modal-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--gold-hairline);
  max-width: 440px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-header-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.modal-icon-badge.info {
  background: #FEF3C7;
  color: #92400E;
}

.modal-icon-badge.success {
  background: #DCFCE7;
  color: #166534;
}

.modal-title-text {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-body-text {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
  white-space: pre-line;
  background: var(--alabaster);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  word-break: keep-all;
}

.modal-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  background: var(--espresso);
  color: var(--gold-highlight);
  border: 1px solid rgba(214, 183, 121, 0.45);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
}

.modal-dismiss-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* =========================================================================
   8. Responsive Breakpoints
   ========================================================================= */
@media (max-width: 720px) {
  #ms-hero-slider {
    height: 330px;
  }

  .hero-main-title {
    font-size: 1.32rem;
  }

  .hero-sub-caption {
    font-size: 0.84rem;
  }

  .lounge-container {
    margin-top: -26px;
    padding: 0 14px 28px;
  }

  .glass-card {
    padding: 22px 18px;
  }

  .inline-lead-grid,
  .form-row,
  .calc-grid {
    grid-template-columns: 1fr;
  }

  .chip-content-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .chip-sub {
    text-align: left;
  }

  .lounge-notice-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  #ms-side-tab {
    padding: 12px 7px;
    font-size: 0.68rem;
  }
}

/* PC Desktop (1024px 이상) 전용 풀스크린 고정 갤러리 배경 연동 */
@media (min-width: 1024px) {
  #ms-hero-slider {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
  }

  #ms-hero-slider .hero-overlay-content {
    display: none;
  }

  main.lounge-container,
  #ms-v7-main {
    max-width: 880px;
    margin-top: 165px;
    position: relative;
    z-index: 10;
    background: transparent;
  }

  .glass-card,
  .ms-v7-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 48px rgba(24, 24, 27, 0.16), 0 2px 8px rgba(24, 24, 27, 0.08);
  }
}

/* =========================================================================
   [하이엔드 PB 브로슈어 규격: 심층 브리핑 모달 스타일]
   ========================================================================= */
.ms-modal-idx {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #8C6D23;
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.ms-modal-sec-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #18181B;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.ms-modal-para {
  margin: 0 0 14px 0;
  font-size: 13px;
  color: #334155;
  line-height: 1.78;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

.ms-modal-para:last-child {
  margin-bottom: 0;
}

.ms-modal-point-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(154, 123, 44, 0.16);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ms-modal-point-item:first-child {
  padding-top: 4px;
}

.ms-modal-point-item:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.ms-modal-point-label {
  font-size: 12px;
  font-weight: 800;
  color: #8C6D23;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
}

.ms-modal-point-desc {
  font-size: 12.8px;
  color: #18181B;
  line-height: 1.78;
  letter-spacing: -0.015em;
  word-break: keep-all;
  margin: 0;
}
