/* ============================================================
   GMC Client Accountability Notice — modal popup
   Palette matched to assets/css/style.css:
     #f16126 brand orange (primary CTA)   #3183f7 accent blue
     #101115 heading/body text            #ecf0f3 light surface
   Used by assets/js/gmc-notice.js
   ============================================================ */

.gmc-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 17, 21, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  -webkit-overflow-scrolling: touch;
}

.gmc-notice-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.gmc-notice-modal {
  position: relative;
  width: 100%;
  max-width: 660px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(5, 25, 55, 0.35);
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.28s ease;
  font-family: "Roboto", sans-serif;
}

.gmc-notice-overlay.is-open .gmc-notice-modal {
  transform: translateY(0) scale(1);
}

/* style.css applies `transition: all .3s ease` to every h1-h6. That also
   animates the inherited visibility/colour of the headings inside this
   dialog, so the title fades in late and out of step with the rest of the
   card. Opt these headings out. */
.gmc-notice-modal h2,
.gmc-notice-modal h3 {
  -webkit-transition: none;
  -moz-transition: none;
  transition: none;
}

/* ---------- header ---------- */

.gmc-notice-head {
  flex: 0 0 auto;
  position: relative;
  padding: 22px 60px 20px 26px;
  background: linear-gradient(135deg, #f16126 0%, #d94d18 100%);
  color: #ffffff;
}

.gmc-notice-eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  opacity: 1;
  margin-bottom: 8px;
}

.gmc-notice-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.gmc-notice-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #f16126;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(5, 25, 55, 0.2);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gmc-notice-close:hover,
.gmc-notice-close:focus {
  background: #101115;
  color: #ffffff;
  transform: rotate(90deg);
  outline: none;
}

/* ---------- scrollable body ---------- */

.gmc-notice-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 24px 26px 8px;
  color: #4d5765;
  font-size: 15px;
  line-height: 1.7;
}

.gmc-notice-intro {
  margin: 0 0 20px;
  color: #101115;
  font-size: 15px;
  line-height: 1.7;
}

.gmc-notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gmc-notice-list li {
  position: relative;
  margin-bottom: 15px;
  padding-left: 22px;
}

.gmc-notice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f16126;
}

.gmc-notice-list li strong {
  display: block;
  color: #101115;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
}

/* ---------- bank details ---------- */

.gmc-notice-bank {
  margin: 22px 0 18px;
  padding: 18px 20px;
  background: #ecf0f3;
  border-left: 4px solid #3183f7;
  border-radius: 0 8px 8px 0;
}

.gmc-notice-bank h3 {
  margin: 0 0 12px;
  color: #051937;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.gmc-notice-bank dl {
  margin: 0;
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 7px 14px;
  font-size: 14px;
}

.gmc-notice-bank dt {
  margin: 0;
  color: #6a7482;
  font-weight: 500;
  line-height: 1.5;
}

.gmc-notice-bank dd {
  margin: 0;
  color: #101115;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.gmc-notice-bank dd.gmc-notice-acc {
  color: #3183f7;
  font-size: 15px;
  letter-spacing: 0.4px;
}

/* ---------- verify / contact ---------- */

.gmc-notice-verify {
  margin: 0 0 18px;
  padding: 16px 20px;
  background: #fff6f2;
  border: 1px solid rgba(241, 97, 38, 0.25);
  border-radius: 8px;
}

.gmc-notice-verify h3 {
  margin: 0 0 10px;
  color: #101115;
  font-size: 15px;
  font-weight: 700;
}

.gmc-notice-contact {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.9;
}

.gmc-notice-contact li {
  color: #4d5765;
}

.gmc-notice-contact span {
  color: #6a7482;
  display: inline-block;
  min-width: 118px;
}

.gmc-notice-contact a {
  color: #f16126;
  font-weight: 600;
  text-decoration: none;
}

.gmc-notice-contact a:hover {
  text-decoration: underline;
}

.gmc-notice-sign {
  margin: 0 0 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 17, 21, 0.1);
  color: #6a7482;
  font-size: 13px;
  line-height: 1.6;
}

.gmc-notice-sign strong {
  display: block;
  color: #101115;
  font-size: 14px;
}

/* ---------- footer ---------- */

.gmc-notice-foot {
  flex: 0 0 auto;
  padding: 16px 26px 20px;
  background: #ffffff;
  border-top: 1px solid rgba(16, 17, 21, 0.08);
  text-align: right;
}

.gmc-notice-ack {
  display: inline-block;
  min-height: 44px;
  padding: 11px 32px;
  border: 0;
  border-radius: 4px;
  background: #f16126;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gmc-notice-ack:hover,
.gmc-notice-ack:focus {
  background: #101115;
  outline: none;
}

/* prevent background scroll while open */
body.gmc-notice-open {
  overflow: hidden;
}

/* ---------- responsive ---------- */

@media (max-width: 575px) {
  .gmc-notice-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .gmc-notice-modal {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 12px 12px 0 0;
  }

  .gmc-notice-head {
    padding: 20px 58px 18px 20px;
  }

  .gmc-notice-eyebrow {
    font-size: 12px;
    letter-spacing: 0.6px;
  }

  .gmc-notice-head h2 {
    font-size: 18px;
  }

  .gmc-notice-body {
    padding: 20px 20px 8px;
    font-size: 14px;
  }

  .gmc-notice-bank,
  .gmc-notice-verify {
    padding: 15px 16px;
  }

  .gmc-notice-bank dl {
    grid-template-columns: 1fr;
    gap: 0 0;
  }

  .gmc-notice-bank dt {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 9px;
  }

  .gmc-notice-bank dd {
    font-size: 14px;
  }

  .gmc-notice-contact span {
    display: block;
    min-width: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 7px;
  }

  .gmc-notice-foot {
    padding: 14px 20px 18px;
    text-align: center;
  }

  .gmc-notice-ack {
    width: 100%;
  }
}
