/* ==========================================================================
   AIPAMF — INSTITUTIONAL MEMBERSHIP & ACCREDITATION STYLESHEET
   ========================================================================== */

:root {
  --bg-space: #030712;
  --bg-navy-deep: #050d1e;
  --border-gold: #d4af37;
  --gold-primary: #d4af37;
  --gold-light: #fef08a;
  --gold-dark: #996515;
  --gold-gradient: linear-gradient(120deg, #b8860b 0%, #fef08a 25%, #d4af37 50%, #fffbeb 75%, #996515 100%);
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-space);
}

.apply-body {
  font-family: var(--font-sans);
  color: #1e293b;
  background-color: #eef4fb;
  min-height: 100vh;
  line-height: 1.6;
}

.apply-ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(13, 30, 61, 0.08) 0%, transparent 50%);
}

.text-gold-gradient {
  background: var(--gold-gradient);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Nav Bar */
.registry-apex-nav {
  background: #ffffff;
  border-bottom: 2px solid #dbeafe;
  box-shadow: 0 4px 18px rgba(10, 25, 55, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.65rem 2rem;
}

.registry-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.registry-brand-anchor {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.registry-seal-img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  border: 2px solid var(--gold-primary);
  background: #ffffff;
  padding: 1px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.registry-brand-info {
  display: flex;
  flex-direction: column;
}

.brand-top-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reg-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 900;
  color: #0b1a38;
  line-height: 1;
}

.reg-badge-statutory {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
}

.gold-badge {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.reg-sub-title {
  font-size: 0.62rem;
  color: var(--gold-dark);
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 2px;
}

.registry-nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.registry-live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 4px 10px;
  border-radius: 20px;
}

.live-status-dot.emerald {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.live-status-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
}

.registry-nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.reg-action-link {
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.reg-action-link:hover { color: #0b1a38; }
.reg-link-alert { color: #dc2626 !important; }

/* Hero Section */
.apply-hero-section {
  background: radial-gradient(circle at 50% 0%, #0d224d 0%, #050d1e 75%, #030712 100%);
  padding: 4.8rem 2rem 3.8rem;
  border-bottom: 3px solid var(--gold-primary);
  text-align: center;
}

.apply-hero-shell {
  max-width: 1040px;
  margin: 0 auto;
}

.statutory-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  padding: 0.38rem 1.25rem;
  border-radius: 30px;
  margin-bottom: 1.2rem;
}

.pulse-dot {
  color: var(--gold-primary);
}

.apply-hero-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
  .apply-hero-title { font-size: 1.95rem; }
}

.apply-hero-desc {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 760px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.apply-benefits-ribbon {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.benefit-item {
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.4rem 1rem;
  border-radius: 20px;
}

/* Arena & Form */
.apply-main-arena {
  padding: 3.5rem 1.5rem 6rem;
}

.arena-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.apply-layout-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  gap: 2.5rem;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .apply-layout-grid { grid-template-columns: 1fr; }
}

.apply-console-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 2.4rem;
  box-shadow: 0 10px 30px rgba(11, 26, 56, 0.06);
}

.console-head {
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 1.2rem;
  margin-bottom: 1.8rem;
}

.console-head h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: #0b1a38;
  margin-bottom: 0.35rem;
}

.console-head p {
  font-size: 0.86rem;
  color: #64748b;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #0b1a38;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 1.6rem 0 1rem;
}

.form-section-title span {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #0b1a38;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Tier Selection Cards */
.tier-cards-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 680px) {
  .tier-cards-selector { grid-template-columns: 1fr; }
}

.tier-select-card {
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  padding: 1.1rem;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  background: #f8fafc;
}

.tier-select-card input {
  position: absolute;
  opacity: 0;
}

.tier-select-card.active {
  border-color: var(--gold-primary);
  background: #fffdf5;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.15);
}

.tier-badge {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.tier-badge.gold {
  background: #fef3c7;
  color: #92400e;
}

.tier-select-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0b1a38;
  margin-bottom: 0.35rem;
}

.tier-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b1a38;
  margin-bottom: 0.45rem;
}

.tier-price span {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.tier-select-card p {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .form-row-2col { grid-template-columns: 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-field label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.apply-input,
.apply-textarea {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #0b1a38;
  outline: none;
  transition: all 0.2s ease;
}

.apply-input:focus,
.apply-textarea:focus {
  border-color: #0b1a38;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(11, 26, 56, 0.12);
}

.apply-declaration-box {
  display: flex;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0 1.8rem;
}

.apply-declaration-box input {
  margin-top: 4px;
}

.apply-declaration-box label {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.5;
}

.btn-submit-application {
  width: 100%;
  background: linear-gradient(135deg, #0b1a38 0%, #1e3a8a 100%);
  color: #ffffff;
  border: none;
  border-radius: 7px;
  padding: 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(11, 26, 56, 0.25);
  transition: all 0.25s ease;
}

.btn-submit-application:hover {
  background: var(--gold-gradient);
  color: #040914;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.4);
}

/* Sidebar */
.apply-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.side-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 8px 24px rgba(11, 26, 56, 0.05);
}

.side-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b1a38;
  margin-bottom: 0.4rem;
}

.side-card-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 1.2rem;
}

.docs-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.docs-checklist li {
  display: flex;
  gap: 12px;
  font-size: 0.84rem;
}

.chk-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.docs-checklist strong {
  display: block;
  color: #0b1a38;
  margin-bottom: 1px;
}

.docs-checklist small {
  color: #64748b;
  font-size: 0.74rem;
  display: block;
}

.support-side-card {
  background: linear-gradient(145deg, #091733 0%, #050d1e 100%);
  border-color: rgba(212, 175, 55, 0.4);
}

.side-contact-line {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.side-contact-line span {
  font-size: 0.74rem;
  color: #94a3b8;
}

.side-contact-line strong {
  font-size: 0.84rem;
  color: #ffffff;
}

/* Confirmation Box */
.application-confirm-card {
  background: #f0fdf4;
  border: 2px solid #22c55e;
  border-radius: 12px;
  padding: 2.2rem 1.8rem;
  text-align: center;
}

.confirm-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #15803d;
  background: #dcfce7;
  padding: 3px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.docket-box {
  background: #ffffff;
  border: 1px dashed #22c55e;
  border-radius: 8px;
  padding: 1.1rem;
  margin: 1.2rem 0;
  font-family: monospace;
  font-size: 1.55rem;
  font-weight: 800;
  color: #0b1a38;
}

.apply-footer {
  background: #040915;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 2.5rem 2rem;
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
}