/* Reusable UI components: buttons, badges, cards, lists, forms, and language switchers. */
.btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.16);
}

.btn-primary:hover {
  background: var(--dark-2);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px none var(--line);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  background: #f8fafc;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 650;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.card {
  background: #507abd8e;
  border: 1px none var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  color: #fff;
  padding: 28px;
}

.card-muted {
  background: #f8fafc;
}

.card-classic {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.card-classic p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.card-classic h3 {
  font-size: 24px;
  margin-bottom: 12px;
  letter-spacing: -0.045em;
}


.card-dark {
  background: #f399808e;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.card-dark p {
  color: #ffffffc8;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.wide {
  grid-column: 1 / -1;
}

.card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  letter-spacing: -0.045em;
}

.card p {
  color: #ffffffc8;
  line-height: 1.75;
  margin: 0;
}

.korean-note {
  margin-top: 25px;
  border-radius: 18px;
  padding: 14px 2px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.7;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  place-items: flex-start normal;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  font-weight: 700;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  margin-top: 1px;
}

.form-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.form-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 999px;
}

.form-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 12px;
  cursor: pointer;
  font-weight: 900;
  font-size: 14px;
}

.form-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.form-heading {
  margin-top: 26px;
}

.form-heading h3 {
  margin-bottom: 6px;
  font-size: 28px;
  letter-spacing: -0.055em;
}

.form-heading p {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

.lead-form {
  margin-top: 22px;
  display: grid;
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 13px 14px;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 4px #f1f5f9;
}

.form-message {
  display: none;
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 18px;
  padding: 15px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.form-message.show {
  display: block;
}

.language-info {
  display: none;
}

.language-switcher {
  position: relative;
  display: inline-block;
  z-index: 80;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.language-toggle:hover {
  transform: translateY(-1px);
}

.language-caret {
  font-size: 12px;
  transition: transform 0.18s ease;
}

.language-switcher.open .language-caret {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  display: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

.language-switcher.open .language-menu {
  display: grid;
  gap: 4px;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 13px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.language-option:hover {
  background: #f8fafc;
}

.language-option.active {
  background: #f1f5f9;
}

.language-option.disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.62;
}

.language-option .language-info {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}

.language-toggle .language-info {
  display: none;
}

.site-footer .language-menu {
  top: auto;
  bottom: calc(100% + 10px);
}

@media (max-width: 940px) {
  .mobile-menu .language-switcher {
    width: 100%;
  }

  .mobile-menu .language-toggle {
    width: 100%;
    justify-content: center;
  }

  .mobile-menu .language-menu {
    position: static;
    margin-top: 8px;
    width: 100%;
  }
}
