/* =========================================================
   HALAMAN INFORMASI ASKEP
   Dipakai oleh pages/kontak.html dan pages/privasi.html.
========================================================= */

.page-info {
  overflow-x: hidden;
  background: var(--bg);
}

.page-info .app {
  min-height: 100vh;
  background:
    radial-gradient(circle at 94% 2%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 24%),
    linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 390px);
}

.info-header {
  padding: 18px 18px 14px;
}

.info-topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.info-heading {
  min-width: 0;
  flex: 1;
}

.info-heading h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}

.info-heading p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-hero {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 18px 38px color-mix(in srgb, var(--primary) 25%, transparent);
  color: #fff;
}

.info-hero::after {
  position: absolute;
  top: -72px;
  right: -56px;
  width: 194px;
  height: 194px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  content: "";
}

.info-hero-content {
  position: relative;
  z-index: 1;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 10px;
  font-weight: 800;
}

.info-hero h2 {
  max-width: 760px;
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.info-hero p {
  max-width: 720px;
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
  opacity: 0.94;
}

.info-content {
  padding: 18px 18px 0;
}

.info-layout {
  display: grid;
  gap: 14px;
}

.info-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.info-card-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 13px;
}

.info-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
}

.info-card-heading {
  min-width: 0;
}

.info-card-heading h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.info-card-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.contact-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--card) 92%, var(--bg));
}

.contact-link:hover,
.contact-link:focus-visible {
  border-color: var(--primary-soft);
  background: var(--primary-light);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 15px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 17px;
}

.contact-copy {
  min-width: 0;
  flex: 1;
}

.contact-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.contact-value {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.contact-description {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.contact-chevron {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.info-feature-grid {
  display: grid;
  gap: 9px;
}

.info-feature {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: color-mix(in srgb, var(--card) 92%, var(--bg));
}

.info-feature-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.info-feature-title i {
  color: var(--primary);
}

.info-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.info-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--primary-soft);
  border-radius: 15px;
  background: var(--primary-light);
  color: var(--text);
  font-size: 10px;
  line-height: 1.6;
}

.info-note i {
  margin-top: 2px;
  color: var(--primary);
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.policy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 92%, var(--bg));
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.policy-sections {
  display: grid;
  gap: 12px;
}

.policy-section {
  scroll-margin-top: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.policy-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.policy-section h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.policy-section h2 i {
  color: var(--primary);
}

.policy-section p,
.policy-list li {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.policy-section p {
  margin: 0 0 8px;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-list {
  margin: 0;
  padding-left: 18px;
}

.policy-list li:not(:last-child) {
  margin-bottom: 5px;
}

.policy-contact {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.policy-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
}

/* Menu kanan atas, sama dengan index dan petunjuk. */
.guide-menu-wrapper {
  position: relative;
  z-index: 100;
}

.guide-menu-button {
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.guide-menu-button.active {
  background: var(--card);
  color: var(--primary);
}

.guide-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(280px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.guide-dropdown.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.guide-dropdown-header {
  padding: 10px 12px 8px;
}

.guide-dropdown-title {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.guide-dropdown-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.guide-dropdown-divider {
  height: 1px;
  margin: 5px 6px;
  background: var(--border);
}

.guide-menu-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.guide-menu-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 9px 10px;
  overflow: hidden;
  border-radius: 13px;
  color: var(--text);
}

.guide-menu-item:hover,
.guide-menu-item.current {
  background: var(--primary-light);
}

.guide-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 14px;
}

.guide-menu-content {
  min-width: 0;
  flex: 1;
}

.guide-menu-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.guide-menu-description {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.guide-menu-chevron {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 380px) {
  .guide-dropdown {
    position: fixed;
    top: 72px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

@media (min-width: 600px) {
  .info-header,
  .info-content {
    padding-right: 28px;
    padding-left: 28px;
  }

  .info-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-info .app {
    padding-bottom: 48px;
  }

  .info-header,
  .info-content {
    width: min(calc(100% - 48px), var(--content-max-width));
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
  }

  .info-header {
    padding-top: 32px;
    padding-bottom: 20px;
  }

  .info-hero {
    display: flex;
    align-items: center;
    min-height: 210px;
    padding: 36px 40px;
  }

  .info-hero h2 {
    font-size: clamp(28px, 3vw, 40px);
  }

  .info-hero p {
    font-size: 13px;
  }

  .info-content {
    padding-top: 8px;
  }

  .info-layout.contact-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    align-items: start;
  }

  .info-card {
    padding: 20px;
  }

  .info-card-heading h2 {
    font-size: 17px;
  }

  .contact-value {
    font-size: 13px;
  }

  .contact-description,
  .info-card-heading p,
  .info-feature p,
  .info-note,
  .policy-section p,
  .policy-list li,
  .policy-contact a {
    font-size: 11px;
  }

  .policy-section h2 {
    font-size: 15px;
  }
}

html[data-resolved-theme="dark"] .page-info :where(
  .info-card,
  .guide-dropdown
) {
  border-color: var(--border);
  background: var(--card);
}

html[data-resolved-theme="dark"] .page-info :where(
  .contact-link,
  .info-feature,
  .policy-chip
) {
  background: color-mix(in srgb, var(--card) 88%, var(--bg));
}
