/* static/account/request_access.css */
:root {
  --cosmic-primary: #5b6cff;
  --cosmic-secondary: #4323b8;
  --cosmic-accent: #8b5cf6;
  --cosmic-accent-2: #22d3ee;
  --cosmic-bg: #0b1020;
  --cosmic-bg-2: #111831;
  --cosmic-card: rgba(255, 255, 255, 0.05);
  --cosmic-card-strong: rgba(255, 255, 255, 0.07);
  --cosmic-text: #f8fafc;
  --cosmic-muted: rgba(226, 232, 240, 0.78);
  --cosmic-border: rgba(255, 255, 255, 0.12);
  --cosmic-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --cosmic-radius: 24px;
  --cosmic-radius-md: 18px;
}

@keyframes cosmicFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(180deg); }
}

@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes formFieldAppear {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.req-cosmic-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 70%, rgba(91, 108, 255, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 85% 24%, rgba(67, 35, 184, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 55% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 55%),
    linear-gradient(135deg, var(--cosmic-bg) 0%, #11172d 40%, var(--cosmic-bg-2) 100%);
  background-size: 200% 200%;
  animation: gradientShift 18s ease infinite;
  z-index: -2;
}

.req-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--cosmic-primary), var(--cosmic-accent), var(--cosmic-accent-2));
  z-index: 1000;
  transition: width 0.3s ease;
}

.req-shell {
  min-height: 100vh;
  position: relative;
  padding: 1.5rem 1rem 3rem;
}

.req-page-top {
  max-width: 1400px;
  margin: 0 auto 1.35rem;
}

.req-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--cosmic-muted);
  font-size: 0.95rem;
}

.req-breadcrumb-home {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--cosmic-border);
  color: var(--cosmic-text);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.req-breadcrumb-home:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 108, 255, 0.6);
  background: rgba(91, 108, 255, 0.12);
  box-shadow: 0 14px 32px rgba(91, 108, 255, 0.18);
}

.req-breadcrumb-home i {
  color: #c7d2fe;
}

.req-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
}

.req-breadcrumb-current {
  font-weight: 700;
  color: #e2e8f0;
}

/* HERO */
.req-page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(91, 108, 255, 0.14), rgba(67, 35, 184, 0.08)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid var(--cosmic-border);
  border-radius: 28px;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  box-shadow: var(--cosmic-shadow);
  backdrop-filter: blur(18px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.req-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.13), transparent 30%),
    radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.14), transparent 34%);
  pointer-events: none;
}

.req-page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.req-page-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0 auto 1rem;
}

.req-page-title {
  margin: 0 auto;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 40%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.req-page-intro {
  margin: 1rem auto 0;
  max-width: 900px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--cosmic-muted);
  text-align: center;
}

.req-page-pills {
  margin-top: 1.15rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.req-page-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--cosmic-border);
  color: #e5eefc;
  font-size: 0.92rem;
  font-weight: 700;
}

/* GRID */
.req-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(20px, 3vw, 36px);
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

/* SIDEBAR */
.req-side-cosmic {
  position: sticky;
  top: 1.5rem;
  background: var(--cosmic-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--cosmic-border);
  border-radius: var(--cosmic-radius);
  padding: clamp(20px, 2.5vw, 32px);
  box-shadow: var(--cosmic-shadow);
  animation: slideInFromLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.req-side-cosmic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(91, 108, 255, 0.10) 0%,
    rgba(67, 35, 184, 0.05) 55%,
    rgba(139, 92, 246, 0.08) 100%
  );
  border-radius: var(--cosmic-radius);
  z-index: -1;
}

.req-brand-cosmic {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.req-logo-cosmic {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--cosmic-primary), var(--cosmic-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(91, 108, 255, 0.28);
  animation: cosmicFloat 6s ease-in-out infinite;
}

.req-logo-cosmic i {
  font-size: 1.9rem;
  color: white;
}

.req-title-cosmic {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 0.25rem;
}

.req-sub-cosmic {
  color: var(--cosmic-muted);
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}

.req-pitch-cosmic {
  color: var(--cosmic-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-weight: 500;
}

.req-points-cosmic {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 1rem;
}

.req-points-cosmic li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--cosmic-text);
  font-weight: 500;
}

.req-points-cosmic i {
  color: #8ab4ff;
  font-size: 1.05rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.req-trust-cosmic {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.req-badge-cosmic {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--cosmic-border);
  border-radius: 12px;
  color: var(--cosmic-muted);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.req-badge-cosmic:hover {
  background: rgba(91, 108, 255, 0.11);
  border-color: rgba(91, 108, 255, 0.5);
  transform: translateY(-2px);
}

/* CARD FORM */
.req-card-cosmic {
  background: var(--cosmic-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--cosmic-border);
  border-radius: var(--cosmic-radius);
  box-shadow: var(--cosmic-shadow);
  animation: slideInFromRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.req-head-cosmic {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--cosmic-border);
  background: linear-gradient(
    135deg,
    rgba(91, 108, 255, 0.08) 0%,
    rgba(67, 35, 184, 0.04) 100%
  );
}

.req-head-cosmic h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 0.5rem;
}

.req-head-cosmic .sub {
  color: var(--cosmic-muted);
  font-size: 1.02rem;
  margin: 0;
  font-weight: 500;
}

.req-required-legend {
  margin: 0.9rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--cosmic-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.req-required-star {
  color: #ff6b6b !important;
  font-size: 1rem;
  line-height: 1;
  font-weight: 900 !important;
}

/* FORM BODY */
.req-body-cosmic {
  padding: 2rem;
  padding-bottom: 5rem;
}

.req-form-group {
  position: relative;
  margin-bottom: 1.5rem;
  animation: formFieldAppear 0.6s ease-out forwards;
  animation-fill-mode: both;
  opacity: 0;
  min-width: 0;
}

.req-form-group:nth-child(1) { animation-delay: 0.1s; }
.req-form-group:nth-child(2) { animation-delay: 0.2s; }
.req-form-group:nth-child(3) { animation-delay: 0.3s; }
.req-form-group:nth-child(4) { animation-delay: 0.4s; }
.req-form-group:nth-child(5) { animation-delay: 0.5s; }

.req-row-cosmic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.req-label-cosmic {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
  color: var(--cosmic-text);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.35;
}

.req-label-cosmic i {
  color: #a5b4fc;
  flex: 0 0 auto;
}

.req-required-inline {
  color: #ff6b6b !important;
  font-weight: 900 !important;
  margin-left: 0.15rem;
  display: inline-block;
}

.req-label-cosmic .req-required-inline,
.req-required-star,
.req-label-cosmic .req-required-inline,
.req-required-legend .req-required-star {
  color: #ff6b6b !important;
  font-weight: 900 !important;
}

.req-help-under-label {
  margin: 0 0 0.65rem;
  color: var(--cosmic-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.req-help-cosmic {
  color: var(--cosmic-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.req-input-cosmic,
.req-input-cosmic[type],
.req-body-cosmic select,
.req-body-cosmic textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
}

.req-input-cosmic {
  padding: 1rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--cosmic-border);
  border-radius: 14px;
  color: var(--cosmic-text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.req-input-cosmic[required] {
  border-color: rgba(91, 108, 255, 0.35);
}

.req-input-cosmic[required]:placeholder-shown {
  box-shadow: inset 0 0 0 1px rgba(91, 108, 255, 0.06);
}

.req-input-cosmic:focus {
  outline: none;
  border-color: rgba(91, 108, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(91, 108, 255, 0.12);
}

.req-input-cosmic::placeholder,
.req-input-cosmic::-webkit-input-placeholder,
.req-body-cosmic textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.95rem;
}

.req-form-group textarea.req-input-cosmic {
  min-height: 120px;
  resize: vertical;
}

.req-error-cosmic {
  color: #fca5a5;
  font-size: 0.86rem;
  margin-top: 0.5rem;
  font-weight: 700;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.req-form-group.error .req-input-cosmic {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.req-form-group.error .req-label-cosmic {
  color: #fecaca;
}

.req-form-group.error .req-help-under-label {
  color: #fca5a5;
}

.req-form-group.success .req-input-cosmic {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

/* CHIPS */
.req-chips-cosmic {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.req-chip-cosmic {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--cosmic-border);
  border-radius: 999px;
  color: var(--cosmic-text);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.req-chip-cosmic:hover {
  border-color: rgba(91, 108, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(91, 108, 255, 0.18);
}

.req-chip-cosmic input[type="radio"] {
  display: none;
}

.req-chip-cosmic:has(input[type="radio"]:checked),
.req-chip-cosmic.is-selected {
  background: linear-gradient(135deg, var(--cosmic-primary), var(--cosmic-secondary));
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(91, 108, 255, 0.26);
}

/* INFO / CAPTCHA */
.req-note-cosmic {
  color: var(--cosmic-muted);
  font-size: 0.92rem;
  text-align: center;
  margin: 1.5rem 0 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 14px;
  border: 1px solid var(--cosmic-border);
  line-height: 1.7;
}

.req-turnstile-wrap {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.req-turnstile-wrap .cf-turnstile {
  min-height: 65px;
}

.req-hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ACTIONS */
.req-actions-cosmic {
  position: sticky;
  bottom: 0;
  padding: 1.25rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(91, 108, 255, 0.07) 0%,
    rgba(67, 35, 184, 0.04) 100%
  );
  border-top: 1px solid var(--cosmic-border);
  backdrop-filter: blur(12px);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.req-btn-cosmic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.45rem;
  border: 1.5px solid var(--cosmic-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cosmic-text);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.req-btn-cosmic::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.14),
    transparent
  );
  transition: left 0.55s ease;
}

.req-btn-cosmic:hover::before {
  left: 120%;
}

.req-btn-cosmic:hover {
  border-color: rgba(91, 108, 255, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(91, 108, 255, 0.18);
}

.req-btn-cosmic.primary {
  background: linear-gradient(135deg, var(--cosmic-primary), var(--cosmic-secondary));
  border-color: transparent;
  color: white;
}

.req-btn-cosmic.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(91, 108, 255, 0.32);
}

.req-btn-cosmic[disabled] {
  cursor: wait;
  opacity: 0.78;
  transform: none;
  box-shadow: none;
}

.req-loading {
  display: none;
}

/* SEO BLOCK */
.req-seo-section {
  max-width: 1400px;
  margin: 2.5rem auto 0;
  padding-top: 0.5rem;
}

.req-seo-heading {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 1.5rem;
}

.req-seo-heading h2 {
  margin: 0.7rem 0 0.7rem;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 900;
  color: #f8fafc;
}

.req-seo-heading p {
  margin: 0;
  color: var(--cosmic-muted);
  line-height: 1.75;
  font-size: 1rem;
}

.req-seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.req-seo-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.035));
  border: 1px solid var(--cosmic-border);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

.req-seo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91,108,255,0.08), rgba(34,211,238,0.03));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.req-seo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 108, 255, 0.45);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
}

.req-seo-card:hover::before {
  opacity: 1;
}

.req-seo-card > * {
  position: relative;
  z-index: 1;
}

.req-seo-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(91,108,255,0.22), rgba(139,92,246,0.22));
  color: #dbeafe;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.req-seo-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: #f8fafc;
}

.req-seo-card p {
  margin: 0;
  color: var(--cosmic-muted);
  line-height: 1.75;
}

.req-seo-list,
.req-link-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--cosmic-muted);
  display: grid;
  gap: 0.7rem;
  line-height: 1.7;
}

.req-link-list a {
  color: #eef2ff;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.25s ease;
}

.req-link-list a:hover {
  color: #93c5fd;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .req-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .req-side-cosmic {
    position: relative;
    top: 0;
  }

  .req-seo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .req-shell {
    padding: 0.9rem 0.6rem 2.2rem;
  }

  .req-page-hero {
    text-align: center;
    padding: 1.15rem;
    border-radius: 22px;
  }

  .req-page-hero__content {
    max-width: 100%;
    align-items: center;
  }

  .req-page-title {
    font-size: 1.8rem;
    line-height: 1.14;
    text-align: center;
  }

  .req-page-intro {
    font-size: 0.97rem;
    text-align: center;
  }

  .req-page-pills {
    gap: 0.55rem;
    justify-content: center;
  }

  .req-page-pill {
    width: 100%;
    justify-content: center;
  }

  .req-side-cosmic {
    display: none !important;
  }

  .req-head-cosmic {
    padding: 1.3rem 1.1rem;
  }

  .req-head-cosmic h2 {
    font-size: 1.45rem;
  }

  .req-head-cosmic .sub {
    font-size: 0.95rem;
  }

  .req-body-cosmic {
    padding: 1rem 1rem 6rem;
  }

  .req-row-cosmic {
    grid-template-columns: 1fr;
  }

  .req-actions-cosmic {
    flex-direction: column;
    padding: 1rem;
  }

  .req-btn-cosmic {
    width: 100%;
  }

  .req-seo-section {
    margin-top: 2rem;
  }
}