/* ============================================================
   Nestorium 가점·면제 상담 챗봇 — Main Stylesheet
   Brand: Indigo / Purple (#312e81 family)
   ============================================================ */

/* ============================================================
   1. CSS Variables
   ============================================================ */
:root {
  --primary:       #312e81;
  --primary-light: #eef2ff;
  --primary-dark:  #1e1b4b;
  --accent:        #818cf8;
  --accent-light:  #c7d2fe;
  --text:          #1e293b;
  --text-light:    #64748b;
  --bg:            #f8fafc;
  --white:         #ffffff;
  --border:        #e2e8f0;
  --success:       #10b981;
  --error:         #ef4444;
  --warning:       #f59e0b;
  --shadow:        0 4px 20px rgba(49, 46, 129, 0.08);
  --shadow-lg:     0 8px 30px rgba(49, 46, 129, 0.12);
  --radius:        16px;
  --radius-sm:     10px;
}

/* ============================================================
   2. Reset & Base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   3. Accessibility
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   4. Hero Section
   ============================================================ */
.hero {
  background: linear-gradient(150deg, #0f0c29 0%, var(--primary-dark) 30%, var(--primary) 65%, #4338ca 100%);
  color: var(--white);
  text-align: center;
  padding: 64px 24px 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 30% 10%, rgba(129, 140, 248, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 75% 85%, rgba(99, 102, 241, 0.15) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--white) 0%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  z-index: 1;
}

.hero-brand {
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
}

.hero-logo {
  height: 420px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title span {
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd, #e9d5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  border-radius: 999px;
  padding: 16px 40px;
  margin-bottom: 40px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(129, 140, 248, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(129, 140, 248, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 18px;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}

.hero-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ============================================================
   5. Section Shared Styles
   ============================================================ */
.section {
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-accent {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
}

.section-desc {
  font-size: 0.97rem;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   6. Benefits Section
   ============================================================ */
.benefits {
  background: var(--white);
  padding: 80px 24px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px 36px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(49, 46, 129, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(49, 46, 129, 0.12);
  border-color: var(--accent-light);
}

.benefit-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #ede9fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 2rem;
  flex-shrink: 0;
}

.benefit-title,
.benefit-card > strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.benefit-desc,
.benefit-card > p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

.benefit-card > p em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   7. Services Section
   ============================================================ */
.services {
  background: var(--bg);
  padding: 80px 24px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 22px 26px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 2px 12px rgba(49, 46, 129, 0.05);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(49, 46, 129, 0.12);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #ede9fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.service-title,
.service-card > strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.service-desc,
.service-card > p {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 18px;
}

.service-cta {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s, color 0.2s;
}

.service-card:hover .service-cta {
  gap: 8px;
  color: var(--primary);
}

/* ============================================================
   8. Guarantee Banner
   ============================================================ */
.guarantee {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #4338ca 100%);
  padding: 56px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.guarantee::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(129, 140, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.guarantee-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
}

.guarantee-badge {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 6px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.guarantee-title {
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
}

.guarantee-text {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  max-width: 500px;
}

.guarantee-text strong {
  color: var(--white);
  font-weight: 800;
}

.guarantee-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.guarantee-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 6px 16px;
}

/* ============================================================
   9. Main Container (Chatbot Area)
   ============================================================ */
.main-container {
  padding: 64px 24px 80px;
  max-width: 780px;
  margin: 0 auto;
}

.chatbot-intro {
  text-align: center;
  margin-bottom: 36px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.chatbot-intro-title {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.chatbot-intro-title span {
  color: var(--primary);
}

.chatbot-intro-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

.chatbot-container {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(49, 46, 129, 0.08), 0 12px 48px rgba(49, 46, 129, 0.06);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

/* ============================================================
   10. Chat Header
   ============================================================ */
.chat-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: var(--radius) var(--radius) 0 0;
  flex-shrink: 0;
}

.chat-header-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.chat-header-info {
  flex-grow: 1;
}

.chat-header-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.chat-header-subtitle {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

.chat-header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ============================================================
   11. Chat Body
   ============================================================ */
.chat-body {
  padding: 20px 16px;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f6f7fb;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
  flex-grow: 1;
}

.chat-body::-webkit-scrollbar {
  width: 4px;
}

.chat-body::-webkit-scrollbar-track {
  background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
  background: var(--accent-light);
  border-radius: 999px;
}

/* ============================================================
   12. Messages
   ============================================================ */
.message-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.bot-wrapper {
  justify-content: flex-start;
}

.user-wrapper {
  justify-content: flex-end;
}

.bot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  align-self: flex-end;
}

.bot-message {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) var(--radius) 4px;
  padding: 13px 16px;
  max-width: 85%;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(49, 46, 129, 0.06);
}

.bot-message strong {
  font-weight: 700;
  color: var(--primary);
}

.bot-message p + p {
  margin-top: 8px;
}

.bot-message ul {
  list-style: disc;
  padding-left: 18px;
  margin-top: 6px;
}

.bot-message ul li {
  margin-bottom: 4px;
  font-size: 0.87rem;
}

.user-message {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 4px var(--radius);
  padding: 12px 16px;
  max-width: 75%;
  font-size: 0.9rem;
  line-height: 1.65;
  box-shadow: 0 3px 12px rgba(49, 46, 129, 0.2);
}

.user-message strong {
  font-weight: 700;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) var(--radius) 4px;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(49, 46, 129, 0.06);
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: typing-bounce 1.2s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40%            { transform: translateY(-7px); opacity: 1; }
}

/* ============================================================
   13. Button Groups & Chat Buttons
   ============================================================ */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--white);
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.15s;
  white-space: nowrap;
}

.chat-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
}

.chat-btn:active {
  transform: translateY(0);
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: var(--white);
  border-color: transparent;
}

.primary-btn:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: transparent;
  color: var(--white);
}

.home-btn {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--accent-light);
}

.home-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--primary-dark);
}

.buttons-used {
  opacity: 0.38;
  pointer-events: none;
  cursor: default;
}

/* Multi-select */
.multi-select-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.multi-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.15s;
  white-space: nowrap;
}

.multi-btn:hover {
  border-color: var(--accent);
  color: var(--primary);
}

.multi-btn.selected {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(49, 46, 129, 0.25);
}

.multi-confirm-btn {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.18s, transform 0.15s;
}

.multi-confirm-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ============================================================
   14. Date/Time Picker
   ============================================================ */
.datetime-picker {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.picker-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.picker-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.picker-input {
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  width: 100%;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
  appearance: none;
}

.picker-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.picker-used {
  opacity: 0.4;
  pointer-events: none;
}

.picker-confirm-btn {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.15s;
  align-self: flex-start;
}

.picker-confirm-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ============================================================
   15. Chat Input Area
   ============================================================ */
.chat-input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--white);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-input {
  flex-grow: 1;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.chat-input::placeholder {
  color: var(--text-light);
}

.chat-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
}

.chat-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.send-btn {
  flex-shrink: 0;
  min-width: 56px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.18s;
  box-shadow: 0 2px 10px rgba(49, 46, 129, 0.25);
  padding: 0 14px;
}

.send-btn:hover {
  transform: scale(1.08);
}

.send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   16. Result / Summary Card
   ============================================================ */
.result-card {
  background: var(--white);
  border: 1.5px solid var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.7;
}

.result-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.result-row:last-child {
  border-bottom: none;
}

.result-label {
  color: var(--text-light);
  font-size: 0.83rem;
  flex-shrink: 0;
}

.result-value {
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.result-highlight {
  color: var(--primary);
  font-weight: 700;
}

.result-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
  margin-left: 4px;
}

.result-badge.success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.result-badge.warning {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
}

.result-badge.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* ============================================================
   17. Info / Notice Box
   ============================================================ */
.info-box {
  background: var(--primary-light);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.84rem;
  color: var(--primary-dark);
  line-height: 1.7;
  margin-top: 8px;
}

.info-box.warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  color: #92400e;
}

.info-box.error {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.25);
  color: #991b1b;
}

.info-box.success {
  background: rgba(16, 185, 129, 0.07);
  border-color: rgba(16, 185, 129, 0.25);
  color: #065f46;
}

/* ============================================================
   18. Progress / Step Indicator
   ============================================================ */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-light);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 1;
}

.step-item.active .step-circle {
  background: var(--primary);
  color: var(--white);
}

.step-item.done .step-circle {
  background: var(--success);
  color: var(--white);
}

.step-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-align: center;
  white-space: nowrap;
}

.step-item.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

.step-connector {
  width: 40px;
  height: 2px;
  background: var(--border);
  margin-bottom: 18px;
  transition: background 0.2s;
}

.step-connector.done {
  background: var(--success);
}

/* ============================================================
   19. Footer
   ============================================================ */
.footer {
  background: var(--primary-dark);
  padding: 44px 24px 32px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.footer-contact {
  font-size: 0.9rem;
  line-height: 2;
  text-align: center;
  margin-bottom: 0;
}

.footer-contact p {
  margin-bottom: 4px;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 20px 0;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--accent-light);
  transition: color 0.18s;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--white);
}

/* ============================================================
   20. Utility Classes
   ============================================================ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }

.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

.text-primary    { color: var(--primary); }
.text-accent     { color: var(--accent); }
.text-light      { color: var(--text-light); }
.text-success    { color: var(--success); }
.text-error      { color: var(--error); }
.text-warning    { color: var(--warning); }

.font-bold       { font-weight: 700; }
.font-semibold   { font-weight: 600; }

.hidden          { display: none; }
.visible         { display: block; }

.fade-in {
  animation: fadeIn 0.35s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   21. Responsive — Tablet (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Hero */
  .hero {
    padding: 48px 20px 56px;
  }

  .hero-logo {
    height: 300px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }

  .hero-cta {
    padding: 14px 32px;
    font-size: 0.95rem;
    margin-bottom: 32px;
  }

  /* Benefits */
  .benefits {
    padding: 56px 20px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Services */
  .services {
    padding: 56px 20px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Section */
  .section {
    padding: 56px 20px;
  }

  /* Main container */
  .main-container {
    padding: 48px 16px 64px;
  }

  .chatbot-container {
    max-width: 100%;
    border-radius: var(--radius-sm);
  }

  .chat-body {
    max-height: 440px;
  }

  /* Step indicator */
  .step-connector {
    width: 24px;
  }
}

/* ============================================================
   22. Responsive — Mobile (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  /* Hero */
  .hero {
    padding: 36px 16px 44px;
  }

  .hero-logo {
    height: 200px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-cta {
    padding: 13px 28px;
    font-size: 0.92rem;
    margin-bottom: 28px;
  }

  .hero-tags {
    gap: 7px;
  }

  .hero-tag {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  /* Benefits */
  .benefits {
    padding: 44px 16px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .benefit-card {
    padding: 28px 20px;
  }

  .benefit-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    font-size: 1.7rem;
  }

  /* Services */
  .services {
    padding: 44px 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    text-align: center;
    align-items: center;
  }

  .service-icon-wrap {
    margin: 0 auto 18px;
  }

  /* Guarantee */
  .guarantee {
    padding: 40px 16px;
  }

  /* Section */
  .section {
    padding: 44px 16px;
  }

  .section-title {
    font-size: 1.4rem;
  }

  /* Chat */
  .chatbot-intro {
    margin-bottom: 20px;
    font-size: 1rem;
  }

  .chat-header {
    padding: 16px 16px;
    gap: 10px;
  }

  .chat-header-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .chat-header-title {
    font-size: 0.92rem;
  }

  .chat-header-status {
    display: none;
  }

  .chat-body {
    padding: 14px 12px;
    max-height: 390px;
    gap: 10px;
  }

  .bot-message,
  .user-message {
    font-size: 0.85rem;
  }

  .bot-message {
    max-width: 92%;
  }

  .user-message {
    max-width: 85%;
  }

  .chat-btn {
    font-size: 0.8rem;
    padding: 7px 14px;
  }

  .multi-btn {
    font-size: 0.8rem;
    padding: 7px 14px;
  }

  .chat-input-area {
    padding: 10px 12px;
    gap: 8px;
  }

  .chat-input {
    font-size: 0.85rem;
    padding: 9px 14px;
  }

  .send-btn {
    min-width: 50px;
    height: 38px;
    font-size: 0.82rem;
    padding: 0 12px;
  }

  /* Footer */
  .footer {
    padding: 32px 16px 24px;
  }

  .footer-contact {
    font-size: 0.85rem;
  }

  /* Step indicator */
  .step-connector {
    width: 16px;
  }

  .step-label {
    font-size: 0.65rem;
  }
}

/* ============================================================
   23. Print Styles
   ============================================================ */
@media print {
  .hero,
  .guarantee,
  .footer,
  .chat-input-area,
  .chat-header {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .chatbot-container {
    box-shadow: none;
    border: 1px solid var(--border);
  }
}
