/* ==========================================================================
   FIGEIT — Franchise Signup Page (FEATURE-003A)
   Namespace: fz-
   ========================================================================== */

:root {
  --fz-blue: #005BFF;
  --fz-blue-dark: #003D99;
  --fz-blue-tint: #E8F0FF;
  --fz-yellow: #FFC107;
  --fz-yellow-tint: #FFF6DE;
  --fz-black: #1E1E1E;
  --fz-white: #FFFFFF;
  --fz-gray-light: #F7F9FC;
  --fz-gray-line: #E4E9F2;
  --fz-text-muted: #6B7480;
  --fz-success: #1F9254;
  --fz-error: #D64545;

  --fz-radius-sm: 10px;
  --fz-radius-md: 16px;
  --fz-radius-lg: 22px;
  --fz-shadow-soft: 0 8px 30px rgba(30, 30, 30, 0.06);
  --fz-shadow-lift: 0 16px 40px rgba(30, 30, 30, 0.10);
  --fz-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fz-speed: 0.25s;
  --fz-content-width: 1200px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--fz-black);
  background: var(--fz-gray-light);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; }
input, select, textarea { font-family: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--fz-yellow);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   TOP NAVIGATION
   ========================================================================== */
.fz-nav {
  background: #fff;
  border-bottom: 1px solid var(--fz-gray-line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.fz-nav-inner {
  max-width: var(--fz-content-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fz-nav-logo svg { height: 30px; width: auto; }

.fz-nav-actions { display: flex; align-items: center; gap: 20px; }

.fz-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fz-black);
  transition: color var(--fz-speed) var(--fz-ease);
}
.fz-nav-link svg { width: 15px; height: 15px; }
.fz-nav-link:hover { color: var(--fz-blue); }
.fz-nav-link--muted { color: var(--fz-text-muted); font-weight: 500; }

.fz-nav-divider { width: 1px; height: 18px; background: var(--fz-gray-line); }

.fz-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--fz-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 20px;
  transition: background var(--fz-speed) var(--fz-ease), transform var(--fz-speed) var(--fz-ease);
}
.fz-nav-btn svg { width: 14px; height: 14px; }
.fz-nav-btn:hover { background: var(--fz-blue-dark); transform: scale(1.03); }

/* ==========================================================================
   HERO
   ========================================================================== */
.fz-hero {
  background: linear-gradient(180deg, #fff 0%, var(--fz-gray-light) 100%);
  padding: 48px 24px 40px;
  text-align: center;
  animation: fzFadeIn 0.6s var(--fz-ease);
}

.fz-hero-inner { max-width: 640px; margin: 0 auto; }

.fz-hero-illustration { width: 120px; margin: 0 auto 20px; }
.fz-hero-illustration svg { width: 100%; height: auto; }

.fz-hero-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--fz-blue);
  margin: 0 0 8px;
}

.fz-hero-subtitle-strong {
  font-size: 17px;
  font-weight: 600;
  color: var(--fz-black);
  margin: 0 0 12px;
}

.fz-hero-subtitle {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fz-text-muted);
  margin: 0 0 28px;
}

.fz-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.fz-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--fz-gray-line);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--fz-shadow-soft);
}

.fz-badge-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fz-blue-tint);
  color: var(--fz-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* ==========================================================================
   MAIN LAYOUT
   ========================================================================== */
.fz-layout { padding: 8px 24px 56px; }

.fz-layout-inner {
  max-width: var(--fz-content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

.fz-main { min-width: 0; }

/* ==========================================================================
   PROGRESS STEPPER
   ========================================================================== */
.fz-progress {
  background: #fff;
  border: 1px solid var(--fz-gray-line);
  border-radius: var(--fz-radius-md);
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: var(--fz-shadow-soft);
}

.fz-progress-mobile-label {
  display: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--fz-blue);
  margin: 0 0 12px;
}

.fz-progress-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}
.fz-progress-track::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--fz-gray-line);
  z-index: 0;
}

.fz-progress-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-align: center;
}

.fz-progress-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--fz-gray-line);
  color: var(--fz-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: background var(--fz-speed) var(--fz-ease), border-color var(--fz-speed) var(--fz-ease), color var(--fz-speed) var(--fz-ease);
}

.fz-progress-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--fz-text-muted);
  line-height: 1.3;
  max-width: 84px;
}

.fz-progress-step--active .fz-progress-dot {
  background: var(--fz-blue);
  border-color: var(--fz-blue);
  color: #fff;
  box-shadow: 0 0 0 4px var(--fz-blue-tint);
}
.fz-progress-step--active .fz-progress-label { color: var(--fz-blue); }

.fz-progress-step--done .fz-progress-dot {
  background: var(--fz-success);
  border-color: var(--fz-success);
  color: #fff;
}
.fz-progress-step--done .fz-progress-dot::after { content: '✓'; }
.fz-progress-step--done .fz-progress-dot { font-size: 0; }
.fz-progress-step--done .fz-progress-dot::after { font-size: 14px; }

/* ==========================================================================
   FORM CARD / FIELDS
   ========================================================================== */
.fz-step { display: none; animation: fzFadeSlideUp 0.4s var(--fz-ease); }
.fz-step--active { display: block; }

.fz-card {
  background: #fff;
  border: 1px solid var(--fz-gray-line);
  border-radius: var(--fz-radius-lg);
  padding: 32px;
  box-shadow: var(--fz-shadow-soft);
}

.fz-card-title { font-size: 21px; font-weight: 700; margin: 0 0 6px; }
.fz-card-subtitle { font-size: 13.5px; color: var(--fz-text-muted); margin: 0 0 26px; }

.fz-field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.fz-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fz-field--wide { grid-column: 1 / -1; }
.fz-field--half { grid-column: span 1; }
.fz-field--pincode { grid-column: 1 / -1; }

.fz-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fz-black);
}
.fz-required { color: var(--fz-error); }
.fz-optional { color: var(--fz-text-muted); font-weight: 400; }

.fz-field input,
.fz-field select {
  height: 46px;
  border: 1.5px solid var(--fz-gray-line);
  border-radius: var(--fz-radius-sm);
  padding: 0 14px;
  font-size: 13.5px;
  color: var(--fz-black);
  background: #fff;
  transition: border-color var(--fz-speed) var(--fz-ease), box-shadow var(--fz-speed) var(--fz-ease);
}
.fz-field input::placeholder { color: #A3ACB9; }
.fz-field input:focus, .fz-field select:focus {
  outline: none;
  border-color: var(--fz-blue);
  box-shadow: 0 0 0 3px var(--fz-blue-tint);
}
.fz-field input[readonly] { background: var(--fz-gray-light); color: var(--fz-text-muted); }

.fz-display-value {
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--fz-radius-sm);
  background: var(--fz-gray-light);
  border: 1.5px dashed var(--fz-gray-line);
  font-size: 13.5px;
  color: var(--fz-text-muted);
  margin: 0;
}

.fz-input-row { display: flex; gap: 10px; }
.fz-input-row input { flex: 1; }

/* ---- Result / status message (Step 1) ---- */
.fz-result { font-size: 13px; font-weight: 600; margin: 4px 0 0; min-height: 18px; }
.fz-result--available { color: var(--fz-success); }
.fz-result--unavailable { color: var(--fz-error); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.fz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 24px;
  border: 1.5px solid transparent;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform var(--fz-speed) var(--fz-ease), background var(--fz-speed) var(--fz-ease), color var(--fz-speed) var(--fz-ease), border-color var(--fz-speed) var(--fz-ease);
}
.fz-btn svg { width: 15px; height: 15px; }
.fz-btn:hover:not(:disabled) { transform: scale(1.02); }
.fz-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.fz-btn--primary { background: var(--fz-blue); color: #fff; }
.fz-btn--primary:hover:not(:disabled) { background: var(--fz-blue-dark); }

.fz-btn--secondary { background: var(--fz-blue-tint); color: var(--fz-blue); }
.fz-btn--secondary:hover:not(:disabled) { background: var(--fz-blue); color: #fff; }

.fz-btn--ghost { background: #fff; color: var(--fz-black); border-color: var(--fz-gray-line); }
.fz-btn--ghost:hover:not(:disabled) { border-color: var(--fz-blue); color: var(--fz-blue); }

/* Button ripple micro-interaction */
.fz-btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: fzRipple 0.6s var(--fz-ease);
  pointer-events: none;
}

/* ==========================================================================
   OTP BLOCK
   ========================================================================== */
.fz-otp-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--fz-gray-line);
  animation: fzFadeSlideUp 0.35s var(--fz-ease);
}

.fz-otp-label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 12px; }

.fz-otp-row { display: flex; gap: 10px; margin-bottom: 16px; }

.fz-otp-box {
  width: 44px;
  height: 50px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  border: 1.5px solid var(--fz-gray-line);
  border-radius: var(--fz-radius-sm);
  transition: border-color var(--fz-speed) var(--fz-ease), box-shadow var(--fz-speed) var(--fz-ease);
}
.fz-otp-box:focus {
  outline: none;
  border-color: var(--fz-blue);
  box-shadow: 0 0 0 3px var(--fz-blue-tint);
}

.fz-otp-actions { display: flex; align-items: center; gap: 16px; }

.fz-otp-success {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fz-success);
  animation: fzFadeIn 0.4s var(--fz-ease);
}
.fz-otp-success svg { width: 20px; height: 20px; }

/* ==========================================================================
   FILE UPLOAD
   ========================================================================== */
.fz-upload-single { margin-top: 26px; max-width: 320px; }
.fz-upload-single > label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }

.fz-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.fz-upload-card {
  position: relative;
  border: 1.5px dashed var(--fz-gray-line);
  border-radius: var(--fz-radius-md);
  padding: 24px 16px;
  text-align: center;
  background: var(--fz-gray-light);
  transition: border-color var(--fz-speed) var(--fz-ease), background var(--fz-speed) var(--fz-ease);
  cursor: pointer;
}
.fz-upload-card:hover,
.fz-upload-card.fz-upload-card--dragover {
  border-color: var(--fz-blue);
  background: var(--fz-blue-tint);
}
.fz-upload-card.fz-upload-card--filled {
  border-style: solid;
  border-color: var(--fz-success);
  background: #F0FAF4;
}

.fz-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.fz-upload-icon {
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
  color: var(--fz-blue);
}

.fz-upload-text { font-size: 12.5px; margin: 0 0 3px; color: var(--fz-black); }
.fz-upload-hint { font-size: 11px; color: var(--fz-text-muted); margin: 0; }
.fz-upload-filename {
  margin: 8px 0 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fz-success);
  word-break: break-all;
}

/* ==========================================================================
   REVIEW STEP
   ========================================================================== */
.fz-review { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }

.fz-review-group {
  border: 1px solid var(--fz-gray-line);
  border-radius: var(--fz-radius-md);
  padding: 18px 20px;
}
.fz-review-group h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--fz-blue);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.fz-review-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--fz-gray-light);
}
.fz-review-row:last-child { border-bottom: none; }
.fz-review-row dt { color: var(--fz-text-muted); font-weight: 500; }
.fz-review-row dd { margin: 0; font-weight: 600; text-align: right; }

.fz-declaration {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--fz-black);
  cursor: pointer;
  padding-top: 6px;
  border-top: 1px dashed var(--fz-gray-line);
}
.fz-declaration input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--fz-blue); flex: none; }

/* ==========================================================================
   STEP NAVIGATION
   ========================================================================== */
.fz-step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.fz-sidebar { position: sticky; top: 84px; }

.fz-sidebar-card {
  background: var(--fz-blue-dark);
  color: #fff;
  border-radius: var(--fz-radius-lg);
  padding: 26px 24px;
}

.fz-sidebar-title { font-size: 16px; font-weight: 700; margin: 0 0 18px; }

.fz-sidebar-list { display: flex; flex-direction: column; gap: 16px; }
.fz-sidebar-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
}

.fz-sidebar-icon {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--fz-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fz-sidebar-icon svg { width: 16px; height: 16px; }

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.fz-faq { padding: 8px 24px 64px; }
.fz-faq-inner { max-width: 760px; margin: 0 auto; }
.fz-faq-title { text-align: center; font-size: 24px; font-weight: 700; color: var(--fz-blue); margin: 0 0 28px; }

.fz-accordion-item {
  border: 1px solid var(--fz-gray-line);
  border-radius: var(--fz-radius-md);
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}

.fz-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  color: var(--fz-black);
}
.fz-accordion-icon { width: 18px; height: 18px; flex: none; color: var(--fz-blue); transition: transform var(--fz-speed) var(--fz-ease); }
.fz-accordion-trigger[aria-expanded="true"] .fz-accordion-icon { transform: rotate(180deg); }

.fz-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--fz-ease);
}
.fz-accordion-panel p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fz-text-muted);
}

/* ==========================================================================
   SUCCESS SCREEN
   ========================================================================== */
.fz-success {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, #fff 0%, var(--fz-gray-light) 100%);
}
.fz-success[hidden] {
  display: none !important;
}

.fz-success-inner { max-width: 480px; text-align: center; animation: fzFadeSlideUp 0.5s var(--fz-ease); }

.fz-success-illustration { width: 140px; margin: 0 auto 24px; }
.fz-success-illustration svg { width: 100%; height: auto; }

.fz-success-check {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: fzDrawCheck 0.6s 0.3s var(--fz-ease) forwards;
}

.fz-success-title { font-size: 30px; font-weight: 800; color: var(--fz-blue); margin: 0 0 10px; }
.fz-success-subtitle { font-size: 15.5px; font-weight: 600; margin: 0 0 8px; }
.fz-success-message { font-size: 13.5px; color: var(--fz-text-muted); margin: 0 0 22px; }

.fz-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fz-yellow-tint);
  color: #A66E00;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}
.fz-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #A66E00; }

.fz-success-actions { display: flex; justify-content: center; gap: 14px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.fz-footer { background: #0B1220; color: rgba(255,255,255,0.75); padding: 48px 24px 0; }

.fz-footer-inner {
  max-width: var(--fz-content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 32px;
}

.fz-footer-logo { height: 30px; width: auto; margin-bottom: 12px; }
.fz-footer-desc { font-size: 12.5px; line-height: 1.6; margin: 0 0 16px; max-width: 260px; }

.fz-footer-social { display: flex; gap: 10px; }
.fz-footer-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  transition: background var(--fz-speed) var(--fz-ease);
}
.fz-footer-social a svg { width: 14px; height: 14px; }
.fz-footer-social a:hover { background: var(--fz-blue); }

.fz-footer-col h3 { font-size: 13px; font-weight: 700; color: #fff; margin: 0 0 14px; }
.fz-footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.fz-footer-col a { font-size: 12.5px; color: rgba(255,255,255,0.72); transition: color var(--fz-speed) var(--fz-ease); }
.fz-footer-col a:hover { color: var(--fz-yellow); }

.fz-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: var(--fz-content-width);
  margin: 0 auto;
  padding: 16px 0;
  font-size: 11.5px;
  color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fzFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fzFadeSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fzRipple { to { transform: scale(3); opacity: 0; } }
@keyframes fzDrawCheck { to { stroke-dashoffset: 0; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .fz-layout-inner { grid-template-columns: 1fr; }
  .fz-sidebar { position: static; }
  .fz-upload-grid { grid-template-columns: repeat(2, 1fr); }
  .fz-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .fz-nav-link span, .fz-nav-link--muted { display: none; }
  .fz-nav-actions { gap: 12px; }

  .fz-hero-title { font-size: 26px; }
  .fz-badges { gap: 8px; }
  .fz-badge { font-size: 11.5px; padding: 7px 12px; }

  .fz-progress-track { display: none; }
  .fz-progress-mobile-label { display: block; }
  .fz-progress {
    padding: 16px 18px;
  }

  .fz-card { padding: 22px 18px; }
  .fz-field-grid { grid-template-columns: 1fr; }
  .fz-field--half { grid-column: auto; }

  .fz-input-row { flex-direction: column; }
  .fz-otp-row { gap: 6px; }
  .fz-otp-box { width: 38px; height: 44px; font-size: 16px; }

  .fz-upload-grid { grid-template-columns: 1fr; }

  .fz-review-row { flex-direction: column; gap: 2px; }
  .fz-review-row dd { text-align: left; }

  .fz-success-actions { flex-direction: column; }

  .fz-footer-inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .fz-success-check { stroke-dashoffset: 0; }
}
