.access-request-open {
  overflow: hidden;
}

.access-request-dialog,
.access-request-dialog * {
  box-sizing: border-box;
}

.access-request-dialog {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  overflow-y: auto;
}

.access-request-dialog[hidden] { display: none; }

.access-request-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 12, 14, .79);
  backdrop-filter: blur(13px);
  animation: accessFade .22s ease both;
}

.access-request-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100svh - 60px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(138, 219, 224, .3);
  border-radius: 26px;
  background: linear-gradient(140deg, rgba(11, 57, 63, .98), rgba(3, 18, 21, .99) 62%);
  box-shadow: 0 36px 120px rgba(0, 0, 0, .52), inset 0 1px rgba(237, 242, 238, .08);
  animation: accessPanelIn .3s cubic-bezier(.2, .7, .2, 1) both;
}

.access-request-panel:focus { outline: none; }

.access-request-panel-glow {
  position: absolute;
  z-index: 0;
  top: -190px;
  right: -180px;
  width: 490px;
  aspect-ratio: 1;
  border: 1px solid rgba(207, 175, 112, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(138, 219, 224, .018), 0 0 120px rgba(29, 124, 134, .21);
  pointer-events: none;
}

.access-request-close {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(172, 213, 209, .29);
  border-radius: 50%;
  background: rgba(3, 19, 21, .52);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.access-request-close span {
  position: absolute;
  top: 20px;
  left: 12px;
  width: 17px;
  height: 1px;
  background: var(--paper);
}

.access-request-close span:first-child { transform: rotate(45deg); }
.access-request-close span:last-child { transform: rotate(-45deg); }

.access-request-close:hover,
.access-request-close:focus-visible {
  border-color: var(--gold-soft);
  background: rgba(207, 175, 112, .14);
  outline: none;
  transform: rotate(8deg);
}

.access-request-content,
.access-request-success {
  position: relative;
  z-index: 1;
  padding: 51px 58px 55px;
}

.access-request-eyebrow {
  margin: 0;
  color: var(--teal-bright);
  font: 600 10px var(--font-sans);
  letter-spacing: .16em;
}

.access-request-content h2,
.access-request-success h2 {
  max-width: 610px;
  margin: 15px 0 17px;
  font-size: clamp(42px, 5vw, 67px);
  font-weight: 500;
  line-height: 1.01;
  letter-spacing: -.025em;
}

.access-request-content h2 em,
.access-request-success h2 em {
  color: var(--gold-soft);
  font-style: normal;
  font-weight: 400;
}

.access-request-intro {
  max-width: 610px;
  margin: 0;
  color: rgba(237, 242, 238, .72);
  font-size: 16px;
  line-height: 1.72;
}

.access-request-form {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.access-request-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.access-request-form-grid .access-request-field:nth-child(3) { grid-column: span 2; }
.access-request-field { display: grid; gap: 8px; }

.access-request-field > span {
  color: rgba(237, 242, 238, .8);
  font: 600 10px var(--font-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.access-request-field small {
  margin-left: 5px;
  color: rgba(237, 242, 238, .42);
  font: 500 9px var(--font-sans);
  letter-spacing: .08em;
}

.access-request-field input,
.access-request-field select,
.access-request-field textarea {
  width: 100%;
  border: 1px solid rgba(172, 213, 209, .24);
  border-radius: 9px;
  padding: 12px 14px;
  background: rgba(2, 19, 22, .54);
  color: var(--paper);
  font: 500 15px/1.4 var(--font-sans);
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.access-request-field textarea { min-height: 84px; resize: vertical; }

.access-request-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-soft) 50%), linear-gradient(135deg, var(--gold-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.access-request-field option { background: #08282c; color: var(--paper); }

.access-request-field input:focus,
.access-request-field select:focus,
.access-request-field textarea:focus {
  border-color: var(--teal-bright);
  background: rgba(7, 41, 46, .76);
  box-shadow: 0 0 0 3px rgba(138, 219, 224, .09);
}

.access-request-field input:user-invalid,
.access-request-field select:user-invalid,
.access-request-field textarea:user-invalid { border-color: rgba(218, 128, 114, .86); }

.access-request-other {
  padding: 15px 16px 16px;
  border: 1px solid rgba(207, 175, 112, .26);
  border-radius: 12px;
  background: rgba(207, 175, 112, .045);
}

.access-request-other[hidden] { display: none; }

.access-request-consents {
  display: grid;
  gap: 13px;
  margin: 4px 0 0;
  padding: 21px 0 0;
  border: 0;
  border-top: 1px solid rgba(172, 213, 209, .18);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.access-request-check {
  display: grid;
  grid-template-columns: 19px 1fr;
  gap: 11px;
  align-items: start;
  color: rgba(237, 242, 238, .68);
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}

.access-request-check input {
  appearance: none;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  border: 1px solid rgba(138, 219, 224, .56);
  border-radius: 4px;
  background: rgba(2, 19, 22, .66);
  cursor: pointer;
}

.access-request-check input:checked { border-color: var(--gold); background: var(--gold); }
.access-request-check input:checked:after {
  content: "";
  display: block;
  width: 8px;
  height: 4px;
  margin: 3px 0 0 3px;
  border-bottom: 1px solid var(--ink-deep);
  border-left: 1px solid var(--ink-deep);
  transform: rotate(-45deg);
}

.access-request-check input:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 2px; }
.access-request-check a { color: var(--gold-soft); text-decoration: underline; text-decoration-color: rgba(235, 211, 163, .4); text-underline-offset: 3px; }
.access-request-check a:hover { color: var(--teal-bright); }

.access-request-status { min-height: 21px; margin: 0; color: var(--teal-bright); font-size: 13px; line-height: 1.5; }
.access-request-status.is-error { color: #e6a89c; }

.access-request-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: fit-content;
  min-height: 49px;
  padding: 12px 20px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(207, 175, 112, .09);
  color: var(--gold-soft);
  font: 700 10px var(--font-sans);
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s, opacity .2s;
}

.access-request-submit i { font-size: 18px; font-style: normal; line-height: 0; }
.access-request-submit:hover,
.access-request-submit:focus-visible { background: var(--gold); color: var(--ink-deep); outline: none; transform: translateY(-2px); }
.access-request-submit:disabled { cursor: wait; opacity: .65; transform: none; }

.access-request-success { max-width: 610px; padding-right: 86px; }
.access-request-success > p:not(.access-request-eyebrow) { margin: 0 0 31px; color: rgba(237, 242, 238, .7); font-size: 16px; line-height: 1.72; }

.access-request-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0;
  margin: -1px;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0;
}

.access-request-trap input { position: absolute; left: -9999px; }

@keyframes accessFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes accessPanelIn { from { opacity: 0; transform: translateY(13px) scale(.986); } to { opacity: 1; transform: none; } }

@media (max-width: 620px) {
  .access-request-dialog { place-items: start; padding: 14px; }
  .access-request-panel { max-height: calc(100svh - 28px); border-radius: 19px; }
  .access-request-content,
  .access-request-success { padding: 37px 22px 31px; }
  .access-request-panel-glow { top: -200px; right: -290px; }
  .access-request-close { top: 14px; right: 14px; width: 38px; height: 38px; }
  .access-request-close span { top: 18px; left: 11px; }
  .access-request-content h2,
  .access-request-success h2 { max-width: 250px; margin-top: 14px; font-size: clamp(38px, 13vw, 54px); }
  .access-request-intro { font-size: 14px; line-height: 1.62; }
  .access-request-form { gap: 15px; margin-top: 27px; }
  .access-request-form-grid { grid-template-columns: 1fr; gap: 15px; }
  .access-request-form-grid .access-request-field:nth-child(3) { grid-column: auto; }
  .access-request-field input,
  .access-request-field select,
  .access-request-field textarea { padding: 11px 12px; font-size: 16px; }
  .access-request-check { font-size: 12px; }
  .access-request-submit { width: 100%; }
  .access-request-success { padding-right: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .access-request-backdrop,
  .access-request-panel { animation: none !important; }
  .access-request-close,
  .access-request-submit { transition: none !important; }
}


/* Responsive remediation — maintain generous touch areas without changing the visual hierarchy. */
.access-request-close {
  width: 44px;
  height: 44px;
}
.access-request-close span { top: 21px; left: 13px; }
.access-request-check {
  min-height: 44px;
  padding: 4px 0;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
}
.access-request-check input {
  width: 20px;
  height: 20px;
  margin: 0;
}
@media (max-width: 620px) {
  .access-request-close { width: 44px; height: 44px; }
  .access-request-close span { top: 21px; left: 13px; }
}
