/* ============================================================
   Fix My Business Challenge – Main Stylesheet
   Brand: #E3C326 (gold) + #111 (black) + #fff (white)
   ============================================================ */

:root {
  --gold:        #E3C326;
  --gold-dark:   #c5aa1a;
  --gold-light:  #f5e06e;
  --black:       #0d0d0d;
  --dark:        #141414;
  --dark2:       #1e1e1e;
  --dark3:       #2a2a2a;
  --mid:         #444;
  --muted:       #888;
  --light:       #f4f4f4;
  --white:       #ffffff;
  --border:      #2e2e2e;
  --border-light:#e0e0e0;
  --success:     #22c55e;
  --error:       #ef4444;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.3);
  --transition:  0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

.btn-sm  { padding: 8px 18px; font-size: 13px; }
.btn-lg  { padding: 16px 32px; font-size: 17px; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo { display: flex; align-items: center; }
.nav-logo-img { height: 40px; width: auto; display: block; }

/* ── Hero ── */
.hero {
  background: radial-gradient(ellipse at 60% 0%, rgba(227,195,38,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 0% 80%, rgba(227,195,38,0.08) 0%, transparent 50%),
              var(--black);
  padding: 90px 0 70px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(227,195,38,0.15);
  color: var(--gold);
  border: 1px solid rgba(227,195,38,0.3);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero-title .gold { color: var(--gold); }

.hero-sub {
  font-size: 18px;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.deadline-banner {
  display: inline-block;
  background: rgba(227,195,38,0.1);
  border: 1px solid rgba(227,195,38,0.3);
  border-radius: var(--radius);
  padding: 12px 24px;
  font-size: 15px;
  color: #ddd;
}
.deadline-banner.closed {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.3);
  color: #fca5a5;
}

/* ── Sections ── */
.section { padding: 80px 0; }
.section-dark { background: var(--dark2); }
.section-apply { background: var(--dark); }

.section-title {
  text-align: center;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 48px;
}

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gold);
}

.card p { color: #bbb; font-size: 15px; }

/* ── Eligibility ── */
.eligibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.eligibility-item {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
}

.eligibility-note {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-top: 8px;
}

/* ── Steps ── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  flex: 1;
  min-width: 200px;
  max-width: 220px;
  text-align: center;
}

.step-num {
  font-size: 42px;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.6;
  line-height: 1;
  margin-bottom: 12px;
}

.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p  { color: #aaa; font-size: 14px; }

.step-arrow {
  font-size: 28px;
  color: var(--gold);
  align-self: center;
  margin-top: -12px;
  opacity: 0.5;
}

@media (max-width: 700px) {
  .step-arrow { display: none; }
  .steps { gap: 16px; }
  .step { max-width: 100%; }
}

/* ── Application Form ── */
.form-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

@media (max-width: 600px) {
  .form-wrap { padding: 24px 20px; }
}

/* Progress bar */
.progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.progress-bar-track {
  flex: 1;
  height: 6px;
  background: var(--dark3);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
  transition: width 0.4s ease;
  width: 25%;
}

.progress-label {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 600;
}

/* Fieldsets / steps */
.form-step {
  border: none;
  padding: 0;
  display: none;
}
.form-step.active { display: block; }

.step-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--white);
}

.step-icon { font-size: 24px; }

.step-intro {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
  font-style: italic;
}

/* Fields */
.field {
  margin-bottom: 22px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ddd;
}

.req  { color: var(--gold); font-size: 16px; }
.optional { color: var(--muted); font-size: 12px; font-weight: 400; }
.char-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  background: var(--dark3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

input::placeholder,
textarea::placeholder { color: var(--muted); }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(227,195,38,0.15);
}

input.error,
select.error,
textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}

select option { background: var(--dark3); color: var(--white); }

.field-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.field-error-msg {
  display: block;
  font-size: 12px;
  color: var(--error);
  margin-top: 5px;
  font-weight: 500;
}

/* Social inputs */
.social-inputs { display: flex; flex-direction: column; gap: 10px; }

.social-input {
  display: flex;
  align-items: center;
  background: var(--dark3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.social-input:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(227,195,38,0.15);
}

.social-prefix {
  padding: 12px 10px 12px 14px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  border-right: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.social-input input {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 12px 12px;
}
.social-input input:focus { box-shadow: none; }

/* Challenge category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.cat-option {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  background: var(--dark3);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px;
  transition: all var(--transition);
  user-select: none;
}

.cat-option:hover {
  border-color: rgba(227,195,38,0.5);
  background: rgba(227,195,38,0.05);
}

.cat-option input[type="radio"] { display: none; }

.cat-option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(227,195,38,0.1);
}

.cat-icon { font-size: 24px; }
.cat-label { font-size: 12px; font-weight: 600; color: #ccc; }

.cat-option:has(input:checked) .cat-label { color: var(--gold); }

/* Checkboxes */
.checkbox-field label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 400;
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] { display: none; }

.checkmark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: var(--dark3);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.checkbox-label input:checked ~ .checkmark {
  background: var(--gold);
  border-color: var(--gold);
}

.checkbox-label input:checked ~ .checkmark::after {
  content: '✓';
  font-size: 13px;
  font-weight: 900;
  color: var(--black);
}

/* Review summary */
.review-summary {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  font-size: 14px;
}

.review-summary h4 {
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.review-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  color: #ccc;
}
.review-row span:first-child { color: var(--muted); width: 130px; flex-shrink: 0; font-size: 13px; }

/* Consent section */
.consent-section {
  background: rgba(227,195,38,0.03);
  border: 1px solid rgba(227,195,38,0.15);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.consent-section .field:last-child { margin-bottom: 0; }

/* Step navigation */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}

.btn-submit {
  position: relative;
  overflow: hidden;
}

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

/* Success message */
.success-msg {
  text-align: center;
  padding: 40px 20px;
}

.success-icon { font-size: 64px; margin-bottom: 16px; }

.success-msg h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 12px;
}

.success-msg p {
  color: #bbb;
  font-size: 16px;
  margin-bottom: 10px;
}

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: var(--dark2);
  border: none;
  color: var(--white);
  text-align: left;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  transition: background var(--transition);
}

.faq-q:hover { background: var(--dark3); }

.faq-arrow {
  font-size: 12px;
  color: var(--gold);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-a { max-height: 300px; }

.faq-a p {
  padding: 0 20px 20px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.7;
}

/* ── Footer ── */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  text-align: center;
}

.footer-inner .logo { margin-bottom: 12px; font-size: 22px; }
.footer-inner p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.footer-copy { font-size: 13px; color: #555 !important; }

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.modal h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--gold);
}

.terms-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin: 18px 0 6px;
}

.terms-content p {
  font-size: 13px;
  color: #aaa;
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--white); }

/* ── Share block ── */
.share-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.share-label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px !important;
}

.share-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: opacity var(--transition);
}
.btn-whatsapp:hover { opacity: .85; text-decoration: none; }

.btn-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--transition);
}
.btn-copy-link:hover { border-color: var(--gold); color: var(--gold); }

/* ── Toast notifications ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}

.toast {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  box-shadow: var(--shadow);
}

.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--error); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(110%); opacity: 0; }
}

.toast.leaving { animation: slideOut 0.3s ease forwards; }

/* ── Responsive tweaks ── */
@media (max-width: 768px) {
  .hero { padding: 60px 0 50px; }
  .hero-stats { gap: 24px; }
  .cards { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .form-wrap { padding: 24px 16px; }
}

@media (max-width: 420px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
