/* ============================================================
   TONGRAAL — Seller Application Page
   Editorial · Premium · Multi-step form
   ============================================================ */

/* ── Page layout ── */
.apply-page {
  min-height: 100vh;
  background: var(--bg);
}

/* ============================================================
   HERO — editorial intro
   ============================================================ */
.apply-hero {
  padding: 5rem var(--gutter) 4rem;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.apply-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: #F5E4DA;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.apply-hero__tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.apply-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.apply-hero h1 em { font-style: italic; color: var(--accent); }

.apply-hero__sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* Stats row */
.apply-hero__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.apply-hero__stat { text-align: center; }
.apply-hero__stat .v {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.apply-hero__stat .k {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ============================================================
   ELIGIBILITY BLOCK
   ============================================================ */
.eligibility {
  max-width: 860px;
  margin: 0 auto 4rem;
  padding: 0 var(--gutter);
}

.eligibility__head {
  text-align: center;
  margin-bottom: 2rem;
}

.eligibility__head h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.eligibility__head p {
  font-size: 14px;
  color: var(--ink-mute);
}

.eligibility__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.elig-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.elig-card__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.elig-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.elig-card__text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.elig-card--yes { border-color: #C8DBBF; background: #F2F7EF; }
.elig-card--no  { border-color: #E8C3B0; background: #FBF2EE; }

/* ============================================================
   TESTIMONIALS STRIP
   ============================================================ */
.apply-testimonials {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem var(--gutter);
  margin-bottom: 4rem;
}

.apply-testimonials__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.testimonial__quote {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.testimonial__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
}

.testimonial__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.testimonial__shop {
  font-size: 11px;
  color: var(--ink-mute);
}

/* ============================================================
   APPLICATION FORM — main body
   ============================================================ */
.apply-form-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--gutter) 6rem;
}

/* Progress stepper */
.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  transform: translateY(-50%);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  position: relative;
  z-index: 1;
}

.step__circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--ink-mute);
  transition: all 0.25s;
}

.step.done .step__circle {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}

.step.active .step__circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(196, 106, 74, 0.15);
}

.step__label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  text-align: center;
  white-space: nowrap;
}

.step.active .step__label { color: var(--accent); font-weight: 600; }
.step.done .step__label   { color: var(--olive); }

/* Step progress bar */
.step-progress {
  height: 3px;
  background: var(--border);
  border-radius: 100px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.step-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  border-radius: 100px;
  transition: width 0.4s ease;
}

/* ── Form sections ── */
.form-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.form-section__head {
  padding: 1.4rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.form-section__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.form-section__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

.form-section__sub {
  font-size: 12px;
  color: var(--ink-mute);
  margin-left: auto;
}

.form-section__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Field groups ── */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.field-full { grid-column: 1 / -1; }

/* ── Single field ── */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.field__label .req { color: var(--accent); }

.field__hint {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: -0.1rem;
}

.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 14px;
  color: var(--ink);
  font-family: var(--sans);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,106,74,0.1);
  background: var(--card);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-mute); }

.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%238A8378' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 16px; padding-right: 2.25rem; }

/* Radio / checkbox group */
.check-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--bg);
}

.check-item:hover { border-color: var(--hair); background: var(--card); }

.check-item input[type="checkbox"],
.check-item input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  margin-top: 1px;
  flex-shrink: 0;
  border-radius: 4px;
}

.check-item__label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

.check-item__sub {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 1px;
}

/* ── Photo upload zone ── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
  position: relative;
}

.upload-zone:hover {
  border-color: var(--accent);
  background: #FBF2EE;
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-zone__icon {
  font-size: 1.75rem;
  margin-bottom: 0.625rem;
}

.upload-zone__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.upload-zone__sub {
  font-size: 12px;
  color: var(--ink-mute);
}

.upload-zone__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.875rem;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.15s;
}

.upload-zone:hover .upload-zone__btn {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Photo preview thumbnails */
.upload-preview {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.875rem;
}

.upload-preview__thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid var(--border);
}

/* ============================================================
   PLAN SELECTION
   ============================================================ */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.plan-card {
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: var(--card);
}

.plan-card:hover { border-color: var(--hair); box-shadow: var(--shadow); }

.plan-card.selected {
  border-color: var(--accent);
  background: #FBF2EE;
  box-shadow: 0 0 0 3px rgba(196,106,74,0.12);
}

.plan-card__popular {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 0 0 8px 8px;
}

.plan-card__radio {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.plan-card__name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.5rem;
}

.plan-card__price {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.plan-card__price span {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mute);
}

.plan-card__tagline {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.plan-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.plan-card__features li {
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.plan-card__features li::before {
  content: '✓';
  color: var(--olive);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.plan-card__features li.no::before {
  content: '—';
  color: var(--border);
}

/* ============================================================
   FORM SUBMIT AREA
   ============================================================ */
.form-submit {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.form-submit__copy h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.form-submit__copy p {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
}

.form-submit__actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.btn-submit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-submit:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(196,106,74,0.5); }
.btn-submit svg { width: 16px; height: 16px; stroke-width: 2; }

.btn-save-draft {
  padding: 0.875rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: none;
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-save-draft:hover { background: var(--bg); color: var(--ink); }

/* ============================================================
   WHAT HAPPENS NEXT section
   ============================================================ */
.what-next {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 4rem var(--gutter);
  margin-top: 4rem;
}

.what-next__inner {
  max-width: 860px;
  margin: 0 auto;
}

.what-next__head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.what-next__head h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.what-next__head p { font-size: 14px; color: var(--ink-mute); }

.next-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.next-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: var(--border);
}

.next-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.875rem;
}

.next-step__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}

.next-step__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.next-step__text {
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* ============================================================
   SUCCESS OVERLAY
   ============================================================ */
.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(246,242,234,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(8px);
}

.success-overlay.visible {
  display: flex;
}

.success-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.success-card__emoji { font-size: 3rem; margin-bottom: 1.25rem; }

.success-card h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.success-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.success-card__steps {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.success-card__step {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 13px;
  color: var(--ink-soft);
}

.success-card__step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E4EBE0;
  color: var(--olive);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.success-card__cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .apply-hero__stats { gap: 1.5rem; }
  .eligibility__grid { grid-template-columns: 1fr; }
  .apply-testimonials__inner { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .field-row--3 { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .next-steps { grid-template-columns: 1fr 1fr; }
  .next-steps::before { display: none; }
  .form-submit { flex-direction: column; align-items: flex-start; }
}
