/* Apple-like minimal UI.
   Важно: темы часто перетирают стили кнопок/инпутов.
   Тут повышаем специфичность и используем !important. */

.ipgp-wrap, .ipgp-wrap * { box-sizing: border-box; }

.ipgp-wrap {
  padding: 24px 12px;
  background: #f5f5f7;
  border-radius: 24px;
}

.ipgp-wrap .ipgp-card {
  max-width: 560px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e5ea;
  border-radius: 22px;
  padding: 20px 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  color: #1d1d1f;
}

.ipgp-wrap .ipgp-head { margin-bottom: 14px; }

.ipgp-wrap .ipgp-title {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 6px 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ipgp-wrap .ipgp-sub {
  margin: 0 0 6px 0;
  color: #3a3a3c;
  font-size: 14px;
}

.ipgp-wrap .ipgp-privacy {
  margin: 0;
  color: #6e6e73;
  font-size: 12px;
}

.ipgp-wrap .ipgp-steps {
  display: flex;
  gap: 8px;
  margin: 14px 0 16px 0;
  flex-wrap: wrap;
}

.ipgp-wrap .ipgp-step {
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.04);
  color: #6e6e73;
}

.ipgp-wrap .ipgp-step--active {
  background: rgba(0,0,0,.10);
  color: #1d1d1f;
}

.ipgp-wrap .ipgp-form {
  display: grid;
  gap: 12px;
  margin: 0 0 14px 0;
}

.ipgp-wrap .ipgp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .ipgp-wrap .ipgp-grid { grid-template-columns: 1fr; }
}

.ipgp-wrap .ipgp-label span {
  display: block;
  font-size: 13px;
  color: #1d1d1f;
  margin-bottom: 6px;
}

.ipgp-wrap input.ipgp-input {
  width: 100% !important;
  border: 1px solid #d1d1d6 !important;
  border-radius: 14px !important;
  padding: 12px 12px !important;
  font-size: 15px !important;
  outline: none !important;
  background: #fff !important;
  color: #1d1d1f !important;
  box-shadow: none !important;
  transition: box-shadow .2s ease, border-color .2s ease;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.ipgp-wrap input.ipgp-input:focus {
  border-color: rgba(0,0,0,.45) !important;
  box-shadow: 0 0 0 4px rgba(0,0,0,.08) !important;
}

.ipgp-wrap .ipgp-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 0 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  user-select: none !important;
  background: #111111 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.ipgp-wrap .ipgp-form .ipgp-btn { width: 100% !important; }

.ipgp-wrap .ipgp-btn:hover { filter: brightness(1.05) !important; }
.ipgp-wrap .ipgp-btn:active { transform: translateY(1px) !important; }
.ipgp-wrap .ipgp-btn[disabled] { opacity: .55 !important; cursor: not-allowed !important; }

.ipgp-wrap .ipgp-btn--ghost {
  background: rgba(0,0,0,.06) !important;
  color: #1d1d1f !important;
}

.ipgp-wrap .ipgp-btn--ghost:hover { background: rgba(0,0,0,.09) !important; }

.ipgp-wrap .ipgp-result {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #e5e5ea;
}

.ipgp-wrap .ipgp-status {
  font-size: 14px;
  color: #1d1d1f;
  margin-bottom: 10px;
}

.ipgp-wrap .ipgp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ipgp-wrap .ipgp-hint {
  font-size: 12px;
  color: #6e6e73;
  min-height: 16px;
}

.ipgp-wrap .ipgp-hint--ok { color: #1f7a1f; }
.ipgp-wrap .ipgp-hint--err { color: #b42318; }

.ipgp-wrap .ipgp-alert {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  margin: 10px 0;
}

.ipgp-wrap .ipgp-alert--err {
  background: rgba(180, 35, 24, .08);
  color: #b42318;
  border: 1px solid rgba(180, 35, 24, .20);
}

.ipgp-hidden { display: none !important; }
