/* ============================================================
   testpagelocal.css  -  served locally via Fiddler
   TEST TIP: change --tp-accent below, save, refresh the page.
   If the heading + button color changes, CSS reflection works.
   ============================================================ */
:root {
  --tp-accent: #3371E7;   /* <-- change me to test (e.g. #E7336B) */
  --tp-ink: #00214D;
  --tp-bg: #F0F4FB;
}

.tp-wrapper {
  box-sizing: border-box;
  width: 100%;
  min-height: 60vh;
  padding: 32px 24px;
  font-family: Poppins, Arial, sans-serif;
  color: var(--tp-ink);
}

.tp-card {
  max-width: 560px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #E0E8F5;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 33, 77, 0.10);
  padding: 32px;
}

.tp-title {
  margin: 0 0 4px;
  font-size: 1.6rem;
  color: red;
}

.tp-subtitle {
  margin: 0 0 24px;
  font-size: 0.9rem;
  color: #4A5568;
}

.tp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.tp-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tp-ink);
}

.tp-input {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 1px solid #C6D4EC;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
}

.tp-input:focus {
  border-color: var(--tp-accent);
  box-shadow: 0 0 0 3px rgba(51, 113, 231, 0.15);
}

.tp-file-names {
  font-size: 0.8125rem;
  color: #4A5568;
  margin-top: 4px;
}

.tp-actions {
  margin-top: 8px;
}

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--tp-accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.tp-btn:hover {
  filter: brightness(0.92);
}

.tp-result {
  margin-top: 20px;
  padding: 14px;
  font-size: 0.875rem;
  white-space: pre-wrap;
  background: var(--tp-bg);
  border-radius: 8px;
  display: none;
}

.tp-result.is-visible {
  display: block;
}

/* ----- Success modal (shown by testpagelocal.js on submit) ----- */
#tp-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 33, 77, 0.5);
}

#tp-modal.is-open {
  display: flex;
}

#tp-modal .tp-modal-box {
  width: min(420px, 100%);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 22px 55px rgba(0, 33, 77, 0.24);
  padding: 32px;
  text-align: center;
  font-family: Poppins, Arial, sans-serif;
}

#tp-modal .tp-modal-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2FB35A;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
}

#tp-modal .tp-modal-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--tp-ink);
}

#tp-modal .tp-modal-msg {
  margin: 0 0 22px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4A5568;
}

#tp-modal .tp-modal-btn {
  min-height: 42px;
  padding: 10px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--tp-accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#tp-modal .tp-modal-btn:hover {
  filter: brightness(0.92);
}