/* ======================================================
   FreshMarket — Reseller Registration (FINAL)
   File: /assets/css/reseller/register.css
   Depends on: webframework.css
====================================================== */

/* ===============================
   HERO WRAPPER
================================ */
.reg-hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 72px);
  display: flex;
  background: linear-gradient(135deg, #0f3d1f, #1b5e20, #2e7d32);
  overflow: hidden;
}

.reg-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.12), transparent 55%);
  pointer-events: none;
}

/* ===============================
   INNER GRID
================================ */
.reg-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--fm-max-width);
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 64px;
  width: 100%;
}

/* ===============================
   LEFT COPY
================================ */
.reg-hero-left {
  display: flex;
  align-items: center;
}

.reg-hero-copy {
  color: #fff;
  max-width: 520px;
}

.reg-hero-copy h1 {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
}

.reg-hero-copy p {
  font-size: 18px;
  line-height: 1.6;
  opacity: .9;
}

.reg-hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
}

.reg-hero-stats .stat strong {
  font-size: 18px;
}

.reg-hero-stats .stat span {
  font-size: 14px;
  opacity: .85;
}

/* ===============================
   FORM CARD
================================ */
.reg-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.reg-form-card {
  width: 100%;
  background: #fff;
  border-radius: var(--fm-radius-lg);
  padding: 36px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}

/* ===============================
   STEPS
================================ */
.reg-step { display: none; }
.reg-step.is-active { display: block; }

.reg-step h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.reg-sub {
  font-size: 14px;
  color: var(--fm-color-muted);
  margin-bottom: 22px;
}

/* ===============================
   INPUTS
================================ */
.reg-step form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reg-step input {
  padding: 14px 16px;
  border-radius: var(--fm-radius-md);
  border: 1px solid var(--fm-color-border);
  font-size: 14px;
}

.reg-step input:focus {
  outline: none;
  border-color: var(--fm-color-primary);
  box-shadow: 0 0 0 3px rgba(46,125,50,.15);
}

.reg-step input[readonly] {
  background: #f3f4f6;
  color: #6b7280;
}

/* ===============================
   ACTIONS
================================ */
.reg-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.reg-actions-wide {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ===============================
   ERROR
================================ */
.reg-error-banner {
  background: #fee2e2;
  color: #991b1b;
  padding: 12px 14px;
  border-radius: var(--fm-radius-md);
  font-size: 13px;
  margin-bottom: 16px;
}

/* ======================================================
   STEP 5 — PLAN SELECTOR (HORIZONTAL, NO CAROUSEL)
====================================================== */

.reg-plan-section {
  width: 100%;
  padding: 96px 24px;
  background: linear-gradient(180deg, #0f3d1e, #1b5e20);
  color: #ffffff;
}

.reg-plan-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- HEADER ---------- */
.reg-plan-header {
  text-align: center;
  margin-bottom: 56px;
}

.reg-plan-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
}

.reg-plan-header .reg-sub {
  color: rgba(255,255,255,0.85);
}

/* ---------- PLAN ROW ---------- */
.plan-carousel {
  width: 100%;
}

.plan-track {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 28px;
  flex-wrap: wrap;
}

/* ---------- PLAN CARD ---------- */
.plan-slide {
  width: 320px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 18px;
  padding: 36px 28px;
  position: relative;
  cursor: pointer;

  border: 2px solid transparent;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

/* Hide radio */
.plan-slide input {
  display: none;
}

/* Hover */
.plan-slide:hover {
  transform: translateY(-6px);
}

/* Selected */
.plan-slide.is-selected {
  border-color: #16a34a;
  transform: translateY(-10px);
  box-shadow: 0 26px 60px rgba(0,0,0,0.35);
}

/* ---------- RECOMMENDED BADGE ---------- */
.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #16a34a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- CONTENT ---------- */
.plan-slide h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-slide .price {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #14532d;
}

.plan-slide ul {
  padding-left: 18px;
  margin: 0;
}

.plan-slide li {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* ---------- ACTIONS ---------- */
.reg-actions-wide {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .plan-track {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .plan-track {
    flex-direction: column;
    align-items: center;
  }

  .plan-slide {
    width: 100%;
    max-width: 420px;
  }
}
/* ======================================================
   PAYMENT SUCCESS — MODERN PROGRESSION & LOADER
====================================================== */

.reg-progress {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reg-progress-step {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: #9ca3af;
}

.reg-progress-step::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #d1d5db;
}

.reg-progress-step.active {
  color: #16a34a;
  font-weight: 600;
}

.reg-progress-step.active::before {
  color: #16a34a;
}

.reg-progress.fading {
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

/* Loader */

.reg-loader {
  margin-top: 32px;
  text-align: center;
}

.reg-loader-text {
  margin-top: 10px;
  font-size: 14px;
  color: #6b7280;
}

.reg-loader .spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border: 4px solid #e5e7eb;
  border-top-color: #16a34a;
  border-radius: 50%;
  animation: reg-spin 0.9s linear infinite;
}

@keyframes reg-spin {
  to { transform: rotate(360deg); }
}
