.ptm-form {
  width: min(100%, 980px);
  max-width: 980px;
  margin: 1rem auto;
  padding: 1rem;
  border: 1px solid #d5d5d5;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}

.ptm-gate {
  width: min(100%, 620px);
  margin: 1rem auto;
  padding: 1rem;
  border: 1px solid #d5d5d5;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}

.ptm-gate h3 {
  margin: 0 0 0.4rem;
}

.ptm-gate p {
  margin: 0 0 0.8rem;
  color: #4b5563;
}

.ptm-gate__error {
  color: #b91c1c !important;
  font-weight: 700;
}

.ptm-gate__form label {
  display: block;
  font-weight: 600;
}

.ptm-gate__form input {
  width: 100%;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  margin-top: 0.35rem;
}

.ptm-gate__form button {
  width: 100%;
  margin-top: 0.8rem;
  border: 0;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  padding: 0.72rem 1rem;
  cursor: pointer;
  font-weight: 700;
}

.ptm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.ptm-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.ptm-form small {
  display: block;
  margin-top: 0.35rem;
  color: #4b5563;
  font-size: 0.78rem;
  font-weight: 600;
}

.ptm-form input,
.ptm-form textarea,
.ptm-form button {
  width: 100%;
  margin-top: 0.35rem;
}

.ptm-form input,
.ptm-form textarea {
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-weight: 400;
}

.ptm-form > button[type="submit"] {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 8px;
  background: #111827 !important;
  color: #fff !important;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.ptm-form > button[type="submit"]:hover,
.ptm-form > button[type="submit"]:focus,
.ptm-form > button[type="submit"]:active,
.ptm-form > button[type="submit"]:visited {
  background: #111827 !important;
  color: #fff !important;
}

.ptm-expiry-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.ptm-form .ptm-expiry-btn {
  width: auto !important;
  margin-top: 0 !important;
  padding: 0.5rem 0.8rem !important;
  border-radius: 999px !important;
  border: 1px solid #111827 !important;
  background: #fff !important;
  color: #111827 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.ptm-form .ptm-expiry-btn.is-active {
  background: #111827 !important;
  color: #fff !important;
}

.ptm-form .ptm-expiry-btn:not(.is-active):hover,
.ptm-form .ptm-expiry-btn:not(.is-active):focus {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

.ptm-status {
  margin-top: 0.75rem;
}

.ptm-status.is-error {
  color: #b91c1c;
}

.ptm-progress {
  margin-top: 1rem;
}

.ptm-progress__track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.ptm-progress__bar {
  width: 0;
  height: 100%;
  background: #111827;
  transition: width 0.2s ease;
}

.ptm-progress__meta {
  margin-top: 0.45rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.ptm-progress__pct {
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
  color: #111827;
}

.ptm-progress__speed {
  font-size: 0.78rem;
  color: #4b5563;
  font-weight: 600;
}

.ptm-link {
  margin-top: 1rem;
}
.ptm-link {
  text-align: center;
}

.ptm-link__btn {
  display: inline-block;
  margin: 0 auto;
  max-width: 100%;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  word-break: break-all;
  border: 0;
  cursor: pointer;
}

.ptm-link__success {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: #111827;
  font-weight: 700;
}

.ptm-link__recap {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #4b5563;
  font-weight: 600;
}

@media (max-width: 700px) {
  .ptm-grid {
    grid-template-columns: 1fr;
  }
}
