/* =========================================================
   Car Hire & Leasing Affiliate Join Form – hla- namespace
   Palette: #172a74 / #21a9af / #10b981
   ========================================================= */

/* ---- Base ---- */
.hla-page {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #1f2937;
  min-height: 100vh;
}

/* ---- Hero ---- */
.hla-hero {
  background: linear-gradient(135deg, #172a74 0%, #1a3580 40%, #21a9af 100%);
  color: #fff;
  padding: 64px 0 100px;
  position: relative;
  overflow: hidden;
}

.hla-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(33,169,175,0.18) 0%, transparent 60%);
}

.hla-hero-content { position: relative; z-index: 2; }

.hla-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,0.2);
  border: 1px solid rgba(16,185,129,0.4);
  color: #a7f3d0;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hla-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
}

.hla-hero h1 span { color: #67e8f9; }

.hla-hero p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 560px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hla-hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hla-hero-stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: #a5f3fc; }
.hla-hero-stat span { font-size: 0.78rem; opacity: 0.8; }

/* ---- Main Layout ---- */
.hla-main {
  position: relative;
  margin-top: -64px;
  padding-bottom: 72px;
  z-index: 10;
}

.hla-layout {
  display: grid;
  grid-template-columns: minmax(0, 70%) minmax(280px, 30%);
  gap: 28px;
  align-items: start;
}

/* ---- Wizard Card ---- */
.hla-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

/* ---- Progress Bar ---- */
.hla-progress {
  padding: 24px 32px 0;
  background: #fff;
}

.hla-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hla-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}

.hla-step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 60%;
  right: -40%;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
  transition: background 0.3s;
}

.hla-step-item.completed:not(:last-child)::after { background: #10b981; }

.hla-step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6b7280;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.hla-step-item.active .hla-step-dot {
  background: #172a74;
  border-color: #172a74;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(23,42,116,0.15);
}

.hla-step-item.completed .hla-step-dot {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.hla-step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
  text-align: center;
  white-space: nowrap;
}

.hla-step-item.active .hla-step-label { color: #172a74; }
.hla-step-item.completed .hla-step-label { color: #10b981; }

.hla-progress-bar-track {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin: 10px 0 0;
  overflow: hidden;
}

.hla-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #172a74, #21a9af);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Form Panels ---- */
.hla-form-body { padding: 32px; }

.hla-step-panel { display: none; }
.hla-step-panel.active { display: block; }

/* Single-flow mode: keep all sections visible in one scroll */
#hlaStep1,
#hlaStep2,
#hlaStep3,
#hlaStep4 {
  display: block;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid #eef2f7;
}

#hlaStep4 {
  border-bottom: none;
  margin-bottom: 8px;
  padding-bottom: 0;
}

.hla-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.hla-step-subtitle {
  font-size: 0.88rem;
  color: #6b7280;
  margin-bottom: 28px;
}

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

.hla-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.hla-req { color: #ef4444; margin-left: 2px; }

.hla-input,
.hla-select {
  width: 100%;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 0.9rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.hla-input:focus,
.hla-select:focus {
  outline: none;
  border-color: #21a9af;
  box-shadow: 0 0 0 3px rgba(33,169,175,0.12);
}

.hla-input.error { border-color: #ef4444; }
.hla-input.valid { border-color: #10b981; }

.hla-input-hint {
  font-size: 0.76rem;
  color: #9ca3af;
  margin-top: 4px;
}

.hla-field-error {
  font-size: 0.76rem;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}

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

/* ---- Promotion Channel Chips ---- */
.hla-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.hla-channel-chip {
  position: relative;
}

.hla-channel-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.hla-channel-chip label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 500;
  color: #374151;
  background: #f9fafb;
  transition: all 0.2s;
  user-select: none;
}

.hla-channel-chip label i { font-size: 1rem; color: #9ca3af; }

.hla-channel-chip input:checked + label {
  border-color: #172a74;
  background: #eff6ff;
  color: #172a74;
}

.hla-channel-chip input:checked + label i { color: #172a74; }

.hla-channel-chip label:hover { border-color: #93c5fd; background: #f0f9ff; }

/* ---- Payment Method Toggle ---- */
.hla-pay-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hla-pay-option {
  position: relative;
  flex: 1;
  min-width: 100px;
}

.hla-pay-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.hla-pay-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  background: #f9fafb;
  transition: all 0.2s;
  text-align: center;
}

.hla-pay-option label i { font-size: 1.3rem; color: #9ca3af; }

.hla-pay-option input:checked + label {
  border-color: #172a74;
  background: #eff6ff;
  color: #172a74;
}

.hla-pay-option input:checked + label i { color: #172a74; }

.hla-pay-option label:hover { border-color: #93c5fd; }

/* ---- Checkboxes ---- */
.hla-check-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 12px;
}

.hla-check-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #172a74;
}

.hla-check-group label {
  font-size: 0.84rem;
  color: #374151;
  line-height: 1.5;
  cursor: pointer;
  margin: 0;
}

.hla-check-group label a { color: #172a74; font-weight: 600; }
.hla-check-group label a:hover { color: #21a9af; }

/* ---- Password strength ---- */
.hla-pw-strength { margin-top: 6px; }

.hla-pw-bars {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.hla-pw-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e5e7eb;
  transition: background 0.3s;
}

.hla-pw-bar.weak { background: #ef4444; }
.hla-pw-bar.fair { background: #f59e0b; }
.hla-pw-bar.good { background: #10b981; }
.hla-pw-bar.strong { background: #059669; }

.hla-pw-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

/* ---- Navigation Buttons ---- */
.hla-form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px 28px;
  gap: 12px;
}

.hla-btn-back {
  background: transparent;
  color: #6b7280;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  padding: 11px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.hla-btn-back:hover { border-color: #9ca3af; color: #374151; }

.hla-btn-next,
.hla-btn-submit {
  background: linear-gradient(135deg, #172a74, #21a9af);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 32px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(23,42,116,0.25);
}

.hla-btn-next:hover,
.hla-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23,42,116,0.35);
}

.hla-btn-submit {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}

.hla-btn-submit:hover { box-shadow: 0 8px 24px rgba(16,185,129,0.4); }

.hla-btn-skip {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
}

.hla-btn-skip:hover { color: #6b7280; }

/* ---- Alert / Error ---- */
.hla-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hla-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.hla-alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

/* ---- Success Screen ---- */
.hla-success {
  display: none;
  padding: 48px 32px;
  text-align: center;
}

.hla-success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 3px solid #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #10b981;
  margin: 0 auto 24px;
}

.hla-success h2 { font-size: 1.6rem; font-weight: 800; color: #111827; margin-bottom: 10px; }
.hla-success p { color: #6b7280; font-size: 0.95rem; max-width: 400px; margin: 0 auto 10px; }

.hla-code-box {
  background: #f8fafc;
  border: 2px dashed #21a9af;
  border-radius: 12px;
  padding: 16px 24px;
  margin: 20px auto;
  max-width: 320px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #172a74;
  font-family: 'Courier New', monospace;
}

.hla-code-box small {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0;
  font-weight: 400;
  color: #6b7280;
  font-family: inherit;
  margin-bottom: 4px;
}

/* ---- Sidebar ---- */
.hla-sidebar { position: sticky; top: 96px; }

.hla-sidebar-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  padding: 24px;
  margin-bottom: 20px;
}

.hla-sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 16px;
}

/* Benefits list */
.hla-benefits { list-style: none; padding: 0; margin: 0; }

.hla-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.hla-benefit:last-child { border-bottom: none; }

.hla-benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.hla-benefit-text strong { display: block; font-size: 0.88rem; font-weight: 700; color: #111827; }
.hla-benefit-text span { font-size: 0.78rem; color: #6b7280; }

/* Trust badges */
.hla-badges { display: flex; flex-direction: column; gap: 10px; }

.hla-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.hla-badge i { color: #10b981; font-size: 1rem; }
.hla-badge span { font-size: 0.82rem; font-weight: 600; color: #374151; }

/* Upsell card */
.hla-upsell {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  border-radius: 18px;
  padding: 24px;
  color: #fff;
  text-align: center;
}

.hla-upsell h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.hla-upsell p { font-size: 0.82rem; opacity: 0.9; margin-bottom: 14px; line-height: 1.5; }

.hla-upsell-btn {
  background: #fff;
  color: #4f46e5;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.hla-upsell-btn:hover { background: #f5f3ff; text-decoration: none; color: #4f46e5; transform: translateY(-1px); }

/* Upsell perks list */
.hla-upsell-perks { list-style: none; padding: 0; margin: 0 0 14px; text-align: left; }
.hla-upsell-perks li { font-size: 0.82rem; padding: 4px 0; opacity: 0.9; display: flex; align-items: center; gap: 6px; }
.hla-upsell-perks li i { color: #c4b5fd; font-size: 0.7rem; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .hla-layout { grid-template-columns: 1fr; }
  .hla-sidebar { position: static; }
  .hla-hero h1 { font-size: 1.8rem; }
  .hla-hero { padding: 48px 0 88px; }
}

@media (max-width: 767px) {
  .hla-form-body,
  .hla-form-nav { padding: 20px; }
  .hla-progress { padding: 20px 20px 0; }
  .hla-row { grid-template-columns: 1fr; }
  .hla-channels-grid { grid-template-columns: 1fr 1fr; }
  .hla-steps { gap: 4px; }
  .hla-step-label { display: none; }
  .hla-hero h1 { font-size: 1.5rem; }
  .hla-hero-stats { gap: 20px; }
}
