/* =============================================
   MYFITCART 21-DAY CHALLENGE — STYLES.CSS
   Theme: Dark Energy / Bold Fitness Aesthetic
   Fonts: Bebas Neue + DM Sans + Rajdhani
============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:   #00FF87;
  --orange:  #FF9933;   /* Saffron — Indian tricolor */
  --yellow:  #FFD700;
  --india-green: #138808; /* India flag green */
  --dark:    #0A0A0F;
  --dark2:   #111118;
  --dark3:   #1A1A24;
  --card:    rgba(255,255,255,0.04);
  --border:  rgba(0,255,135,0.15);
  --text:    #E8E8F0;
  --muted:   #8888AA;
  --radius:  16px;
  --glow:    0 0 40px rgba(0,255,135,0.25);
  --shadow:  0 24px 80px rgba(0,0,0,0.7);
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── PARTICLES CANVAS ── */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,255,135,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255,153,51,0.10) 0%, transparent 60%);
}

.hero-badge {
  background: linear-gradient(135deg, var(--orange), #e67300);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 20px;
  border-radius: 999px;
  margin-bottom: 2rem;
  animation: pulse-badge 2s ease-in-out infinite;
  text-transform: uppercase;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,153,51,0.5); }
  50%       { box-shadow: 0 0 0 10px rgba(255,153,51,0); }
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.logo-icon { font-size: 2.5rem; }

.logo-text {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.4rem;
  letter-spacing: 4px;
  color: var(--green);
  text-shadow: 0 0 30px rgba(0,255,135,0.6);
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: 'Bebas Neue', cursive;
  line-height: 0.9;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease both;
}

.hero-title .line1 {
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--text);
  letter-spacing: 6px;
}

.line23 {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.hero-title .line2 {
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--green);
  text-shadow: 0 0 60px rgba(0,255,135,0.5);
  letter-spacing: 4px;
  animation-delay: 0.1s;
}

.hero-title .line3 {
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--orange);
  letter-spacing: 8px;
  animation-delay: 0.2s;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s 0.3s ease both;
}

.rewards-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.4s ease both;
}

.reward-pill {
  background: rgba(0,255,135,0.08);
  border: 1px solid var(--border);
  color: var(--green);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: 999px;
  transition: all 0.3s;
}

.reward-pill:hover {
  background: rgba(0,255,135,0.15);
  transform: translateY(-2px);
}

.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--green), #00C864);
  color: #000;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  padding: 18px 52px;
  border-radius: 999px;
  box-shadow: 0 0 40px rgba(0,255,135,0.4);
  transition: all 0.3s;
  animation: fadeUp 0.8s 0.5s ease both;
  margin-bottom: 1rem;
}

.hero-cta:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 0 60px rgba(0,255,135,0.6);
}



/* ── RULES BTN — cleaned up, no spinning border ── */
.rules-btn {
  background: transparent;
  border: 1.5px solid var(--green);
  color: var(--green);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 10px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s;
  animation: fadeUp 0.8s 0.6s ease both;
  position: relative;
  z-index: 0;
  box-shadow: 0 0 14px rgba(0,255,135,0.35), 0 0 32px rgba(0,255,135,0.15);
}

.rules-btn:hover {
  background: rgba(0,255,135,0.08);
  box-shadow: 0 0 22px rgba(0,255,135,0.55), 0 0 50px rgba(0,255,135,0.25);
  transform: translateY(-2px);
}

/* ── FORM SECTION ── */
.form-section {
  position: relative;
  z-index: 1;
  padding: 1rem 1.5rem 4rem;
  display: flex;
  justify-content: center;
}

.form-glow-ring {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,255,135,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.form-container {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 640px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--orange), #138808, var(--green));
  background-size: 200% 100%;
  animation: shimmer-line 3s linear infinite;
}

@keyframes shimmer-line {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-header h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.4rem;
  letter-spacing: 4px;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.form-header p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── STEPS TRACK ── */
.steps-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: default;
}

.step span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--muted);
  transition: all 0.4s;
}

.step small {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.4s;
}

.step.active span, .step.done span {
  background: var(--green);
  border-color: var(--green);
  color: #000;
  box-shadow: 0 0 20px rgba(0,255,135,0.5);
}

.step.active small, .step.done small {
  color: var(--green);
}

.step-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.1);
  margin: 0 8px;
  margin-bottom: 18px;
  min-width: 30px;
  transition: background 0.4s;
  max-width: 60px;
}

.step-line.done { background: var(--green); }

/* ── FORM STEPS ── */
.form-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.form-step.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── FIELD GROUPS ── */
.field-group {
  margin-bottom: 1.4rem;
}

.field-group.half { max-width: 280px; }

label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.req { color: var(--orange); }

.field-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
  margin-top: -6px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  z-index: 1;
  pointer-events: none;
}

.textarea-wrap { align-items: flex-start; }
.textarea-wrap .input-icon { top: 14px; }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 16px 14px 44px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s;
  -webkit-appearance: none;
}

textarea { resize: vertical; min-height: 90px; }

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2388888A' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select option {
  background: #1A1A24;
  color: #E8E8F0;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--green);
  background: rgba(0,255,135,0.05);
  box-shadow: 0 0 0 3px rgba(0,255,135,0.1);
}

input.error, textarea.error, select.error {
  border-color: #FF4444;
  box-shadow: 0 0 0 3px rgba(255,68,68,0.1);
}

/* ── CHALLENGE GRID ── */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.challenge-card {
  cursor: pointer;
}

.challenge-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--muted);
  text-align: center;
  transition: all 0.3s;
}

.card-icon { font-size: 1.6rem; }

.challenge-card:hover .card-inner {
  border-color: rgba(0,255,135,0.3);
  color: var(--text);
}

.challenge-card input:checked ~ .card-inner {
  background: rgba(0,255,135,0.1);
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 20px rgba(0,255,135,0.2);
  transform: scale(1.04);
}

/* ── PHOTO UPLOAD ── */
.photo-upload-area {
  position: relative;
  border: 2px dashed rgba(0,255,135,0.3);
  border-radius: 16px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
  background: rgba(0,255,135,0.03);
}

.photo-upload-area:hover {
  border-color: var(--green);
  background: rgba(0,255,135,0.06);
}

.photo-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  padding: 0;
}

.photo-placeholder {
  text-align: center;
  pointer-events: none;
  padding: 2rem;
}

.upload-icon { font-size: 3rem; display: block; margin-bottom: 0.5rem; }

.photo-placeholder p {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.photo-placeholder small { color: var(--muted); }

.photo-preview {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: none;
  border-radius: 14px;
}

/* ── CHECKBOX ── */
.terms-row {
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  margin-top: 2px;
  transition: all 0.3s;
  position: relative;
  background: rgba(255,255,255,0.04);
}

.checkbox-label input:checked ~ .checkbox-custom {
  background: var(--green);
  border-color: var(--green);
}

.checkbox-label input:checked ~ .checkbox-custom::after {
  content: '✓';
  position: absolute;
  color: #000;
  font-weight: 900;
  font-size: 0.75rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.inline-rules-link {
  background: none;
  border: none;
  color: var(--green);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  display: inline;
}

/* ── BUTTONS ── */
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 0.5rem;
}

.btn-next, .btn-back, .btn-submit {
  padding: 15px 36px;
  border-radius: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  outline: none;
}

.btn-next {
  background: linear-gradient(135deg, var(--green), #00C864);
  color: #000;
  flex: 1;
  box-shadow: 0 8px 30px rgba(0,255,135,0.3);
}

.btn-next:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,255,135,0.5);
}

.btn-back {
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  border: 1.5px solid rgba(255,255,255,0.1);
  padding: 15px 24px;
}

.btn-back:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
}

.btn-submit {
  background: linear-gradient(135deg, var(--orange), #e67300);
  color: #fff;
  flex: 1;
  box-shadow: 0 8px 30px rgba(255,153,51,0.4);
  font-size: 1.05rem;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255,153,51,0.6);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── MODALS ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 560px;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.34,1.56,0.64,1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-icon { font-size: 3rem; display: block; margin-bottom: 0.5rem; }

.modal-header h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  letter-spacing: 3px;
  color: var(--green);
}

/* RULES BLOCKS */
.rule-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
}

.rule-block h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.rule-block ol, .rule-block ul {
  padding-left: 1.2rem;
}

.rule-block li {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
  line-height: 1.5;
}

.rule-block b { color: var(--text); }

.modal-close-btn {
  width: 100%;
  margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--green), #00C864);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,255,135,0.4);
}

/* ── SUCCESS MODAL ── */
.success-modal {
  text-align: center;
}

.success-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 24px;
}

.reg-id-display {
  background: rgba(0,255,135,0.06);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.reg-id-display > p {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.reg-id-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

#displayRegId {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.4rem;
  letter-spacing: 4px;
  color: var(--green);
  text-shadow: 0 0 30px rgba(0,255,135,0.5);
}

.copy-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
  transition: all 0.3s;
}

.copy-btn:hover { color: var(--text); background: rgba(255,255,255,0.1); }

.reg-id-display small {
  font-size: 0.8rem;
  color: var(--muted);
}

.success-msg {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.success-msg b { color: var(--green); }

.cert-note {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--muted);
}

@keyframes animate-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.animate-bounce { display: inline-block; animation: animate-bounce 0.8s ease-in-out infinite; }

/* ── FOOTER ── */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer b { color: var(--green); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: rgba(0,255,135,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ── RULES BTN — CORNER POSITION ── */
.rules-btn-corner {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.78rem;
  padding: 7px 16px;
  letter-spacing: 0.5px;
  z-index: 2;
  /* Inherit glow from .rules-btn */
}

.logo-img-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 8px 16px;
  box-shadow:
    0 0 0 1.5px rgba(0,255,135,0.4),
    0 0 20px rgba(0,255,135,0.25),
    0 0 50px rgba(0,255,135,0.12),
    0 8px 24px rgba(0,0,0,0.5);
  position: relative;
  transition: all 0.3s;
}

.logo-img-wrap::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green), var(--orange), var(--green));
  background-size: 200% 200%;
  z-index: -1;
  animation: logo-glow-rotate 3s linear infinite;
  opacity: 0.7;
}

@keyframes logo-glow-rotate {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.logo-img {
  display: block;
  height: 48px;
  width: auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .form-container { padding: 2rem 1.5rem; }
  .challenge-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-track { gap: 2px; }
  .step-line { min-width: 20px; max-width: 40px; }
  .step span { width: 32px; height: 32px; font-size: 0.85rem; }
  .step small { font-size: 0.6rem; }
}

@media (max-width: 600px) {
  .form-container { padding: 1.75rem 1rem; }
  .field-row { grid-template-columns: 1fr; }
  .challenge-grid { grid-template-columns: repeat(2, 1fr); }
  .field-group.half { max-width: 100%; }
  .hero-title .line1,
  .hero-title .line2,
  .hero-title .line3 { font-size: 1.8rem; }
  .btn-row { flex-direction: column; }
  .modal-box { padding: 2rem 1.2rem; }
  #displayRegId { font-size: 1.8rem; }
  .hero-cta { padding: 15px 32px; font-size: 1.05rem; }
  .rules-btn { font-size: 0.82rem; padding: 9px 20px; }
  .form-header h2 { font-size: 1.8rem; }
  .logo-text { font-size: 1.8rem; }
  .rewards-strip { gap: 8px; }
  .reward-pill { font-size: 0.78rem; padding: 6px 14px; }
}

@media (max-width: 380px) {
  .challenge-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-track { gap: 2px; }
  .step-line { min-width: 12px; max-width: 24px; }
  .step span { width: 28px; height: 28px; font-size: 0.78rem; }
  .hero-title .line1,
  .hero-title .line2,
  .hero-title .line3 { font-size: 1.5rem; }
  .form-container { padding: 1.5rem 0.9rem; border-radius: 18px; }
  .btn-next, .btn-submit { padding: 13px 20px; font-size: 0.9rem; }
}

.rules-btn,
.header-rule-btn {
  font-size: clamp(0.76rem, 2.2vw, 0.9rem);
  padding: clamp(8px, 1.8vw, 10px) clamp(14px, 4vw, 28px);
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 520px) {
  .rules-btn-corner {
    position: static;
    margin: 0 0 16px auto;
  }
}

/* ── PHOTO UPLOAD AREA ── */
.photo-upload-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border: 2px dashed rgba(0, 200, 150, 0.4);
  border-radius: 16px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s;
}

.photo-upload-area:hover {
  border-color: rgba(0, 200, 150, 0.8);
}

/* Hide the raw file input but keep it clickable */
#photoInput {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

/* Circular preview */
#photoPreview {
  display: none;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #00C896;
  box-shadow: 0 0 0 6px rgba(0, 200, 150, 0.15);
  margin: 16px auto;
  z-index: 1;
}

/* Placeholder text/icon */
#photoPlaceholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  pointer-events: none;
  z-index: 1;
}

.upload-icon {
  font-size: 2.5rem;
}

#photoPlaceholder p {
  font-size: 0.9rem;
  color: var(--text-secondary, #aaa);
  margin: 0;
  text-align: center;
}

#photoPlaceholder small {
  font-size: 0.75rem;
  color: var(--text-tertiary, #666);
}

/* ── CUSTOM STATE SELECT ── */
.custom-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
}

.custom-select-wrap.open {
  border-color: var(--green);
  background: rgba(0,255,135,0.05);
  box-shadow: 0 0 0 3px rgba(0,255,135,0.1);
}

.custom-select-wrap.error {
  border-color: #FF4444;
  box-shadow: 0 0 0 3px rgba(255,68,68,0.1);
}

.custom-select-display {
  flex: 1;
  padding: 14px 16px 14px 44px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-display.selected {
  color: var(--text);
}

.custom-select-arrow {
  padding-right: 14px;
  color: var(--muted);
  font-size: 0.85rem;
  transition: transform 0.3s;
  pointer-events: none;
}

.custom-select-wrap.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--dark2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  z-index: 100;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  overflow: hidden;
}

.custom-select-wrap.open .custom-select-dropdown {
  display: block;
}

.custom-select-search {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.custom-select-search input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  outline: none;
}

.custom-select-search input:focus {
  border-color: var(--green);
}

.custom-select-options {
  max-height: 220px;
  overflow-y: auto;
  padding: 6px 0;
}

.custom-select-option {
  padding: 11px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}

.custom-select-option:hover {
  background: rgba(0,255,135,0.08);
  color: var(--green);
}

.custom-select-option.selected {
  background: rgba(0,255,135,0.12);
  color: var(--green);
  font-weight: 600;
}

.custom-select-option.hidden {
  display: none;
}

/* ── TERMS CHECKBOX — RESPONSIVE FIX ── */
.checkbox-label {
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
}

.terms-text {
  flex: 1;
  min-width: 0;        /* prevents text from overflowing flex container */
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  word-break: break-word;
}

.checkbox-custom {
  flex-shrink: 0;      /* keeps the box from squishing */
  margin-top: 3px;
}

.inline-rules-link {
  white-space: nowrap; /* keeps "challenge rules" on one word unit */
}

@media (max-width: 380px) {
  .terms-text {
    font-size: 0.82rem;
  }
}