/* ====================================================
   CONGREHOF 2026 — Lead Capture Form
   Premium Dark Theme · Purple Accents
   ==================================================== */

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:            #0a0a14;
  --bg-card:       #111120;
  --bg-input:      #141425;
  --border:        #1f1f38;
  --border-hover:  #2e2e50;
  --border-focus:  #8B5CF6;
  --text:          #ffffff;
  --text-sec:      #9ca3af;
  --text-muted:    #6b7280;
  --purple:        #8B5CF6;
  --purple-light:  #A78BFA;
  --purple-dark:   #7C3AED;
  --green:         #10B981;
  --red:           #EF4444;
  --radius:        10px;
  --radius-lg:     14px;
  --ease:          cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Background Effects ── */
.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,.35) 0%, transparent 70%);
  top: -260px; left: 50%;
  transform: translateX(-50%);
  animation: pulse-glow 6s ease-in-out infinite alternate;
}

.glow-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(99,102,241,.3) 0%, transparent 70%);
  top: -160px; left: 12%;
  animation: pulse-glow 8s ease-in-out infinite alternate-reverse;
}

.glow-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(109,40,217,.28) 0%, transparent 70%);
  top: -160px; right: 12%;
  animation: pulse-glow 7s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0%   { opacity: .6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1;  transform: translateX(-50%) scale(1.15); }
}

.glow-2, .glow-3 {
  animation-name: pulse-side;
}

@keyframes pulse-side {
  0%   { opacity: .5; transform: scale(1); }
  100% { opacity: .85; transform: scale(1.1); }
}

/* Particles Canvas */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Container ── */
.container {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 20px 40px;
}

/* ── Logo Section ── */
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.logo-icon {
  filter: drop-shadow(0 0 18px rgba(139,92,246,.4));
  animation: logo-float 4s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.logo-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 5px;
  color: var(--text);
  text-shadow: 0 0 24px rgba(139,92,246,.3);
}

.logo-year {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #d1fae5;
  margin: 0 auto 28px;
  display: flex;
  justify-content: center;
  width: fit-content;
}

.badge-star { font-size: 13px; }

/* ── Heading ── */
.main-heading {
  text-align: center;
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.main-heading em {
  font-style: italic;
  background: linear-gradient(135deg, var(--purple), #C084FC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Subtitle ── */
.subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.65;
  margin-bottom: 32px;
}

/* ── Price Card ── */
.price-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 2px dashed rgba(139,92,246,.35);
  border-radius: var(--radius-lg);
  background: rgba(139,92,246,.04);
  margin-bottom: 36px;
  transition: border-color .3s var(--ease);
}

.price-card:hover {
  border-color: rgba(139,92,246,.55);
}

.price-icon-wrap {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139,92,246,.12);
  border-radius: 12px;
  color: var(--purple);
}

.price-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-sec);
  margin-bottom: 4px;
}

.price-value {
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
}

.price-value strong {
  font-size: 28px;
  font-weight: 800;
}

/* ── Form ── */
form { display: flex; flex-direction: column; }

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.req { color: var(--purple-light); }

/* ── Select ── */
.select-wrap {
  position: relative;
}

.select-wrap select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 44px 14px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}

.select-wrap select:hover {
  border-color: var(--border-hover);
  background: rgba(20,20,37,.9);
}

.select-wrap select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(139,92,246,.12);
}

.select-wrap select:valid:not([value=""]) {
  color: var(--text);
}

/* Fix: colored text when an option is selected */
.select-wrap select option {
  background: #1a1a2e;
  color: var(--text);
}

.select-wrap .chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color .2s;
}

.select-wrap select:focus ~ .chevron {
  color: var(--purple);
}

/* Error state */
.form-group.error .select-wrap select,
.form-group.error .input-wrap input {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

/* ── Section Divider ── */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 20px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

/* ── Inputs ── */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: color .2s;
}

.input-wrap input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px 14px 44px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.input-wrap input::placeholder {
  color: var(--text-muted);
}

.input-wrap input:hover {
  border-color: var(--border-hover);
}

.input-wrap input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(139,92,246,.12);
}

.input-wrap input:focus ~ .input-icon,
.input-wrap:focus-within .input-icon {
  color: var(--purple);
}

/* ── CTA Button ── */
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  margin-top: 28px;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple), var(--purple-light));
  background-size: 200% 200%;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease);
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139,92,246,.35);
}

.cta-button:hover::before { opacity: 1; }

.cta-button:active {
  transform: translateY(0) scale(.98);
}

.cta-button:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.cta-button .spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

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

/* ── Security Note ── */
.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ── Overlays ── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,20,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px;
  opacity: 1;
  transition: opacity .4s var(--ease);
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 28px;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: overlay-enter .5s var(--ease);
}

@keyframes overlay-enter {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.overlay-emoji {
  font-size: 48px;
  margin-bottom: 16px;
  animation: logo-float 3s ease-in-out infinite;
}

.overlay-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.overlay-sub {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
  margin-bottom: 24px;
}

.overlay-card .form-label {
  margin-bottom: 12px;
}

.overlay-card textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  margin-bottom: 4px;
}

.overlay-card textarea::placeholder { color: var(--text-muted); }

.overlay-card textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(139,92,246,.12);
}

.overlay-card .cta-button { margin-top: 16px; }

/* Success */
.success-card { gap: 4px; }

.success-check {
  width: 80px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16,185,129,.08);
  border-radius: 50%;
  margin-bottom: 16px;
  animation: success-pulse 2s ease-in-out infinite;
}

@keyframes success-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.2); }
  50%      { box-shadow: 0 0 0 16px rgba(16,185,129,0); }
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #d1fae5;
  margin-top: 20px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .container { padding: 36px 16px 32px; }
  .main-heading { font-size: 30px; }
  .price-value strong { font-size: 24px; }
  .cta-button { padding: 16px 18px; font-size: 13px; letter-spacing: .5px; }
  .overlay-card { padding: 32px 20px; }
}

@media (min-width: 600px) {
  .container { padding: 56px 32px 48px; }
}

/* ── Shake animation for validation ── */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

.shake { animation: shake .4s ease; }
