/* === SIGNUP FORM STYLES === */
/* Premium dark UI matching athlete.css and brand.css */

/* Page Visibility - Ensure content is visible on SIGNUP PAGES ONLY */
/* Override components.css default opacity: 0 for signup pages */
/* This only applies when signup.css is loaded (on signup pages) */
.page-wrapper {
  opacity: 1 !important; /* Override components.css opacity: 0 */
  transition: opacity 0.8s ease;
}

.page-wrapper.visible {
  opacity: 1 !important;
}

/* Ensure form sections are always visible - these are unique to signup pages */
.signup-form-section,
.signup-hero,
.signup-form {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

:root {
  --signup-bg: #0a0a0a;
  --signup-text: rgba(255, 255, 255, 0.9);
  --signup-text-dim: rgba(255, 255, 255, 0.8);
  --signup-brand: #ff8d40;
  --signup-brand-light: #ffb366;
  --signup-input-bg: rgba(255, 255, 255, 0.03);
  --signup-input-bg-focus: rgba(255, 255, 255, 0.05);
  --signup-border: rgba(255, 255, 255, 0.1);
  --signup-border-focus: rgba(255, 141, 64, 0.5);
  --signup-success: #7ED7B2; 
  --signup-success-accent: rgba(126, 215, 178, 0.15); 
  --signup-error: #ef4444;
  --bg-panel: rgba(18, 22, 20, 0.96);
  
  /* Header offset for sticky positioning */
  --header-offset: 92px; /* desktop */
  --safe-top: env(safe-area-inset-top, 0px);
}

@media (max-width: 767px) {
  :root {
    --header-offset: 78px; /* mobile */
  }
}

/* === SIGNUP HERO SECTION === */
.signup-hero {
  min-height: auto; /* Changed from 40vh */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 24px 32px; /* Reduced bottom padding from 60px to 32px */
  text-align: center;
  position: relative;
}

.signup-headline {
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 900;
  font-style: italic;
  color: var(--signup-brand-light);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  animation: fadeInUp 0.8s ease-out;
}

.signup-subheadline {
  font-size: 18px;
  color: var(--signup-text-dim);
  max-width: 600px;
  line-height: 1.5;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  margin: 0 auto;
}

/* === SIGNUP FORM SECTION === */
.signup-form-section {
  max-width: 700px;
  margin: 0 auto 80px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  margin-top: 0; /* Changed from 24px - removes extra breathing room */
}
/* === SIDE PROGRESS TRACKER === */
.side-progress-tracker {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 8px;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.progress-pill {
  position: relative;
  width: 12px;
  height: 12px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pill-indicator {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.progress-pill:hover .pill-indicator {
  background: rgba(255, 141, 64, 0.5);
  transform: scale(1.3);
}

.progress-pill.active .pill-indicator {
  background: var(--signup-brand);
  box-shadow: 0 0 12px rgba(255, 141, 64, 0.6);
  transform: scale(1.4);
}

.progress-pill.completed .pill-indicator {
  background: rgba(16, 185, 129, 0.8);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* Hide on mobile, show floating bottom progress instead */
@media (max-width: 767px) {
  .side-progress-tracker {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 20px;
    transform: translateX(-50%);
    flex-direction: row;
    padding: 8px 16px;
  }
}

/* Hide on very small screens */
@media (max-width: 374px) {
  .side-progress-tracker {
    display: none;
  }
}
.brand-form-section {
  max-width: 800px;
}

.signup-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeInScale 0.6s ease-out;
}

/* Mobile: More padding inside form container */
@media (max-width: 767px) {
  .signup-form {
    padding: 28px 24px; /* Increased padding for mobile */
  }
}

/* === FORM SECTIONS === */
.form-section {
  margin-bottom: 48px;
  padding: 0; /* Padding handled by signup-form container */
}

.form-section:last-of-type {
  margin-bottom: 0;
}

/* Mobile: Tighter spacing, more padding inside sections */
@media (max-width: 767px) {
  .form-section {
    margin-bottom: 32px; /* Reduced vertical margin */
  }
  
  .form-group {
    margin-bottom: 16px; /* Tighter spacing between form groups */
  }
  
  .signup-form {
    padding: 28px 24px; /* More padding inside form container */
  }
}

.form-section-heading {
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  color: var(--signup-brand-light);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: all 0.4s ease;
  position: relative;
  padding-left: 0;
}

.form-section-heading.highlight {
  color: var(--signup-brand);
  padding-left: 12px;
  transform: scale(1.02);
  text-shadow: 0 0 20px rgba(255, 141, 64, 0.3);
}

.form-section-heading.highlight::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 80%;
  background: var(--signup-brand);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255, 141, 64, 0.6);
  animation: highlightPulse 0.6s ease-out;
}

@keyframes highlightPulse {
  0% {
    opacity: 0;
    transform: translateY(-50%) scaleY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scaleY(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) scaleY(1);
  }
}

.form-section-subtext {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
  line-height: 1.4;
  font-style: italic;
}

.form-section-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 141, 64, 0.2) 20%,
    rgba(255, 141, 64, 0.3) 50%,
    rgba(255, 141, 64, 0.2) 80%,
    transparent 100%
  );
  margin: 40px 0;
  opacity: 0.6;
}

/* === FORM GRID (Responsive 2-Column Layout) === */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 0; /* Margin handled by form-group */
}

/* Desktop: 2-column layout */
@media (min-width: 900px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* === SOCIAL GRID (2x2 Layout) === */
.social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 0;
}

/* Desktop: 2-column layout for socials */
@media (min-width: 900px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* === SOCIAL PROFILES MODULE === */
.social-profiles-module {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
}

/* Mobile: More padding inside social module */
@media (max-width: 767px) {
  .social-profiles-module {
    padding: 20px 18px; /* Increased padding for mobile */
  }
}

.social-module-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  font-style: italic;
  text-align: center;
}

.social-profiles-extra {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: slideDown 0.3s ease-out;
}

.social-profiles-extra[style*="display: none"] {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.social-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  margin-top: 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 141, 64, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

.social-toggle-btn:active {
  transform: scale(0.98);
}

.social-toggle-btn.expanded .toggle-icon {
  transform: rotate(180deg);
}

.toggle-icon {
  transition: transform 0.3s ease;
  color: var(--signup-brand);
}

/* Mobile adjustments for social module */
@media (max-width: 767px) {
  .social-profiles-module {
    padding: 20px 16px;
  }
  
  .social-module-note {
    font-size: 12px;
    margin-bottom: 16px;
  }
  
  .social-toggle-btn {
    font-size: 13px;
    padding: 10px 14px;
  }
}

/* === FORM GROUPS === */
.form-group {
  margin-bottom: 20px; /* Reduced for tighter mobile spacing */
}

/* Form groups inside grids don't need bottom margin (handled by grid gap) */
.form-grid .form-group,
.social-grid .form-group {
  margin-bottom: 0;
}

.form-group-full {
  grid-column: 1 / -1;
  margin-bottom: 24px; /* Restore margin for full-width items */
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--signup-text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.required {
  color: var(--signup-brand);
  margin-left: 2px;
}

/* === FORM INPUTS === */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--signup-input-bg);
  border: 1px solid var(--signup-border);
  border-radius: 10px;
  color: var(--signup-text);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--signup-brand);
  background: var(--signup-input-bg-focus);
  box-shadow: 0 0 0 3px rgba(255, 141, 64, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--signup-error);
  background: rgba(239, 68, 68, 0.05);
}

/* === VALIDATION STATES === */
.form-group input.valid,
.form-group select.valid {
  border-color: rgba(16, 185, 129, 0.5);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--signup-error);
}

.validation-icon {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  pointer-events: none;
  transition: all 0.2s ease;
}

.valid-icon {
  color: #10b981;
  font-size: 14px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
}

.field-validation-message {
  display: block;
  font-size: 12px;
  margin-top: 6px;
  min-height: 18px;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.field-validation-message.error {
  color: var(--signup-error);
}

.field-validation-message.valid {
  color: #10b981;
}

.field-validation-message:empty {
  display: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* === NOTES STARTER CHIPS (Brand Signup Only) === */
.notes-starter-chips {
  margin-top: 12px;
}

.notes-starter-label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-weight: 600;
}

.notes-starter-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.notes-starter-chip {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: inherit;
}

.notes-starter-chip:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.8);
}

.notes-starter-chip:active {
  opacity: 0.7;
  transform: scale(0.98);
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .notes-starter-chips {
    margin-top: 10px;
  }

  .notes-starter-label {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .notes-starter-chip {
    font-size: 12px;
    padding: 7px 12px;
    min-height: 40px;
  }

  .notes-starter-chips-container {
    gap: 6px;
  }
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff8d40' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Form Helper Text */
.form-helper-text {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
  line-height: 1.4;
  font-style: italic;
}

/* === CHECKBOX GROUPS === */
.checkbox-group {
  margin: 24px 0;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.checkbox-label:hover {
  opacity: 0.9;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--signup-brand);
  background: var(--signup-input-bg);
  border: 1px solid var(--signup-border);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--signup-brand);
  border-color: var(--signup-brand);
}

.checkbox-label input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 141, 64, 0.2);
}

.checkbox-label span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--signup-text-dim);
  flex: 1;
}

/* === QUICK CHECKS CARD === */
.quick-checks-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 32px 0;
}

.quick-checks-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--signup-text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-style: italic;
}

.quick-checks-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px; /* Minimum touch target */
  border: 1px solid transparent;
}

.quick-checks-row:last-child {
  margin-bottom: 0;
}

.quick-checks-row:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

.quick-checks-row:active {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(0.98);
}

.quick-checks-row-required {
  background: rgba(255, 141, 64, 0.05);
  border: 1px solid rgba(255, 141, 64, 0.2);
  margin-top: 12px;
  padding: 16px;
}

.quick-checks-row-required:hover {
  background: rgba(255, 141, 64, 0.08);
  border-color: rgba(255, 141, 64, 0.3);
}

.quick-checks-row.checked {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.quick-checks-row-required.checked {
  background: rgba(255, 141, 64, 0.1);
  border-color: rgba(255, 141, 64, 0.4);
}

.quick-checks-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  cursor: pointer;
  accent-color: var(--signup-brand);
  background: var(--signup-input-bg);
  border: 1px solid var(--signup-border);
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin: 0;
}

.quick-checks-row input[type="checkbox"]:checked {
  background: var(--signup-brand);
  border-color: var(--signup-brand);
}

.quick-checks-row input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 141, 64, 0.2);
}

.quick-checks-label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--signup-text-dim);
  cursor: pointer;
  flex: 1;
  margin: 0;
  user-select: none;
}

.quick-checks-row-required .quick-checks-label {
  color: var(--signup-text);
  font-weight: 500;
}

/* Mobile adjustments for quick checks */
@media (max-width: 767px) {
  .quick-checks-card {
    padding: 16px 20px;
    margin: 24px 0;
  }

  .quick-checks-row {
    padding: 12px 14px;
    min-height: 44px; /* Minimum touch target on mobile */
  }

  .quick-checks-row-required {
    padding: 14px;
  }

  .quick-checks-label {
    font-size: 13px;
  }
}

/* === WHAT HAPPENS NEXT PANEL === */
.what-happens-next-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 32px 0 24px;
}

/* Athlete version: Slightly dimmer to read as guidance, not a task */
.athlete-what-happens-next {
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.06);
  opacity: 0.85;
}

.what-happens-next-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--signup-text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-style: italic;
}

.what-happens-next-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.what-happens-next-list li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.what-happens-next-list li:last-child {
  margin-bottom: 0;
}

.what-happens-next-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--signup-brand);
  font-weight: 700;
  font-size: 16px;
}
/* Hide Turnstile when success message is visible */
#success-message:not([style*="display: none"]) ~ .cf-turnstile,
.form-message.success[style*="display: block"] ~ .cf-turnstile {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Success Modal Overlay - Fullscreen */
.success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Success Modal Content */
.success-modal-content {
  max-width: 600px;
  width: 100%;
  text-align: center;
  animation: slideUpFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

/* Success Icon with Animation */
.success-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #10b981;
  stroke-miterlimit: 10;
  box-shadow: inset 0 0 0 #10b981;
  animation: fillGreen 0.4s ease-in-out 0.4s forwards,
             scale 0.3s ease-in-out 0.9s both;
}

.success-checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #10b981;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: #10b981;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fillGreen {
  100% {
    box-shadow: inset 0 0 0 40px #10b981;
  }
}

/* Modal Heading */
.success-modal-heading {
  font-size: 40px;
  font-weight: 900;
  font-style: italic;
  color: #ff8d40;
  margin: 0 0 20px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(255, 141, 64, 0.3);
}

/* Modal Text */
.success-modal-text {
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 16px 0;
  font-weight: 500;
}

.success-modal-subtext {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 40px 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Modal CTA Button */
.success-modal-cta {
  display: inline-block;
  padding: 18px 48px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #ff8d40 0%, #e66736 100%);
  border: none;
  border-radius: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 141, 64, 0.3);
}

.success-modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 141, 64, 0.5);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Mobile Adjustments */
@media (max-width: 767px) {
  .success-modal-content {
    padding: 0 20px;
  }
  
  .success-modal-heading {
    font-size: 32px;
  }
  
  .success-modal-text {
    font-size: 18px;
  }
  
  .success-modal-subtext {
    font-size: 15px;
  }
  
  .success-modal-cta {
    width: 100%;
    max-width: 320px;
    padding: 16px 36px;
    font-size: 17px;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .what-happens-next-panel {
    padding: 16px 20px;
    margin: 24px 0 20px;
  }

  .what-happens-next-title {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .what-happens-next-list li {
    font-size: 13px;
    padding-left: 18px;
  }
}

/* SUBMIT BUTTON Turnstile widget styling - FORCE VISIBILITY */

/* Custom wrapper for branded Turnstile integration */
.turnstile-wrapper {
  margin: 32px 0 24px;
  padding: 24px;
  background: rgba(255, 141, 64, 0.03);
  border: 1px solid rgba(255, 141, 64, 0.15);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.turnstile-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  text-align: center;
  margin: 0 0 4px 0;
  letter-spacing: 0.01em;
}

.cf-turnstile,
#turnstile-widget-athlete,
#turnstile-widget-brand {
  margin: 0; /* Removed margin since wrapper handles it */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 65px;
  position: relative;
  z-index: 1;
}

/* Ensure iframe inside widget is visible */
.cf-turnstile iframe,
#turnstile-widget-athlete iframe,
#turnstile-widget-brand iframe {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Turnstile error message - now inside wrapper */
.turnstile-wrapper .turnstile-error {
  color: var(--signup-error);
  font-size: 13px;
  margin: 4px 0 0 0;
  text-align: center;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .turnstile-wrapper {
    margin: 28px 0 20px;
    padding: 20px 16px;
  }
  
  .turnstile-label {
    font-size: 12px;
  }
}

/* Ensure iframe inside widget is visible */
.cf-turnstile iframe,
#turnstile-widget-athlete iframe,
#turnstile-widget-brand iframe {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Turnstile error message */
.turnstile-error {
  color: var(--signup-error);
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 0;
  text-align: center;
}

.submit-btn {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #ff8d40 0%, #e66736 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 32px;
  min-height: 56px;
  height: 56px; /* Fixed height to prevent layout shift */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(255, 141, 64, 0.2);
}

.submit-btn .btn-text,
.submit-btn .btn-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 141, 64, 0.4);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(255, 141, 64, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-text,
.btn-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

/* === FORM FOOTER ACTIONS === */
.form-footer-actions {
  margin-top: 16px;
  text-align: center;
}

.clear-draft-link {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.clear-draft-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* === DRAFT TOAST NOTIFICATION === */
.draft-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  animation: slideUpToast 0.3s ease-out;
}

@keyframes slideUpToast {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.draft-toast-content {
  background: rgba(26, 26, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 320px;
  max-width: 90vw;
}

.draft-toast-message {
  font-size: 14px;
  color: var(--signup-text);
  flex: 1;
}

.draft-toast-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.draft-toast-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.draft-toast-restore {
  background: var(--signup-brand);
  color: #fff;
}

.draft-toast-restore:hover {
  background: #ffb366;
  transform: translateY(-1px);
}

.draft-toast-dismiss {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.draft-toast-dismiss:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--signup-text);
}

/* Mobile adjustments for toast */
@media (max-width: 767px) {
  .draft-toast {
    bottom: 16px;
    left: 16px;
    right: 16px;
    transform: none;
  }

  .draft-toast-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-width: auto;
    padding: 14px 16px;
  }

  .draft-toast-actions {
    width: 100%;
  }

  .draft-toast-btn {
    flex: 1;
  }
}

/* === FORM COLLAPSE ANIMATION === */
.signup-form.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s ease-out;
}

.signup-form-section.collapsed {
  margin-bottom: 0;
}

/* === FORM MESSAGES === */
.form-message {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 15px;
  text-align: center;
  transition: all 0.3s ease;
  line-height: 1.5;
  animation: slideIn 0.3s ease-out;
}

.form-message.success {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 48px 56px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(18, 22, 20, 0.95) 0%,
    rgba(12, 15, 14, 0.98) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
  animation: fadeUp 0.5s ease-out both;
}

.success-message-content {
  max-width: 500px;
  margin: 0 auto;
}

.success-heading {
  font-size: 28px;
  font-weight: 500; /* Luxury uses restraint, not boldness */
  font-style: normal; /* Remove italic for sophistication */
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.success-text {
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 20px 0;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.success-subtext {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 40px 0;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  font-style: normal; /* Remove italic for cleaner look */
}

.success-cta {
  margin-top: 40px;
  display: inline-block;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.06); /* Subtle, not loud */
  color: #fff;
  text-decoration: none;
  border-radius: 999px; /* Pill shape */
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 500; /* Not bold */
  font-size: 14px;
  font-style: normal;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  cursor: pointer;
}

.success-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: none; /* No jump */
  box-shadow: none; /* No dramatic shadow */
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--signup-error);
}
/* === LUXURY SUCCESS ANIMATION === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile adjustments for luxury success */
@media (max-width: 767px) {
  .form-message.success {
    padding: 36px 28px 44px;
    border-radius: 16px;
  }
  
  .success-heading {
    font-size: 24px;
  }
  
  .success-text,
  .success-subtext {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .success-cta {
    padding: 12px 24px;
    font-size: 13px;
  }
}

/* Mobile adjustments for success message */
@media (max-width: 767px) {
  .form-message.success {
    padding: 24px 20px;
  }
  
  .success-heading {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .success-text {
    font-size: 14px;
  }
  
  .success-subtext {
    font-size: 13px;
    margin-bottom: 20px;
  }
}
/* Suppress Turnstile visibility after success */
.form-message.success ~ .cf-turnstile {
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* === BRAND FORM === */
/* .brand-form inherits all base .signup-form card styles (background, border, border-radius, etc.) */
/* Uses .form-grid for responsive 2-column layout (same as athlete form) */
/* No additional grid needed - .form-grid handles the layout */

.brand-form .form-group-full {
  margin-bottom: 20px; /* Spacing for full-width items */
}

.brand-form .checkbox-group {
  margin: 24px 0;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 767px) {
  .signup-hero {
    padding: 100px 20px 40px;
    min-height: 30vh;
  }

  .signup-headline {
    font-size: clamp(32px, 8vw, 42px);
    margin-bottom: 12px;
  }

  .signup-subheadline {
    font-size: 16px;
  }

  .signup-form-section {
    max-width: 100%;
    padding: 0 20px;
    margin-bottom: 60px;
  }

  .signup-form {
    padding: 32px 24px;
    border-radius: 16px;
  }

  .form-group {
    margin-bottom: 20px;
  }
  
  /* Form groups inside rows don't need bottom margin on mobile either */
  .form-grid .form-group,
  .social-grid .form-group {
    margin-bottom: 0;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevent iOS zoom on focus */
    padding: 16px;
    min-height: 44px; /* Minimum touch target */
  }

.form-group textarea {
  min-height: 100px;
  resize: vertical; /* Allow manual resize */
  overflow-y: hidden; /* Hide scrollbar during auto-grow */
  transition: height 0.1s ease;
}

/* === TEXTAREA ENHANCEMENTS === */
.textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 12px;
  flex-wrap: wrap;
}

.textarea-example-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.example-chip {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.example-chip:hover {
  background: rgba(255, 141, 64, 0.1);
  border-color: rgba(255, 141, 64, 0.3);
  color: var(--signup-brand);
  transform: translateY(-1px);
}

.example-chip:active {
  transform: translateY(0);
}

.textarea-counter-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.textarea-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.textarea-counter {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Mobile adjustments for textarea enhancements */
@media (max-width: 767px) {
  .textarea-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .textarea-counter-wrapper {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .textarea-example-chips {
    width: 100%;
  }

  .example-chip {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* === TAG INPUT (Interests) - Scoped to .signup-form for isolation === */
.signup-form .tag-input-container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline; /* Align chips with input baseline */
  gap: 6px 8px; /* row-gap: 6px, column-gap: 8px */
  padding: 10px 14px; /* Tighter padding for cleaner look */
  background: var(--signup-input-bg);
  border: 1px solid var(--signup-border);
  border-radius: 10px;
  min-height: 48px;
  transition: all 0.3s ease;
  cursor: text;
}

.signup-form .tag-input-container:focus-within {
  border-color: var(--signup-border-focus);
  background: var(--signup-input-bg-focus);
  border-color: var(--signup-brand);
}

.signup-form .tag-input-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0; /* Remove any default margins */
  padding: 0; /* Remove any default padding */
}

.signup-form .tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 11px; /* Consistent padding for baseline alignment */
  background: rgba(255, 141, 64, 0.15);
  border: 1px solid rgba(255, 141, 64, 0.3);
  border-radius: 16px;
  color: var(--signup-brand-light);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4; /* Match input line-height for baseline alignment */
  animation: chipFadeIn 0.2s ease-out;
  vertical-align: baseline; /* Ensure baseline alignment */
}

@keyframes chipFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.signup-form .tag-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  min-width: 16px; /* Prevent shrinking */
  min-height: 16px; /* Prevent shrinking */
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1;
  transition: all 0.2s ease;
  flex-shrink: 0;
  vertical-align: middle; /* Center within chip */
}

.signup-form .tag-chip-remove:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--signup-text);
  transform: scale(1.1);
}

.signup-form .tag-input-field {
  flex: 1;
  min-width: 120px;
  border: none;
  background: transparent;
  color: var(--signup-text);
  font-size: 15px;
  line-height: 1.4; /* Match chip line-height for baseline alignment */
  padding: 0;
  margin: 0;
  outline: none;
  vertical-align: baseline; /* Align with chips */
}

.signup-form .tag-input-field::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Mobile adjustments for tag input */
@media (max-width: 767px) {
  .signup-form .tag-input-container {
    padding: 8px 12px; /* Tighter padding on mobile */
    min-height: 44px;
    gap: 5px 6px; /* Tighter gaps on mobile */
  }

  .signup-form .tag-chip {
    font-size: 12px;
    padding: 4px 9px; /* Slightly smaller on mobile */
    line-height: 1.3;
  }

  .signup-form .tag-input-field {
    font-size: 16px; /* Prevent iOS zoom */
    min-width: 100px;
    line-height: 1.3; /* Match mobile chip line-height */
  }
  
  .signup-form .tag-chip-remove {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    font-size: 11px;
  }
}

  .submit-btn {
    padding: 16px 24px;
    font-size: 16px;
    min-height: 52px;
    margin-top: 28px;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .checkbox-label {
    margin-bottom: 12px;
  }

  .checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
  }

  /* Brand form: tighter spacing on mobile */
  .brand-form .form-grid {
    gap: 16px; /* Tighter spacing on mobile */
  }
  
  .brand-form .form-group-full {
    margin-bottom: 16px; /* Tighter spacing for full-width items */
  }
  
  .brand-form .checkbox-group {
    margin: 20px 0; /* Tighter spacing on mobile */
  }

  .form-message {
    padding: 14px 16px;
    font-size: 14px;
  }
  
  /* Form sections - tighter spacing on mobile */
  .form-section {
    margin-bottom: 36px;
  }
  
  .form-section-heading {
    font-size: 20px;
    margin-bottom: 6px;
  }
  
  .form-section-subtext {
    font-size: 13px;
    margin-bottom: 24px;
  }
  
  .form-section-divider {
    margin: 32px 0;
  }
}

/* === EXTRA SMALL SCREENS === */
@media (max-width: 374px) {
  .signup-hero {
    padding: 80px 16px 32px;
  }

  .signup-form {
    padding: 24px 20px;
  }

  .signup-headline {
    font-size: 28px;
  }

  .signup-subheadline {
    font-size: 15px;
  }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  .signup-headline,
  .signup-subheadline,
  .signup-form,
  .form-message {
    animation: none;
  }

  .submit-btn,
  .form-group input,
  .form-group select,
  .form-group textarea {
    transition: none;
  }
}

/* === FOCUS STATES === */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible,
.submit-btn:focus-visible,
.checkbox-label input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--signup-brand);
  outline-offset: 2px;
}

/* === TAG INPUT HARD-ISOLATION (High Specificity Overrides) === */
/* Scoped to .signup-form to avoid affecting global button styles */

/* Lock chip container to horizontal wrap */
.signup-form .tag-input-container .tag-input-chips {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 100%; /* Prevent overflow */
  max-width: 100%; /* Prevent overflow */
}

/* Force chip pill styling */
.signup-form .tag-input-container .tag-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 11px !important; /* Consistent padding for baseline alignment */
  background: rgba(255, 141, 64, 0.15);
  border: 1px solid rgba(255, 141, 64, 0.3);
  border-radius: 16px;
  color: var(--signup-brand-light);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4 !important; /* Match input line-height */
  white-space: nowrap;
  animation: chipFadeIn 0.2s ease-out;
  vertical-align: baseline !important; /* Ensure baseline alignment */
  margin: 0; /* Remove any margins */
  box-sizing: border-box; /* Prevent overflow */
}

/* Reset remove button to avoid global styling */
.signup-form .tag-input-container .tag-chip-remove {
  all: unset;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  min-width: 16px !important; /* Prevent layout shift */
  min-height: 16px !important; /* Prevent layout shift */
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-family: inherit;
  vertical-align: middle; /* Center within chip */
  box-sizing: border-box; /* Prevent overflow */
}

.signup-form .tag-input-container .tag-chip-remove:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--signup-text);
  transform: scale(1.1);
}
