/* ═══════════════════════════════════════════════
   Дія.Підпис — page styles
   Matches official Diia app design 1:1
   ═══════════════════════════════════════════════ */

#dia-pidpys-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #f5f5f5;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: e-UkraineHead-Regular, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#dia-pidpys-overlay.active {
  display: block;
}

/* ── Header ── */
.dp-header {
  display: flex;
  align-items: center;
  padding: 16px 20px 8px;
  background: #f5f5f5;
  position: sticky;
  top: 0;
  z-index: 10;
}

.dp-back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.dp-back svg {
  width: 24px;
  height: 24px;
  stroke: #000;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Title ── */
.dp-title {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  padding: 8px 20px 16px;
  margin: 0;
  line-height: 1.2;
}

/* ── Main card ── */
.dp-card {
  background: #fff;
  border-radius: 16px;
  margin: 0 16px 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dp-badge {
  display: inline-block;
  background: #d4f5e0;
  color: #1a8a4a;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.dp-card-text {
  font-size: 17px;
  font-weight: 400;
  color: #000;
  line-height: 1.55;
  margin: 0;
}

/* ── Info block (blue background with ⓘ) ── */
.dp-info {
  display: flex;
  gap: 12px;
  background: #e8f4fd;
  border-radius: 12px;
  padding: 16px;
  margin-top: 18px;
  align-items: flex-start;
}

.dp-info-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: #3a8fd6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.dp-info-text {
  font-size: 15px;
  color: #000;
  line-height: 1.5;
  margin: 0;
}

.dp-info-text a {
  color: #000;
  text-decoration: underline;
}

/* ── Q&A row ── */
.dp-qa {
  background: #fff;
  border-radius: 16px;
  margin: 0 16px 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dp-qa-title {
  font-size: 17px;
  font-weight: 600;
  color: #000;
  margin: 0;
}

.dp-qa-arrow {
  width: 36px;
  height: 36px;
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dp-qa-arrow svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Steps card ── */
.dp-steps-card {
  background: #fff;
  border-radius: 16px;
  margin: 0 16px 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dp-steps-title {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin: 0 0 16px;
}

.dp-step {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.dp-step:last-child {
  margin-bottom: 0;
}

.dp-step-num {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  min-width: 20px;
  padding-top: 1px;
}

.dp-step-text {
  font-size: 16px;
  color: #000;
  line-height: 1.5;
  margin: 0;
}

/* ── Bottom warning ── */
.dp-warning {
  display: flex;
  gap: 12px;
  background: #e8f4fd;
  border-radius: 12px;
  padding: 16px;
  margin: 0 16px 24px;
  align-items: flex-start;
}

/* ── Activate button ── */
.dp-btn-wrap {
  position: sticky;
  bottom: 0;
  padding: 12px 16px 24px;
  background: linear-gradient(transparent, #f5f5f5 30%);
}

.dp-btn {
  display: block;
  width: 100%;
  background: #000;
  color: #fff;
  font-family: e-UkraineHead-Regular, sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 18px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.3px;
  -webkit-tap-highlight-color: transparent;
}

.dp-btn:active {
  opacity: 0.85;
}

/* ── Safe area ── */
@supports (padding: env(safe-area-inset-bottom)) {
  .dp-btn-wrap {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .dp-header {
    padding-top: calc(16px + env(safe-area-inset-top));
  }
}
