/* Request Access — intelligent entry
   Reuses the site's variables (from style.css). Mobile-first: base rules
   are for narrow screens, then progressive-enhancement at wider widths.
   No new colour system, no new font stack — this must feel like the rest
   of evrynn.com, not a bolted-on chat widget. */

:root {
  --req-max: 640px;
  --req-pad: clamp(1.25rem, 4vw, 2rem);
  --req-radius: 12px;
  --req-focus: #d9b871;
}

.req-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #050504;
  color: #f5f2ea;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.req-nav {
  padding: 1rem var(--req-pad);
  border-bottom: 1px solid rgba(245, 242, 234, 0.08);
}
.req-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.req-nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #f5f2ea;
  text-decoration: none;
}
.req-nav-back {
  font-size: 0.875rem;
  color: rgba(245, 242, 234, 0.7);
  text-decoration: none;
}
.req-nav-back:hover,
.req-nav-back:focus-visible { color: #f5f2ea; }

/* MAIN */
.req-main {
  flex: 1;
  padding: clamp(2rem, 6vw, 4rem) var(--req-pad);
  display: flex;
  justify-content: center;
}
.req-shell {
  width: 100%;
  max-width: var(--req-max);
}

.req-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--req-focus);
  margin: 0 0 0.75rem;
}
.req-headline {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
.req-sub {
  color: rgba(245, 242, 234, 0.75);
  line-height: 1.6;
  margin: 0 0 2rem;
  font-size: 1rem;
}

/* INTENT LIST */
.req-intents {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.req-intent {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.125rem;
  background: rgba(245, 242, 234, 0.03);
  border: 1px solid rgba(245, 242, 234, 0.12);
  border-radius: var(--req-radius);
  color: #f5f2ea;
  cursor: pointer;
  font: inherit;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.req-intent:hover,
.req-intent:focus-visible {
  background: rgba(245, 242, 234, 0.06);
  border-color: var(--req-focus);
  outline: none;
}
.req-intent:focus-visible {
  box-shadow: 0 0 0 2px rgba(217, 184, 113, 0.4);
}
.req-intent:active { transform: translateY(1px); }
.req-intent-title {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.req-intent-desc {
  display: block;
  font-size: 0.875rem;
  color: rgba(245, 242, 234, 0.65);
  line-height: 1.45;
}

/* PROGRESSIVE STEP */
.req-back-link {
  background: none;
  border: 0;
  color: rgba(245, 242, 234, 0.65);
  font: inherit;
  font-size: 0.875rem;
  padding: 0;
  margin-bottom: 1rem;
  cursor: pointer;
}
.req-back-link:hover,
.req-back-link:focus-visible { color: #f5f2ea; outline: none; text-decoration: underline; }

.req-step-title {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
.req-step-why {
  color: rgba(245, 242, 234, 0.7);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

.req-form { display: grid; gap: 1.125rem; }
.req-field { display: grid; gap: 0.375rem; }
.req-field label {
  font-size: 0.875rem;
  color: rgba(245, 242, 234, 0.85);
  font-weight: 500;
}
.req-required { color: var(--req-focus); font-weight: 400; }
.req-field input,
.req-field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: rgba(245, 242, 234, 0.04);
  border: 1px solid rgba(245, 242, 234, 0.15);
  border-radius: 8px;
  color: #f5f2ea;
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
}
.req-field input:focus,
.req-field textarea:focus {
  outline: none;
  border-color: var(--req-focus);
  box-shadow: 0 0 0 2px rgba(217, 184, 113, 0.25);
}
.req-field-hint {
  font-size: 0.8125rem;
  color: rgba(245, 242, 234, 0.55);
  margin: 0.125rem 0 0;
}
.req-legal {
  font-size: 0.75rem;
  color: rgba(245, 242, 234, 0.55);
  line-height: 1.55;
  margin: 0.5rem 0 0;
}
.req-legal a { color: rgba(245, 242, 234, 0.85); }

.req-actions { margin-top: 0.75rem; }
.req-submit {
  width: 100%;
  padding: 0.9375rem 1.25rem;
  background: var(--req-focus);
  border: 0;
  border-radius: 8px;
  color: #050504;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.req-submit:hover:not(:disabled),
.req-submit:focus-visible:not(:disabled) { background: #e6c886; outline: none; }
.req-submit:focus-visible { box-shadow: 0 0 0 3px rgba(217, 184, 113, 0.35); }
.req-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.req-status,
.req-error {
  font-size: 0.875rem;
  min-height: 1.25rem;
  margin-top: 0.5rem;
}
.req-status { color: rgba(245, 242, 234, 0.7); }
.req-error { color: #ff8a80; }

/* SUCCESS */
.req-done {
  text-align: center;
  padding: 2rem 0;
}
.req-done-mark {
  font-size: 2rem;
  color: var(--req-focus);
  margin: 0 0 0.75rem;
}
.req-done-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.75rem;
}
.req-done-body {
  color: rgba(245, 242, 234, 0.75);
  line-height: 1.6;
  margin: 0 auto 1.5rem;
  max-width: 32rem;
}
.req-done-alt a { color: var(--req-focus); }

/* PARTNER REDIRECT */
.req-redirect {
  padding: 1.5rem;
  background: rgba(217, 184, 113, 0.06);
  border: 1px solid rgba(217, 184, 113, 0.25);
  border-radius: var(--req-radius);
}
.req-redirect-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  margin: 0 0 0.75rem;
}
.req-redirect-body {
  color: rgba(245, 242, 234, 0.8);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}
.req-redirect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
}
.req-redirect-cta {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: var(--req-focus);
  color: #050504;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.req-redirect-back {
  background: none;
  border: 0;
  color: rgba(245, 242, 234, 0.7);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
}
.req-redirect-back:hover,
.req-redirect-back:focus-visible { color: #f5f2ea; outline: none; text-decoration: underline; }

/* NOSCRIPT FALLBACK */
.req-fallback-form {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px dashed rgba(245, 242, 234, 0.2);
  border-radius: var(--req-radius);
  margin-bottom: 2rem;
}
.req-fallback-form label { display: grid; gap: 0.375rem; font-size: 0.875rem; }
.req-fallback-form input,
.req-fallback-form select,
.req-fallback-form textarea {
  padding: 0.625rem 0.75rem;
  background: rgba(245, 242, 234, 0.04);
  border: 1px solid rgba(245, 242, 234, 0.15);
  border-radius: 6px;
  color: #f5f2ea;
  font: inherit;
}
.req-fallback-form button {
  padding: 0.75rem;
  background: var(--req-focus);
  border: 0;
  border-radius: 6px;
  color: #050504;
  font-weight: 600;
  cursor: pointer;
}
.req-fallback-note {
  font-size: 0.8125rem;
  color: rgba(245, 242, 234, 0.7);
  margin: 0;
}

/* FOOTER */
.req-footer {
  padding: 1.5rem var(--req-pad);
  text-align: center;
  color: rgba(245, 242, 234, 0.5);
  font-size: 0.8125rem;
  border-top: 1px solid rgba(245, 242, 234, 0.06);
}
.req-footer a { color: rgba(245, 242, 234, 0.7); text-decoration: none; }
.req-footer a:hover { color: #f5f2ea; }

/* WIDER SCREENS */
@media (min-width: 640px) {
  .req-intents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .req-intent,
  .req-submit,
  .req-nav-back { transition: none; }
}
