/* =============================================
   Distributor Program Page
   ============================================= */

:root {
  --dp-red: #FF2400;
  --dp-red-hover: #E62000;
  --dp-dark: #0A0A0A;
  --dp-white: #FFFFFF;
  --dp-gray-bg: #F5F5F5;
  --dp-gray-border: #E5E5E5;
  --dp-gray-light: #999;
  --dp-text: #222;
  --dp-text-light: #555;
  --dp-container: 1200px;
  --dp-font: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Remove site-wide mascot watermark overlay on this page */
body:has(.distributor-program-page)::before {
  display: none !important;
}

.distributor-program-page {
  font-family: var(--dp-font);
  color: var(--dp-text);
  line-height: 1.6;
  background: var(--dp-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* -- CONTAINER -- */
.dp-container {
  max-width: var(--dp-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* -- HERO -- */
.dp-hero {
  padding: 48px 0 44px;
  position: relative;
  max-width: 1250px;
  margin: 0 auto;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.dp-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.78);
  z-index: 1;
}

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

.dp-hero-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0A0A0A;
  margin-bottom: 12px;
}

.dp-hero-headline {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--dp-text);
}

.dp-accent {
  color: var(--dp-red);
}

.dp-hero-sub {
  font-size: 19px;
  color: #0A0A0A;
  margin-bottom: 14px;
  line-height: 1.6;
  max-width: 720px;
}

.dp-hero-body {
  font-size: 16px;
  color: #333;
  margin-bottom: 26px;
  line-height: 1.7;
  max-width: 720px;
}

.dp-hero-cta {
  display: inline-block;
  background: var(--dp-red);
  color: var(--dp-white) !important;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.dp-hero-cta:hover {
  background: var(--dp-red-hover);
  transform: translateY(-1px);
}

.dp-hero-cta-note {
  display: inline-block;
  margin-left: 16px;
  font-size: 14px;
  color: var(--dp-text-light);
}

/* -- SECTIONS -- */
.dp-section {
  padding: 48px 0 8px;
}

/* -- HOW IT WORKS -- */
.dp-steps-heading {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dp-text);
}

.dp-steps-sub {
  font-size: 16px;
  color: var(--dp-text-light);
  margin-bottom: 28px;
}

.dp-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.dp-step-card {
  background: var(--dp-white);
  border: 1px solid var(--dp-gray-border);
  border-radius: 10px;
  padding: 20px;
}

.dp-step-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 16px;
}

.dp-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.dp-step-number {
  min-width: 32px;
  height: 32px;
  background: var(--dp-red);
  color: var(--dp-white);
  font-weight: 700;
  font-size: 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dp-step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dp-text);
}

.dp-step-desc {
  font-size: 14px;
  color: var(--dp-text-light);
}

/* -- BY THE NUMBERS (matches realtor rw-stats-grid) -- */
.dp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dp-stat-card {
  text-align: left;
  padding: 24px 20px;
  background: var(--dp-white);
  border: 1px solid var(--dp-gray-border);
  border-radius: 10px;
  border-top: 3px solid var(--dp-red);
}

.dp-stat-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--dp-red);
  line-height: 1;
  margin-bottom: 10px;
}

.dp-stat-label {
  font-size: 14px;
  color: var(--dp-text);
  font-weight: 700;
}

.dp-stat-sublabel {
  font-size: 12px;
  color: var(--dp-gray-light);
}

/* -- FORM SECTION -- */
.dp-form-section {
  padding: 48px 0;
}

/* Keep every form element (100%-width inputs included) inside the card */
.dp-form-container,
.dp-form-container * {
  box-sizing: border-box;
}

.dp-form-container {
  background: var(--dp-white);
  border: 1px solid var(--dp-gray-border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.dp-form-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dp-text);
}

.dp-form-subtitle {
  font-size: 15px;
  color: var(--dp-text-light);
  margin-bottom: 24px;
  max-width: 760px;
}

/* -- PROGRESS BAR -- */
.dp-progress-wrap {
  margin-bottom: 28px;
}

.dp-progress-text {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--dp-text);
  margin-bottom: 6px;
}

.dp-progress-track {
  height: 8px;
  background: var(--dp-gray-border);
  border-radius: 99px;
  overflow: hidden;
}

.dp-progress-bar {
  height: 100%;
  background: var(--dp-red);
  border-radius: 99px;
  transition: width .35s ease;
}

/* -- FORM STEPS -- */
.dp-form-step {
  display: none;
}

.dp-form-step.dp-step-active {
  display: block;
  animation: dp-step-in .3s ease;
}

@keyframes dp-step-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* -- FORM FIELDS -- */
.dp-form-row {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.dp-form-row-2 {
  grid-template-columns: repeat(2, 1fr);
}

.dp-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.dp-form-row .dp-form-group {
  margin-bottom: 0;
}

.dp-form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dp-text);
  margin-bottom: 8px;
}

.dp-optional {
  color: var(--dp-gray-light);
  font-weight: 400;
}

.dp-form-input,
.dp-form-select,
.dp-form-textarea {
  font-family: var(--dp-font);
  font-size: 14px;
  color: var(--dp-text);
  background: var(--dp-white);
  border: 1px solid #CCC;
  border-radius: 6px;
  padding: 10px 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
  max-width: 100%;
}

/* Custom dropdown chevron with comfortable spacing */
.dp-form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 42px;
}

.dp-form-select::-ms-expand {
  display: none;
}

.dp-form-input:focus,
.dp-form-select:focus,
.dp-form-textarea:focus {
  outline: none;
  border-color: var(--dp-red);
  box-shadow: 0 0 0 3px rgba(255, 36, 0, 0.1);
}

.dp-form-input.dp-invalid,
.dp-form-select.dp-invalid,
.dp-checkbox-grid.dp-invalid,
.dp-checkbox-list.dp-invalid {
  border-color: var(--dp-red);
  box-shadow: 0 0 0 3px rgba(255, 36, 0, 0.12);
}

/* Individual required checkboxes (consent boxes) */
.dp-checkbox-item.dp-invalid {
  outline: 2px solid var(--dp-red);
  outline-offset: 4px;
  border-radius: 4px;
  color: var(--dp-red);
}

.dp-form-textarea {
  resize: vertical;
}

/* -- CHECKBOXES -- */
.dp-checkbox-grid,
.dp-checkbox-list {
  border: 1px solid var(--dp-gray-border);
  border-radius: 6px;
  padding: 14px;
}

.dp-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 12px;
}

.dp-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dp-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--dp-text);
  cursor: pointer;
  line-height: 1.45;
}

.dp-checkbox-item input[type="checkbox"] {
  accent-color: var(--dp-red);
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin-top: 2px;
  cursor: pointer;
}

/* -- CONSENT -- */
.dp-consent-intro {
  font-size: 13px;
  color: var(--dp-text-light);
  margin: 18px 0 8px;
}

.dp-consent-item {
  font-size: 14px;
}

.dp-privacy-note {
  font-size: 13px;
  color: var(--dp-gray-light);
  margin-top: 14px;
}

.dp-privacy-note a {
  color: var(--dp-red);
}

/* -- HONEYPOT -- */
.dp-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -- ERRORS -- */
.dp-form-error {
  display: none;
  color: var(--dp-red);
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0 0;
}

.dp-form-error.dp-show {
  display: block;
}

/* -- NAV BUTTONS -- */
.dp-form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  gap: 14px;
}

.dp-nav-btn {
  font-family: var(--dp-font);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background .2s ease;
  background: var(--dp-dark);
  color: var(--dp-white);
}

.dp-nav-btn:hover {
  background: #333;
}

.dp-submit-btn {
  font-family: var(--dp-font);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: var(--dp-red);
  color: var(--dp-white);
  transition: background .2s ease;
  margin-left: auto;
}

.dp-submit-btn:hover {
  background: var(--dp-red-hover);
}

.dp-submit-btn:disabled,
.dp-nav-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* -- SUCCESS PANEL -- */
.dp-form-success {
  display: none;
  text-align: center;
  padding: 48px 20px;
}

.dp-form-success.dp-show {
  display: block;
  animation: dp-step-in .3s ease;
}

.dp-success-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--dp-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dp-success-check svg {
  width: 32px;
  height: 32px;
  stroke: var(--dp-white);
}

.dp-success-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--dp-text);
}

.dp-success-text {
  font-size: 15px;
  color: var(--dp-text-light);
}

/* -- FAQ -- */
.dp-faq-section {
  padding: 24px 0 64px;
}

.dp-faq-heading {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--dp-text);
}

.dp-faq-item {
  border-bottom: 1px solid var(--dp-gray-border);
}

.dp-faq-item:first-of-type {
  border-top: 1px solid var(--dp-gray-border);
}

.dp-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  font-family: var(--dp-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--dp-text);
  text-align: left;
  padding: 20px 4px;
  cursor: pointer;
}

.dp-faq-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  transition: transform .25s ease;
}

.dp-faq-item.dp-open .dp-faq-icon {
  transform: rotate(45deg);
}

.dp-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.dp-faq-answer-inner {
  padding: 0 4px 20px;
  font-size: 15px;
  color: var(--dp-text-light);
  max-width: 900px;
}

/* -- SCROLL ANIMATIONS -- */
.dp-fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}

.dp-fade-up.dp-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .dp-fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* -- RESPONSIVE -- */
@media (max-width: 1024px) {
  .dp-steps-grid,
  .dp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dp-checkbox-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .dp-hero-headline {
    font-size: 34px;
  }

  .dp-hero-cta-note {
    display: block;
    margin: 12px 0 0;
  }

  .dp-steps-grid,
  .dp-stats-grid,
  .dp-form-row-2 {
    grid-template-columns: 1fr;
  }

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

  .dp-form-container {
    padding: 24px 18px;
  }

  .dp-steps-heading,
  .dp-faq-heading {
    font-size: 26px;
  }
}
