:root {
  --rm-profile-blue: #135786;
  --rm-profile-blue-deep: #0c3352;
  --rm-profile-gold: #f9b500;
  --rm-profile-paper: #fbfaf7;
  --rm-profile-mist: #eef4f7;
  --rm-profile-ink: #1a1a1a;
  --rm-profile-muted: #6b7280;
  --rm-profile-line: #e4e1da;
}

body.rm-profile-open {
  overflow: hidden !important;
}

.rm-profile-gate {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 24, 38, 0.82);
  font-family: "DM Sans", "Jost", system-ui, sans-serif;
}

.rm-profile-panel {
  width: min(960px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border-top: 6px solid var(--rm-profile-gold);
  background: var(--rm-profile-paper);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
}

.rm-profile-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.5fr);
  gap: 34px;
  padding: 30px 34px 24px;
  background: var(--rm-profile-blue-deep);
  color: white;
}

.rm-profile-eyebrow {
  margin: 0 0 9px;
  color: var(--rm-profile-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.rm-profile-head h2 {
  margin: 0;
  color: white;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.rm-profile-head p:last-child {
  align-self: end;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.58;
}

.rm-profile-form {
  padding: 28px 34px 32px;
}

.rm-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 20px;
}

.rm-profile-field {
  display: grid;
  gap: 7px;
}

.rm-profile-field-full {
  grid-column: 1 / -1;
}

.rm-profile-field label,
.rm-profile-consent {
  color: var(--rm-profile-blue-deep);
  font-size: 12px;
  font-weight: 650;
}

.rm-profile-field label span {
  color: var(--rm-profile-muted);
  font-weight: 400;
}

.rm-profile-field input,
.rm-profile-field select {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid #bcc7ce;
  border-radius: 2px;
  background: white;
  color: var(--rm-profile-ink);
  font: inherit;
  font-size: 14px;
}

.rm-profile-field input:focus,
.rm-profile-field select:focus {
  border-color: var(--rm-profile-blue);
  outline: 3px solid rgba(19, 87, 134, 0.16);
}

.rm-profile-contact-note,
.rm-profile-separation,
.rm-profile-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.rm-profile-contact-note {
  margin-top: -7px;
  color: var(--rm-profile-muted);
}

.rm-profile-separation {
  padding: 12px 14px;
  border-left: 4px solid var(--rm-profile-gold);
  background: var(--rm-profile-mist);
  color: var(--rm-profile-blue-deep);
}

.rm-profile-consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.5;
}

.rm-profile-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--rm-profile-blue);
}

.rm-profile-consent a {
  color: var(--rm-profile-blue);
}

.rm-profile-security {
  grid-column: 1 / -1;
  min-height: 65px;
}

.rm-profile-status {
  min-height: 19px;
  color: #9d2528;
  font-weight: 600;
}

.rm-profile-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 3px;
}

.rm-profile-actions small {
  max-width: 540px;
  color: var(--rm-profile-muted);
  font-size: 11px;
  line-height: 1.48;
}

.rm-profile-submit {
  flex: 0 0 auto;
  min-height: 45px;
  padding: 11px 20px;
  border: 0;
  border-radius: 2px;
  background: var(--rm-profile-gold);
  color: #17212a;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.rm-profile-submit:hover {
  background: #e5a800;
}

.rm-profile-submit:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}

.rm-profile-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.rm-profile-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  .rm-profile-gate {
    place-items: stretch;
    padding: 0;
  }

  .rm-profile-panel {
    max-height: 100vh;
    max-height: 100dvh;
  }

  .rm-profile-head,
  .rm-profile-grid {
    grid-template-columns: 1fr;
  }

  .rm-profile-head {
    gap: 15px;
    padding: 25px 20px 20px;
  }

  .rm-profile-form {
    padding: 22px 20px 26px;
  }

  .rm-profile-field-full,
  .rm-profile-contact-note,
  .rm-profile-separation,
  .rm-profile-consent,
  .rm-profile-security,
  .rm-profile-status,
  .rm-profile-actions {
    grid-column: auto;
  }

  .rm-profile-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .rm-profile-submit {
    width: 100%;
  }
}
