/* =========================================================
   Unity Help Hands — Registration Page
   Extends tokens from unity-login.css
   ========================================================= */

.uhh-card-wide {
  max-width: 560px;
}

/* ---------- Two-column field rows ---------- */

.uhh-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.uhh-row .uhh-field {
  margin-bottom: 20px;
}

@media (max-width: 560px) {
  .uhh-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ---------- Validators / hints ---------- */

.uhh-field > span {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
}

.uhh-hint {
  display: block;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(111, 207, 151, 0.12);
  border: 1px solid rgba(111, 207, 151, 0.35);
  border-radius: 10px;
  font-size: 12.5px;
  color: #218F5B;
  font-weight: 600;
}

.uhh-hint:empty {
  display: none;
}

/* ---------- Member ID (read-only) chip ---------- */

.uhh-field-static .uhh-input-wrap input[type="text"] {
  background: var(--cream-dim);
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: not-allowed;
}

.uhh-field-static label small {
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
  text-transform: none;
  letter-spacing: 0;
}

/* ---------- Footer: already have an account ---------- */

.uhh-foot-pills {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.uhh-foot-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease;
}

.uhh-foot-pill:hover {
  transform: translateY(-2px);
}

.uhh-foot-pill.uhh-pill-site {
  background: rgba(77, 168, 218, 0.14);
  color: #2276A8;
  border-color: rgba(77, 168, 218, 0.4);
}

.uhh-foot-pill.uhh-pill-opportunity {
  background: rgba(181, 126, 220, 0.14);
  color: #8A4FBE;
  border-color: rgba(181, 126, 220, 0.4);
}

/* =========================================================
   Modal popup (AjaxControlToolkit ModalPopupExtender)
   Same element/class names as original markup, new visuals
   ========================================================= */

.modalBackground {
  background: rgba(11, 79, 74, 0.55);
  backdrop-filter: blur(2px);
  animation: uhh-fade-in 0.25s ease-in-out;
}

.modalPopup1 {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0;
  width: 92%;
  max-width: 460px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px -20px rgba(11, 79, 74, 0.5);
  animation: uhh-scale-up 0.28s ease-in-out;
  overflow: hidden;
  font-family: var(--font-body);
}

.modalPopup1 .modal-dialog,
.modalPopup1 .modal-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
}

.modalPopup1 .modal-header {
  flex: 0 0 auto;
  position: relative;
  background: linear-gradient(120deg, var(--teal-deep), var(--teal-darker));
  padding: 20px 26px 16px;
  text-align: center;
}

.modalPopup1 .modal-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 5px;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--sage), var(--sky));
}

.modalPopup1 .modal-header::before {
  content: "🎉";
  display: block;
  font-size: 22px;
  margin-bottom: 2px;
}

.modalPopup1 h5 {
  margin: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
}

.modalPopup1 .close {
  position: absolute;
  right: 16px;
  top: 12px;
  color: var(--cream);
  font-size: 24px;
  font-weight: 400;
  opacity: 0.75;
  cursor: pointer;
  background: none;
  border: none;
}

.modalPopup1 .close:hover {
  opacity: 1;
}

.modalPopup1 .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 24px 6px;
}

.modalPopup1 .modal-body p {
  background: var(--cream-dim) !important;
  border-radius: 14px;
  margin: 0 0 14px;
  padding: 14px 16px;
}

/* Force full-contrast readable text, overriding any inline color / faded
   gradient-text tricks coming from the server-rendered message */
.modalPopup1 .modal-body p,
.modalPopup1 .modal-body p * {
  color: var(--navy-text) !important;
  -webkit-text-fill-color: var(--navy-text) !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
  background-image: none !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  text-align: left !important;
}

.modalPopup1 .modal-body p b,
.modalPopup1 .modal-body p strong {
  color: var(--teal-deep) !important;
  -webkit-text-fill-color: var(--teal-deep) !important;
  font-weight: 700 !important;
}

.modalPopup1 .modal-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: 16px 26px 22px;
  border: none;
}

.modalPopup1 .btn-success {
  background: linear-gradient(120deg, var(--sage), #4FB37F);
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 34px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 14px 24px -10px rgba(111, 207, 151, 0.55);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.modalPopup1 .btn-success:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

@keyframes uhh-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes uhh-scale-up {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
