/* ====== request-access.css ====== */
/* Scoped under .ra- prefix — zero global pollution */

:root {
  --ra-bg: #080f1e;
  --ra-card-bg: #0d1a2e;
  --ra-input-bg: #0a1628;
  --ra-primary: #00cacc;
  --ra-primary-glow: rgba(0, 202, 204, 0.12);
  --ra-primary-hover: #00b5b7;
  --ra-text: #e2f0f8;
  --ra-text-muted: #6a8fa8;
  --ra-border: rgba(0, 202, 204, 0.18);
  --ra-border-hover: rgba(0, 202, 204, 0.40);
  --ra-success: #22c55e;
  --ra-error: #f87171;
  --ra-radius: 16px;
  --ra-radius-sm: 8px;
}

/* ---- Reset / Base ---- */
.ra-section *,
.ra-section *::before,
.ra-section *::after {
  box-sizing: border-box;
}

.ra-section {
  background: var(--ra-bg);
  color: var(--ra-text);
  padding: 80px 0;
  font-family: inherit;
  line-height: 1.6;
}

.ra-section a {
  color: var(--ra-primary);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.ra-section p {
  color: var(--ra-text);
  font-size: 16px;
  line-height: 1.6;
}

.ra-section h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ra-text);
}

.ra-section h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ra-primary);
}

.ra-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.ra-header {
  text-align: center;
  margin-bottom: 56px;
}

.ra-eyebrow {
  position: relative;
  display: inline-block;
  color: var(--main-color);
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0px;
  border-radius: 3px;
  text-transform: capitalize;
}

.ra-eyebrow::before {
  position: absolute;
  content: '';
  left: 0px;
  top: 0px;
  right: 0px;
  bottom: 0px;
  opacity: 0.10;
  border-radius: 5px;
  background: var(--main-color);
  background: linear-gradient(to bottom, var(--main-color) 0%, var(--color-five) 100%);
}

.ra-heading {
  font-size: 36px;
  font-weight: 700;
  color: var(--ra-text);
  margin: 15px 0 12px 0;
  line-height: 1.2;
}

.ra-subtitle {
  font-size: 16px;
  color: var(--ra-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- Grid ---- */
.ra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ---- Left Column ---- */
.ra-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ra-block-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ra-primary);
  margin: 0 0 20px 0;
}

/* ---- List ---- */
.ra-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ra-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--ra-text);
  list-style: none;
}

.ra-list-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--ra-primary);
}

/* ---- Steps ---- */
.ra-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: ra-step;
}

.ra-step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--ra-text);
  list-style: none;
}

.ra-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 202, 204, 0.15);
  color: var(--ra-primary);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Right Column / Card ---- */
.ra-card {
  position: relative;
  background: var(--ra-card-bg);
  border: 1px solid var(--ra-border);
  border-radius: var(--ra-radius);
  padding: 40px;
}

/* ---- Honeypot (anti-bot, hidden) ---- */
.ra-honeypot {
  display: none;
}

/* ---- Form ---- */
.ra-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.ra-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ra-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ra-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(14, 251, 255, 0.686);
  margin: 0;
}

.ra-optional {
  font-weight: 400;
  color: var(--ra-text-muted);
  font-size: 12px;
}

.ra-input {
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 202, 204, 0.1);
  background: rgba(0, 202, 204, 0.03);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  color: #e2eaf6;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  min-height: 0;
  line-height: 1.5;
}

.ra-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.ra-input:focus {
  border-color: rgba(0, 202, 204, 0.55);
  background: rgba(0, 202, 204, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 202, 204, 0.1), 0 4px 16px rgba(0, 0, 0, 0.2);
  outline: none;
}

.ra-input.ra-input-error {
  border-color: rgba(251, 113, 133, 0.55) !important;
  background: rgba(251, 113, 133, 0.04) !important;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.08) !important;
}

.ra-input.ra-input-error:focus {
  border-color: rgba(251, 113, 133, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.12) !important;
}

.ra-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---- Checkboxes ---- */
.ra-field-checkboxes {
  gap: 10px;
}

.ra-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ra-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ra-text);
  user-select: none;
  margin: 0;
}

.ra-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ra-checkbox-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ra-border);
  border-radius: 4px;
  background: transparent;
  flex-shrink: 0;
  transition: all 0.2s;
}

.ra-checkbox input:checked + .ra-checkbox-box {
  background: var(--ra-primary);
  border-color: var(--ra-primary);
}

.ra-checkbox input:checked + .ra-checkbox-box::after {
  content: '';
  display: block;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.ra-checkbox input:focus-visible + .ra-checkbox-box {
  box-shadow: 0 0 0 3px rgba(0, 202, 204, 0.25);
}

/* ---- Error messages ---- */
.ra-error {
  font-size: 12px;
  color: var(--ra-error);
  min-height: 0;
  opacity: 0;
  transition: opacity 0.2s;
  line-height: 1.3;
}

.ra-error.ra-error-visible {
  opacity: 1;
  min-height: 16px;
}

/* ---- Submit Button ---- */
/* Primary button uses site's .template-btn.btn-style-one via global.css */

#ra-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#ra-submit .btn-wrap {
  float: none;
}

.ra-btn-text,
.text-one.ra-btn-text {
  position: relative;
  z-index: 2;
}

.ra-btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ra-spin 0.6s linear infinite;
  position: relative;
  z-index: 2;
}

@keyframes ra-spin {
  to { transform: rotate(360deg); }
}

.ra-btn-loading {
  gap: 10px;
}

.ra-btn-loading .btn-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  float: none;
}

.ra-btn-loading .btn-wrap .text-two {
  display: none;
}

.ra-btn-loading .btn-wrap .text-one {
  display: inline;
}

.ra-btn-loading .ra-btn-spinner {
  display: inline-block;
}

/* Reset link (send again) */
.ra-btn-link {
  background: none;
  color: var(--main-color, #00cacc);
  padding: 8px 0;
  font-size: 13px;
  font-weight: 400;
  border: none;
  width: auto;
  height: auto;
  display: inline;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.4;
}

.ra-btn-link:hover {
  text-decoration: underline;
  color: var(--main-color, #00cacc);
  background: none;
}

/* ---- Support line ---- */
.ra-support-line {
  font-size: 12px;
  color: var(--ra-text-muted);
  text-align: center;
  margin: 12px 0 0 0;
  line-height: 1.6;
}

/* ---- Success state ---- */
.ra-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  gap: 16px;
}

.ra-success.ra-success-visible {
  display: flex;
}

.ra-success-icon {
  color: var(--ra-primary);
}

.ra-success-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ra-text);
  margin: 0;
  line-height: 1.3;
}

.ra-success-text {
  font-size: 15px;
  color: var(--ra-text-muted);
  max-width: 400px;
  margin: 0;
  line-height: 1.6;
}

/* ---- CTA Variants Strip ---- */
.ra-cta-variants {
  margin-top: 64px;
  text-align: center;
}

.ra-variants-label {
  display: block;
  font-size: 13px;
  color: var(--ra-text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ra-variants-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ra-variants-group .template-btn.btn-style-one {
  white-space: normal;
  font-size: 13px;
  padding: 14px 22px;
}

.ra-limited {
  position: relative;
}

.ra-limited::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 7px;
  border: 2px solid var(--main-color, #00cacc);
  animation: ra-pulse-border 2s infinite;
  pointer-events: none;
}

@keyframes ra-pulse-border {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* ---- Form transition ---- */
.ra-form-wrap {
  transition: opacity 0.4s, max-height 0.4s;
  max-height: 1200px;
  opacity: 1;
  overflow: hidden;
}

.ra-form-wrap.ra-form-hidden {
  max-height: 0;
  opacity: 0;
  padding: 0;
  margin: 0;
}

/* ---- Form error banner ---- */
.ra-form-error {
  background: rgba(248,113,113,0.1);
  border: 1px solid var(--ra-error);
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  color: var(--ra-error);
  margin-bottom: 16px;
  text-align: center;
}

/* ---- prefers-reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
  .ra-input,
  .ra-btn,
  .template-btn,
  .ra-form-wrap,
  .ra-checkbox-box,
  .ra-limited::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .ra-section {
    padding: 56px 0;
  }

  .ra-heading {
    font-size: 26px;
  }

  .ra-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ra-card {
    padding: 24px;
  }

  .ra-form-row {
    grid-template-columns: 1fr;
  }

  .ra-variants-group {
    flex-direction: column;
    align-items: stretch;
  }

  .ra-variants-group .template-btn {
    justify-content: center;
  }

  #ra-submit {
    justify-content: center;
    text-align: center;
  }

  #ra-submit .btn-wrap {
    float: none;
  }
}

@media (max-width: 480px) {
  .ra-section {
    padding: 40px 0;
  }

  .ra-heading {
    font-size: 22px;
  }

  .ra-container {
    padding: 0 16px;
  }

  .ra-card {
    padding: 20px;
    border-radius: 12px;
  }
}