:root {
  --brand-green: #1a7a4a;
  --brand-amber: #e8820c;
  --neon-green: #2ecc71;
  --neon-amber: #f39c12;
  --bg-color: #050d08;
  --card-bg: rgba(10, 22, 14, 0.75);
  --text-primary: #ffffff;
  --text-secondary: #a8c4b0;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Outfit', sans-serif; }

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  padding-top: 82px;
}

/* Blobs */
.blob {
  position: absolute;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.45;
  border-radius: 50%;
  animation: float 15s infinite ease-in-out alternate;
}

.green-blob {
  background: var(--brand-green);
  width: 45vw; height: 45vw;
  top: -10vw; left: -10vw;
}

.amber-blob {
  background: var(--brand-amber);
  width: 55vw; height: 55vw;
  bottom: -15vw; right: -10vw;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  100% { transform: translateY(50px) scale(1.1) rotate(15deg); }
}

.text-neon { color: var(--neon-green); }

/* ── Flag (reproduced from main style.css so the join page has it) ── */
.flag-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 100px;
  height: 60px;
  perspective: 1000px;
  z-index: 100;
  cursor: pointer;
}

.waving-flag {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  transform-origin: left center;
  animation: waveFlag 3s ease-in-out infinite alternate;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.us-flag {
  background-image: url('https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg');
}

.mx-flag {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/f/fc/Flag_of_Mexico.svg');
}

.waving-flag:hover { opacity: 1; }

@keyframes waveFlag {
  0%   { transform: rotateY(0deg) rotateZ(0deg) translateY(0); }
  50%  { transform: rotateY(15deg) rotateZ(-2deg) translateY(-3px); }
  100% { transform: rotateY(-10deg) rotateZ(3deg) translateY(2px); }
}

/* Layout */
.main-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  width: 95%;
  z-index: 10;
  margin: 2rem auto 2rem;
}

/* Glass Card Shared */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  padding: 3.5rem 3rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(26, 122, 74, 0.15) inset;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Info Panel */
.brand-name-block {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 2rem;
}

.brand-prefix { color: #fff; text-shadow: 0 0 10px rgba(46, 204, 113, 0.6); }
.brand-latin {
  background: linear-gradient(90deg, var(--neon-green), #7dffb3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(to right, #fff, #a8c4b0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.benefits {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.benefit-item i {
  font-size: 1.5rem;
  margin-top: 5px;
  text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.benefit-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.benefit-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-top: 3rem;
  font-weight: 600;
  transition: color 0.3s;
}

.back-link:hover { color: var(--neon-green); }

/* Form Panel */
.form-header { margin-bottom: 2rem; text-align: center; }
.form-header h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.form-header p { color: var(--text-secondary); }

.join-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.input-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.input-group label i { margin-right: 5px; color: var(--neon-green); }

.input-group input, 
.input-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.2);
  background: rgba(0,0,0,0.6);
}

.btn-submit {
  background: linear-gradient(135deg, var(--neon-green), var(--brand-green));
  color: white;
  border: none;
  padding: 1.2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
  transition: all 0.3s;
}

.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(46, 204, 113, 0.4); }

.success-message {
  text-align: center;
  padding: 3rem 1rem;
}
.success-message i { font-size: 4rem; color: var(--neon-green); margin-bottom: 1rem; }
.success-message h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.success-message p { color: var(--text-secondary); line-height: 1.5; }

/* ── Form Section Labels ── */
.form-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--neon-green);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.4rem 0 0.6rem;
  border-bottom: 1px solid rgba(46, 204, 113, 0.2);
  margin-top: 0.4rem;
}

.form-section-label i { font-size: 0.82rem; }

/* ── Yes / No Radio Pills ── */
.radio-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.45rem;
  flex-wrap: wrap;
}

.radio-option { display: none; }

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.3rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s;
  background: rgba(0, 0, 0, 0.3);
  user-select: none;
}

.radio-label:hover {
  border-color: rgba(46, 204, 113, 0.4);
  color: #fff;
}

.radio-option:checked + .radio-label {
  background: rgba(46, 204, 113, 0.18);
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 14px rgba(46, 204, 113, 0.2);
}

/* ── Conditional Link Input ── */
.conditional-input {
  display: none;
  margin-top: 0.75rem;
}

.conditional-input.visible { display: block; }

/* ── Info Note ("We'll create it for you") ── */
.info-note {
  display: none;
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: rgba(46, 204, 113, 0.07);
  border: 1px solid rgba(46, 204, 113, 0.25);
  color: var(--neon-green);
  font-size: 0.85rem;
  align-items: center;
  gap: 8px;
}

.info-note.visible { display: flex; }

/* Responsive */
@media(max-width: 900px) {
  .main-container { grid-template-columns: 1fr; }
  .glass-card { padding: 2.5rem 2rem; }
  .hero-title { font-size: 2.2rem; }
}
