/* ═══════════════════════════════════════════════════════════════════
   Distributor Application — v1.0.2
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --da-green:        #8BC251;
  --da-green-hover:  #5A9225;
  --da-green-light:  #F4FAED;
  --da-navy:         #153065;
  --da-text:         #1F2937;
  --da-muted:        #888888;
  --da-border:       #D9DBDC;
  --da-error:        #FA7E73;
  --da-radius-form:  24px;
  --da-radius-input: 8px;
}

/* ── Wrapper ────────────────────────────────────────────────────── */

body{
  background-color: #114974;
}

.da-wrapper {
  position: relative;
  font-family: inherit;
  color: var(--da-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Step visibility ────────────────────────────────────────────── */

.da-step           { display: none; }
.da-step.is-active { display: block; }


/* ═══════════════════════════════════════════════════════════════════
   WELCOME — full width, two-column
   ═══════════════════════════════════════════════════════════════════ */
.da-welcome{
  background:#FFFFFF;
  border-radius: 24px;
  padding:60px 100px;
}
.da-form-step{
  background:#FFFFFF;
  border-radius: 24px;
  padding:60px 80px;
  max-width: 900px;
  margin:auto;
}
.da-welcome h1{
  font-family: Mikado;
  font-weight: 700;
  font-style: Bold;
  font-size: 48px;
  leading-trim: NONE;
  line-height: 140%;
  letter-spacing: 0%;
  text-align: center;
  color:#004974;
  margin:0px;
}
.da-welcome-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}

.da-welcome-map img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* Right column */
.da-welcome-content {
  display: flex;
  flex-direction: column;
}

.da-welcome-title {
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 800;
  color: var(--da-navy);
  margin: 0 0 20px;
  line-height: 1.15;
}

.da-welcome-text p {
  font-family: Inter;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 150%;
  letter-spacing: 0%;
  color:#434A4F;
}

/* Privacy checkbox */
.da-privacy-label {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--da-border);
  border-radius: var(--da-radius-input);
  padding: 13px 16px;
  cursor: pointer;
  font-family: Inter;
  font-weight: 400;
  font-style: Regular;
  font-size: 14px;
  leading-trim: NONE;
  line-height: 150%;
  letter-spacing: 0%;
  color:#434A4F;
  margin: 20px 0 24px;
  transition: border-color .15s, background .15s;
}

.da-privacy-label:has(input:checked) {
  border-color: var(--da-green);
  background: var(--da-green-light);
}

.da-privacy-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.da-privacy-label a {
  color: #0168A5;
  text-decoration: none;
}

/* Privacy checkbox box */
.da-privacy-label .da-check-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--da-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all .15s;
}

.da-privacy-label:has(input:checked) .da-check-box {
  background: var(--da-green);
  border-color: var(--da-green);
}

.da-privacy-label:has(input:checked) .da-check-box::after {
  content: '';
  display: block;
  width:  5px;
  height: 9px;
  border: 2px solid #fff;
  border-top:  0;
  border-left: 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* NEXT button — wide pill */
.da-welcome-actions {
  display: flex;
}

.da-welcome-next {
  padding: 16px 56px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: 99px;
  background: var(--da-green);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background .15s;
  text-transform: uppercase;
}

.da-welcome-next:hover { background: var(--da-green-hover); }


/* ═══════════════════════════════════════════════════════════════════
   FORM STEPS — max-width 900px
   ═══════════════════════════════════════════════════════════════════ */

/* ── Progress ──────────────────────────────────────────────────── */

.da-progress-wrap {
  margin-bottom: 36px;
}

.da-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: #434A4F;
  margin-bottom: 10px;
}

.da-progress-meta strong {
  font-size: 16px;
  font-weight: 700;
  color: #434A4F;
}

.da-progress-track {
  height: 10px;
  background: #E9EBF0;
  border-radius: 100px;
  overflow: hidden;
}

.da-progress-fill {
  height: 100%;
  background: var(--da-green);
  border-radius: 99px;
  transition: width .4s ease;
}

/* ── Form container card ───────────────────────────────────────── */

/* ── Step header ───────────────────────────────────────────────── */

.da-step-header {
  margin-bottom: 28px;
}

.da-step-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--da-navy);
  margin: 0 0 6px;
  line-height: 1.2;
}

.da-step-header p {
  font-size: 16px;
  color: var(--da-muted);
  margin: 0;
}

/* ── Field layout ──────────────────────────────────────────────── */

.da-fields {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.da-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.da-row {
  display: flex;
  gap: 16px;
}

.da-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* ── Labels & hints ────────────────────────────────────────────── */

.da-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--da-text);
  display: block;
  line-height: 1.4;
}

.da-req  { color: var(--da-error); }

.da-hint {
  font-size: 13px;
  color: var(--da-muted);
  font-style: italic;
  line-height: 1.5;
}

/* ── Inputs ────────────────────────────────────────────────────── */

.da-input,
.da-select,
.da-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  border: 1px solid var(--da-border);
  border-radius: var(--da-radius-input);
  font-size: 14px;
  color: var(--da-text);
  background: #fff;
  font-family: inherit;
  line-height: 1.4;
  transition: border-color .15s;
  appearance: none;
}

.da-input::placeholder,
.da-textarea::placeholder { color: #9CA3AF; }

.da-input:focus,
.da-select:focus,
.da-textarea:focus {
  outline: none;
  border-color: var(--da-green);
  box-shadow: 0 0 0 3px rgba(106, 171, 45, .12);
}

.da-input.da-has-error,
.da-select.da-has-error {
  border-color: var(--da-error);
}

.da-mt { margin-top: 8px; }

.da-textarea {
  resize: vertical;
  min-height: 200px;
}

/* ── Select dropdown ───────────────────────────────────────────── */

.da-select-wrap {
  position: relative;
}

.da-select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--da-muted);
  border-bottom: 2px solid var(--da-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.da-select {
  cursor: pointer;
  padding-right: 40px;
}

/* ── Password requirements ─────────────────────────────────────── */

.da-password-reqs {
  background: #EFF6FF;
  border-radius: var(--da-radius-input);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--da-text);
  margin-top: 4px;
}

.da-password-reqs strong {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.da-password-reqs ul {
  margin: 0;
  padding-left: 18px;
}

.da-password-reqs li {
  margin-bottom: 3px;
  color: var(--da-text);
}

/* ═══════════════════════════════════════════════════════════════════
   RADIO & CHECKBOX OPTIONS
   ═══════════════════════════════════════════════════════════════════ */

/* Grid containers */
.da-radio-group {
  display: grid;
  gap: 10px;
}

.da-cols-2 { grid-template-columns: repeat(2, 1fr); }
.da-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Stack container for checkboxes */
.da-check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Group error highlight */
.da-radio-group.da-group-error,
.da-check-group.da-group-error {
  outline: 1.5px solid var(--da-error);
  outline-offset: 4px;
  border-radius: var(--da-radius-input);
}

/* Shared option pill */
.da-option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1.5px solid var(--da-border);
  border-radius: var(--da-radius-input);
  cursor: pointer;
  font-size: 14px;
  color: var(--da-text);
  background: #fff;
  user-select: none;
  transition: border-color .15s, background .15s;
  line-height: 1.4;
}

.da-option-label:hover {
  border-color: #9CA3AF;
}

.da-option-label.is-selected {
  border-color: var(--da-green);
  background: var(--da-green-light);
}

/* Hide native inputs */
.da-option-label input[type="radio"],
.da-option-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ── Radio circle ──────────────────────────────────────────────── */

.da-radio-dot {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #D1D5DB;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: border-color .15s;
}

.da-option-label.is-selected .da-radio-dot {
  border-color: var(--da-green);
}

.da-option-label.is-selected .da-radio-dot::after {
  content: '';
  display: block;
  width:  10px;
  height: 10px;
  background: var(--da-green);
  border-radius: 50%;
}

/* ── Checkbox square ───────────────────────────────────────────── */

.da-check-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #D1D5DB;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all .15s;
}

.da-option-label.is-selected .da-check-box {
  background: var(--da-green);
  border-color: var(--da-green);
}

.da-option-label.is-selected .da-check-box::after {
  content: '';
  display: block;
  width:  5px;
  height: 9px;
  border: 2px solid #fff;
  border-top:  0;
  border-left: 0;
  transform: rotate(45deg) translate(-1px, -1px);
}


/* ═══════════════════════════════════════════════════════════════════
   SOCIAL MEDIA INPUTS
   ═══════════════════════════════════════════════════════════════════ */

.da-social-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.da-social-row {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--da-border);
  border-radius: var(--da-radius-input);
  overflow: hidden;
  background: #fff;
  transition: border-color .15s;
}

.da-social-row:focus-within {
  border-color: var(--da-green);
  box-shadow: 0 0 0 3px rgba(106, 171, 45, .12);
}

.da-social-icon {
  flex-shrink: 0;
  width: 50px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F9FAFB;
  border-right: 1.5px solid var(--da-border);
}

.da-social-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Input inside social row */
.da-social-row .da-input {
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
  flex: 1;
  min-width: 0;
  padding-left: 14px;
}

/* "Other link" — no icon, full-width input */
.da-no-icon .da-input {
  padding-left: 16px;
}


/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION BAR
   ═══════════════════════════════════════════════════════════════════ */

.da-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--da-border);
}

/* When no back button (Step 2) */
.da-nav-end {
  justify-content: flex-end;
}

/* ── Buttons ───────────────────────────────────────────────────── */

.da-btn-primary,
.da-btn-outline,
.da-btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
  min-width: 270px;
  font-family: Mikado;
  font-weight: 700;
  font-style: Bold;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 24px;
  letter-spacing: 2%;
  text-transform: uppercase;
  min-height: 56px;
}

.da-btn-primary {
  background: var(--da-green);
  color: #fff;
  border-color: var(--da-green);
}

.da-btn-primary:hover {
  background: var(--da-green-hover);
  border-color: var(--da-green-hover);
  color: #fff;
}

.da-btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.da-btn-outline {
  background: #fff;
  color: #A1A4A7;
  border-color: #D9DBDC;
}

.da-btn-outline:hover {
  border-color: #9CA3AF;
  color: var(--da-text);
}

.da-btn-navy {
  background: var(--da-navy);
  color: #fff;
  border-color: var(--da-navy);
}

.da-btn-navy:hover {
  opacity: .88;
  color: #fff;
}

.da-btn-sm {
  padding: 11px 26px;
  font-size: 12px;
}


/* ═══════════════════════════════════════════════════════════════════
   ERROR BOX
   ═══════════════════════════════════════════════════════════════════ */

.da-error-box {
  max-width: 100%;
  margin: 0 auto 16px;
  padding: 13px 18px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--da-radius-input);
  color: #991B1B;
  font-size: 13px;
}

.da-error-box p { margin: 0; }


/* ═══════════════════════════════════════════════════════════════════
   LOADING OVERLAY
   ═══════════════════════════════════════════════════════════════════ */

.da-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, .78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.da-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--da-border);
  border-top-color: var(--da-green);
  border-radius: 50%;
  animation: da-spin .8s linear infinite;
}

@keyframes da-spin { to { transform: rotate(360deg); } }


/* ═══════════════════════════════════════════════════════════════════
   CONFIRMATION
   ═══════════════════════════════════════════════════════════════════ */

.da-confirmation {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.da-confirm-layout {
  display: flex;
  align-items: flex-start;
  gap: 52px;
  padding: 55px 74px;
  background:#EBF7FD;
  border-radius: 24px;
}
.da-confirm-bottom-info{
  padding: 56px 80px;
}

.da-confirm-content {
  flex: 1;
  min-width: 0;
}
.da-confirm-image-wave{
  margin-top:-5px;
}
.da-confirm-content > h2 {
  font-weight: 700;
  font-style: Bold;
  font-size: 32px;
  leading-trim: NONE;
  line-height: 120%;
  letter-spacing: 0%;
  color:#004974;
}

.da-confirm-content > p {
  font-family: Inter;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 150%;
  letter-spacing: 0%;
  color:#555666;
}

.da-confirm-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 0px;
  margin-top:28px;
}
.da-confirm-actions a.da-btn-primary, .da-confirm-actions a{
  min-width: auto;
  width:100%;
}
/* Urgent notice */
.da-confirm-urgent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #FEF9EC;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}


.da-confirm-urgent p {
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 150%;
  letter-spacing: 0%;
  color:#555666;
}
.da-confirm-urgent p strong{
  color:#434A4F
}

/* WhatsApp card */
.da-confirm-whatsapp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #F4FAED;
  border-radius: 16px;
  padding: 20px 24px;
}

.da-confirm-whatsapp > div > h3 {
  font-family: Mikado;
  font-weight: 700;
  font-style: Bold;
  font-size: 20px;
  leading-trim: NONE;
  line-height: 150%;
  letter-spacing: -0.6px;
  vertical-align: middle;
  color:#004974;
}
.da-confirm-whatsapp .da-btn-primary{
  min-width: auto;
  font-family: Mikado;
  font-weight: 700;
  font-style: Bold;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 24px;
  letter-spacing: 2%;
  text-transform: uppercase;
  color:#FFFFFF;
}

.da-confirm-whatsapp > div > p {
  font-family: Inter;
  font-weight: 400;
  font-style: Regular;
  font-size: 14px;
  leading-trim: NONE;
  line-height: 20px;
  letter-spacing: 0%;
  vertical-align: middle;
  color:#434A4F;
  margin-top:10px;
}

/* Right image */
.da-confirm-image {
  flex: 0 0 260px;
  max-width: 260px;
}

.da-confirm-image img {
  width: 100%;
  height: auto;
  display: block;
}


/* ═══════════════════════════════════════════════════════════════════
   DEBUG MODE
   ═══════════════════════════════════════════════════════════════════ */

.da-debug {
  font-family: monospace;
  background: #F9FAFB;
  border: 1px solid var(--da-border);
  border-radius: var(--da-radius-input);
  padding: 24px;
}

.da-debug h3     { margin-top: 0; color: var(--da-navy); }
.da-debug table  { width: 100%; border-collapse: collapse; font-size: 13px; }
.da-debug th,
.da-debug td     { text-align: left; padding: 8px 10px; border: 1px solid var(--da-border); }
.da-debug th     { background: #F1F5F9; font-weight: 600; }


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .da-welcome {
    padding: 48px 48px;
  }
  .da-form-step {
    padding: 48px 40px;
  }
  .da-confirm-layout {
    padding: 40px 48px;
  }
  .da-confirm-bottom-info {
    padding: 40px 48px;
  }
}

@media (max-width: 768px) {
  /* Welcome */
  .da-welcome {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .da-welcome h1 {
    font-size: 28px;
  }
  .da-welcome-layout {
    grid-template-columns: 1fr;
    padding: 24px 0 32px;
    gap: 24px;
  }

  /* Form steps — reset inner padding, parent handles spacing */
  .da-form-step {
    padding: 28px 20px 36px;
    border-radius: 16px;
  }
  .da-step-inner {
    padding: 0;
  }

  /* Step heading */
  .da-step-header h2 {
    font-size: 24px;
  }

  /* Rows collapse */
  .da-row {
    flex-direction: column;
  }

  /* Radio grids collapse */
  .da-cols-2,
  .da-cols-3 {
    grid-template-columns: 1fr;
  }

  /* Navigation — stack buttons vertically, primary action on top */
  .da-nav {
    flex-direction: column-reverse;
    gap: 12px;
    padding-top: 28px;
    margin-top: 28px;
  }
  .da-nav-end {
    align-items: stretch;
  }

  /* All buttons go full width on mobile */
  .da-btn-primary,
  .da-btn-outline,
  .da-btn-navy {
    min-width: 0;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Confirmation */
  .da-confirmation {
    padding: 0;
  }
  .da-confirm-layout {
    flex-direction: column;
    padding: 28px 20px;
  }
  .da-confirm-bottom-info {
    padding: 28px 20px;
  }
  .da-confirm-actions {
    flex-direction: column;
  }
  .da-confirm-image {
    flex: unset;
    max-width: 70%;
    margin: 0 auto;
  }
  .da-confirm-whatsapp {
    flex-direction: column;
    align-items: flex-start;
  }
  .da-confirm-whatsapp .da-btn-primary {
    width: 100%;
    justify-content: center;
  }
  .da-confirm-content > h2 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .da-welcome h1 {
    font-size: 22px;
  }

  .da-btn-primary,
  .da-btn-outline {
    padding: 13px 28px;
  }
}
