/* ================================================================
   affiliate-dealer.css
   বিশুদ্ধ প্রকৃতি — Affiliate & Dealer Registration Pages
   Shared stylesheet for both pages
   ================================================================ */

/* =========================
   GLOBAL
   ========================= */
* { box-sizing: border-box; }

.reg-page { background: #f9fbf6; }

.reg-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header-center {
  text-align: center;
  margin-bottom: 44px;
}

.reg-section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-dark, #1a2e0a);
  margin: 0 0 10px;
}

.reg-section-sub {
  font-size: 15px;
  color: var(--text-muted, #666);
}

.reg-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 14px;
}


/* =========================
   PAGE HERO
   ========================= */
.reg-hero {
  padding: 80px 20px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.aff-hero {
  background: linear-gradient(135deg, #1e3a0f 0%, #2d5a1b 55%, #4a7c2f 100%);
}

.dealer-hero {
  background: linear-gradient(135deg, #0e1f07 0%, #1a3a10 55%, #2d5a1b 100%);
}

.reg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(122,182,72,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.reg-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.reg-hero-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  font-family: 'Tiro Bangla', serif;
  line-height: 1.2;
}

.reg-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 36px;
  line-height: 1.65;
}

.reg-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 20px 32px;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.rhs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 28px;
}

.rhs-item strong {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.rhs-item span {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.rhs-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.2);
}


/* =========================
   HOW IT WORKS
   ========================= */
.how-it-works-bg {
  padding: 72px 0;
  background: #fff;
}

.hiw-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.hiw-step {
  text-align: center;
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  padding: 28px 20px;
}

.hiw-step-num {
  width: 36px;
  height: 36px;
  background: var(--green, #4a7c2f);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin: 0 auto 14px;
}

.hiw-step-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.hiw-step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark, #1a2e0a);
  margin: 0 0 8px;
}

.hiw-step p {
  font-size: 13.5px;
  color: var(--text-muted, #666);
  line-height: 1.6;
  margin: 0;
}

.hiw-arrow {
  font-size: 24px;
  color: var(--green, #4a7c2f);
  font-weight: 300;
  padding: 0 4px;
  align-self: center;
}

/* Dealer benefits grid */
.dealer-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.db-card {
  background: #f9fbf6;
  border: 1px solid rgba(74, 124, 47, 0.12);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.db-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(74, 124, 47, 0.12);
}

.db-icon { font-size: 38px; margin-bottom: 12px; }

.db-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark, #1a2e0a);
  margin: 0 0 8px;
}

.db-card p {
  font-size: 13.5px;
  color: var(--text-muted, #666);
  line-height: 1.6;
  margin: 0;
}


/* =========================
   COMMISSION / PRICING TABLE
   ========================= */
.commission-bg {
  padding: 72px 0;
  background: #f9fbf6;
}

.comm-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(74, 124, 47, 0.14);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.comm-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 540px;
}

.comm-table thead tr {
  background: var(--green, #4a7c2f);
  color: #fff;
}

.comm-table th {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.comm-table td {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-dark, #1a2e0a);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.comm-table tbody tr:hover { background: rgba(74, 124, 47, 0.03); }
.comm-table tbody tr:last-child td { border-bottom: none; }

.comm-highlight-row { background: rgba(74, 124, 47, 0.05) !important; }

.comm-rate {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.comm-rate.mid  { background: rgba(243,156,18,0.12);  color: #e67e22; }
.comm-rate.high { background: rgba(39,174,96,0.12);   color: #27ae60; }
.comm-rate.best { background: rgba(41,128,185,0.12);  color: #2980b9; }

.comm-note {
  font-size: 13px;
  color: var(--text-muted, #666);
  text-align: center;
  padding: 4px 0;
}


/* =========================
   REGISTRATION FORM
   ========================= */
.reg-form-bg {
  padding: 72px 0;
  background: #fff;
}

.reg-form-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: start;
}

/* Sidebar */
.reg-form-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 90px;
}

.rfs-card {
  background: var(--green, #4a7c2f);
  color: #fff;
  border-radius: 16px;
  padding: 28px 24px;
}

.rfs-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 18px;
}

.rfs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rfs-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}

.rfs-list li span { flex-shrink: 0; }

.rfs-testimony {
  background: #f9fbf6;
  border: 1px solid rgba(74, 124, 47, 0.14);
  border-radius: 14px;
  padding: 22px 20px;
}

.rft-quote {
  font-size: 13.5px;
  color: var(--text-dark, #1a2e0a);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 10px;
}

.rft-author {
  font-size: 12px;
  font-weight: 700;
  color: var(--green, #4a7c2f);
  margin-bottom: 4px;
}

.rft-stars { color: #f39c12; font-size: 14px; }

/* Dealer contact box */
.dealer-contact-box {
  background: #f0f9e8;
  border: 1px solid rgba(74, 124, 47, 0.2);
  border-radius: 14px;
  padding: 22px 20px;
  text-align: center;
}

.dealer-contact-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark, #1a2e0a);
  margin: 0 0 14px;
}

.dealer-wa-btn,
.dealer-call-btn {
  display: block;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  margin-bottom: 10px;
  transition: transform 0.2s, opacity 0.2s;
}

.dealer-wa-btn  { background: #25d366; color: #fff; }
.dealer-call-btn{ background: var(--green, #4a7c2f); color: #fff; margin-bottom: 0; }
.dealer-wa-btn:hover, .dealer-call-btn:hover { transform: translateY(-2px); opacity: 0.9; }


/* Form card */
.reg-form-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.reg-form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark, #1a2e0a);
  margin: 0 0 6px;
}

.reg-form-subtitle {
  font-size: 14px;
  color: var(--text-muted, #888);
  margin: 0 0 28px;
}

.form-section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--green, #4a7c2f);
  background: rgba(74, 124, 47, 0.06);
  border-left: 3px solid var(--green, #4a7c2f);
  padding: 8px 14px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0 16px;
}

.form-section-label:first-of-type { margin-top: 4px; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark, #1a2e0a);
}

.required { color: #e74c3c; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-dark, #1a2e0a);
  background: #fafafa;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  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='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green, #4a7c2f);
  box-shadow: 0 0 0 3px rgba(74, 124, 47, 0.1);
  background: #fff;
}

.form-group input.input-error,
.form-group select.input-error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.08);
}

.field-error {
  font-size: 12px;
  color: #e74c3c;
  display: none;
}

.field-error.show { display: block; }

/* Checkbox group */
.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.form-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--green, #4a7c2f);
  cursor: pointer;
}

.form-checkbox-group label {
  font-size: 13.5px;
  color: var(--text-muted, #555);
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox-group label a {
  color: var(--green, #4a7c2f);
  font-weight: 600;
}

/* Inline checkbox for products */
.checkbox-group-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cb-label {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f5f5f5;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.cb-label:hover { border-color: var(--green, #4a7c2f); background: rgba(74, 124, 47, 0.05); }

.cb-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--green, #4a7c2f);
  cursor: pointer;
}

/* Submit button */
.reg-submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--green, #4a7c2f);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 24px;
  transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(74, 124, 47, 0.35);
}

.reg-submit-btn:hover:not(:disabled) {
  background: #3a6222;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 124, 47, 0.4);
}

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

.dealer-submit { background: linear-gradient(135deg, #1e3a0f, #4a7c2f); }

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

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

.reg-success h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--green, #4a7c2f);
  margin: 0 0 12px;
}

.reg-success p {
  font-size: 15px;
  color: var(--text-muted, #555);
  line-height: 1.7;
  margin: 0 0 24px;
}

.success-next-steps {
  background: #f9fbf6;
  border: 1px solid rgba(74, 124, 47, 0.14);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.sns-item {
  font-size: 14px;
  color: var(--text-dark, #1a2e0a);
}

.sns-item a {
  color: var(--green, #4a7c2f);
  font-weight: 600;
  text-decoration: none;
}


/* =========================
   FAQ
   ========================= */
.reg-faq-bg {
  padding: 72px 0;
  background: #f9fbf6;
}

.reg-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.reg-faq-item {
  background: #fff;
  border: 1px solid rgba(74, 124, 47, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.reg-faq-item summary {
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dark, #1a2e0a);
  cursor: pointer;
  list-style: none;
  position: relative;
}

.reg-faq-item summary::-webkit-details-marker { display: none; }

.reg-faq-item summary::after {
  content: '▼';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--green, #4a7c2f);
  transition: transform 0.3s;
}

.reg-faq-item[open] summary::after { transform: translateY(-50%) rotate(-180deg); }
.reg-faq-item[open] summary { color: var(--green, #4a7c2f); }

.reg-faq-item p {
  padding: 0 20px 16px;
  font-size: 13.5px;
  color: var(--text-muted, #555);
  line-height: 1.7;
  margin: 0;
}


/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1024px) {
  .reg-form-layout {
    grid-template-columns: 1fr;
  }
  .reg-form-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .rfs-card { flex: 1; min-width: 260px; }
  .rfs-testimony { flex: 1; min-width: 240px; }

  .dealer-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .reg-hero { padding: 56px 20px 44px; }

  .reg-hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .rhs-divider { width: 60px; height: 1px; }

  .hiw-arrow { display: none; }

  .hiw-grid {
    flex-direction: column;
    align-items: center;
  }

  .dealer-benefits-grid {
    grid-template-columns: 1fr;
  }

  .form-row-2 { grid-template-columns: 1fr; }

  .reg-faq-grid { grid-template-columns: 1fr; }

  .reg-form-card { padding: 28px 20px; }

  .reg-form-sidebar {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .comm-table th,
  .comm-table td { padding: 10px 12px; font-size: 13px; }

  .checkbox-group-inline { gap: 8px; }

  .cb-label { padding: 7px 10px; font-size: 12px; }
}
