/* Shared styling for record deletion and protected-record pages. */
.delete-confirm-page {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  max-width: 1040px !important;
  min-height: min(66vh, 680px);
  margin: 0 auto !important;
  padding: clamp(1.5rem, 5vw, 3.75rem) 1rem !important;
  place-items: center;
}

.delete-confirm-page::before,
.delete-confirm-page::after {
  position: absolute;
  z-index: -1;
  display: block;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.delete-confirm-page::before {
  top: 5%;
  left: 2%;
  width: clamp(150px, 24vw, 270px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(239, 68, 68, .10), rgba(239, 68, 68, 0) 70%);
}

.delete-confirm-page::after {
  right: 1%;
  bottom: 4%;
  width: clamp(170px, 26vw, 300px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(36, 99, 155, .10), rgba(36, 99, 155, 0) 70%);
}

.delete-confirm-page .delete-confirm-card {
  width: min(100%, 720px);
  overflow: hidden;
  border: 1px solid #e4e9f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(16, 42, 67, .13), 0 4px 14px rgba(16, 42, 67, .04);
}

.delete-confirm-accent {
  height: 7px;
  background: linear-gradient(90deg, #a61b29 0%, #e04450 52%, #f3a0a5 100%);
}

.delete-confirm-content {
  padding: clamp(1.35rem, 4vw, 2.35rem);
}

.delete-confirm-heading {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.delete-confirm-icon {
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  place-items: center;
  border: 1px solid #f2c7cb;
  border-radius: 19px;
  background: #fff1f2;
  color: #b42332;
  font-size: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.delete-confirm-heading-copy { min-width: 0; }

.delete-confirm-eyebrow {
  margin: 0 0 .4rem;
  color: #a3313c;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.delete-confirm-heading h1 {
  margin: 0;
  color: #14283b;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.delete-confirm-intro {
  margin: .55rem 0 0;
  color: #65758a;
  font-size: .95rem;
  line-height: 1.55;
}

.delete-confirm-record {
  display: flex;
  align-items: center;
  gap: .95rem;
  margin-top: 1.7rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e6ebf1;
  border-radius: 16px;
  background: linear-gradient(115deg, #f8fafc, #fff);
}

.delete-confirm-record-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid #dce6ef;
  border-radius: 13px;
  background: #fff;
  color: #52718e;
}

.delete-confirm-record-copy {
  display: grid;
  min-width: 0;
  gap: .2rem;
}

.delete-confirm-record-label {
  color: #718096;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.delete-confirm-record-copy strong {
  overflow-wrap: anywhere;
  color: #19334a;
  font-size: 1rem;
  font-weight: 750;
}

.delete-confirm-record-tag {
  margin-left: auto;
  padding: .4rem .65rem;
  border: 1px solid #e2e8ef;
  border-radius: 999px;
  background: #fff;
  color: #52677c;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.delete-confirm-notice {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-top: 1rem;
  padding: .95rem 1.05rem;
  border: 1px solid #f0d4a5;
  border-radius: 15px;
  background: #fff9ed;
  color: #65491d;
}

.delete-confirm-notice > i {
  margin-top: .15rem;
  color: #a96a08;
  font-size: 1rem;
}

.delete-confirm-notice p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.6;
}

.delete-confirm-notice p strong { color: #57380d; }

.delete-confirm-page .delete-confirm-notice-protected {
  border-color: #c9dfef;
  background: #f1f8fd;
  color: #294a62;
}

.delete-confirm-page .delete-confirm-notice-protected > i { color: #1769a6; }

.delete-confirm-page .is-protected .delete-confirm-accent {
  background: linear-gradient(90deg, #145987 0%, #3182b6 52%, #9bc9e2 100%);
}

.delete-confirm-page .is-protected .delete-confirm-icon {
  border-color: #c9dfef;
  background: #eff8fd;
  color: #1769a6;
}

.delete-confirm-page form.delete-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  margin: 1.5rem 0 0;
  padding: 1.2rem 0 0 !important;
  border-top: 1px solid #edf0f4 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.delete-confirm-page .delete-confirm-actions .btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .7rem 1rem;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 750;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.delete-confirm-page .delete-confirm-actions .btn:hover { transform: translateY(-1px); }

.delete-confirm-page .delete-confirm-actions .btn:focus-visible {
  outline: 3px solid rgba(36, 99, 155, .3);
  outline-offset: 3px;
}

.delete-confirm-page .delete-confirm-back {
  border: 1px solid #d7e0e9;
  background: #fff;
  color: #334b61;
}

.delete-confirm-page .delete-confirm-back:hover {
  border-color: #bdcad7;
  background: #f6f8fa;
}

.delete-confirm-page .delete-confirm-submit {
  border: 1px solid #a91f2d;
  background: #b42332;
  color: #fff;
  box-shadow: 0 7px 16px rgba(180, 35, 50, .18);
}

.delete-confirm-page .delete-confirm-submit:hover {
  border-color: #921b27;
  background: #9f1f2c;
  color: #fff;
  box-shadow: 0 10px 20px rgba(180, 35, 50, .24);
}

@media (max-width: 575.98px) {
  .delete-confirm-page { min-height: 0; padding: 1.25rem .4rem 2rem !important; }
  .delete-confirm-page .delete-confirm-card { border-radius: 19px; }
  .delete-confirm-heading { gap: .8rem; }
  .delete-confirm-icon { width: 50px; height: 50px; flex-basis: 50px; border-radius: 15px; font-size: 1.15rem; }
  .delete-confirm-intro { font-size: .88rem; }
  .delete-confirm-record { align-items: flex-start; flex-wrap: wrap; gap: .75rem; padding: .9rem; }
  .delete-confirm-record-tag { margin-left: 3.4rem; }
  .delete-confirm-page form.delete-confirm-actions { flex-direction: column-reverse; }
  .delete-confirm-page .delete-confirm-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .delete-confirm-page .delete-confirm-actions .btn { transition: none; }
  .delete-confirm-page .delete-confirm-actions .btn:hover { transform: none; }
}
