/* --- Global Variables (Same as previous page for consistency) --- */
:root {
  --primary: #007bff; /* Deep Blue */
  --accent: #00cc99; /* Bright Teal/Green */
  --white: #ffffff;
  --dark-blue: #0f172a; /* Confirmed: DARK BACKGROUND */
  --text-dark: #1a2434;
  --text-light: #94a3b8;
  --light-bg: #f8fcfd;
}
/* Base styles for sections */
.distributor-section {
  padding: 6rem 5%;
  overflow: hidden;
}

/* Common Header Styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-dark);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.05);
}
.section-header p {
  font-size: 1.2rem;
  color: #64748b;
  margin-top: 0.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Custom Buttons (From previous design) */
.btn-primary,
.btn-secondary {
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
  font-size: 1.05rem;
  display: inline-block;
}
.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
  border: none;
}
.btn-primary:hover {
  background-color: var(--accent);
  box-shadow: 0 8px 25px rgba(0, 204, 153, 0.4);
  color: var(--text-dark);
  transform: translateY(-2px);
}
.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ------------------------------------------- */
/* --- 1. HERO SECTION (Dark Background) --- */
/* ------------------------------------------- */
.distributor-hero-section {
  background: linear-gradient(
    135deg,
    var(--dark-blue) 0%,
    #001f40 100%
  ); /* Deep Dark Gradient */
  color: var(--white);
  padding: 8rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.distributor-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="10" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 50px 50px;
  opacity: 0.5;
}
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--accent);
  text-transform: uppercase;
}
.hero-content p {
  font-size: 1.5rem;
  color: #e2e8f0;
  margin-bottom: 3rem;
  font-weight: 300;
}
.hero-image-placeholder {
  width: 100%;
  max-width: 600px;
  height: 300px;
  margin: 3rem auto 0;
  background: url("https://dummyimage.com/600x300/007bff/fff&text=Global+Distribution+Network")
    no-repeat center center;
  background-size: cover;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  border: 5px solid var(--accent);
}

/* ------------------------------------------- */
/* --- 2. PARTNERSHIP BENEFITS GRID --- */
/* ------------------------------------------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}
.benefit-card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--primary);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}
.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
.benefit-card i {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
  background: #e6fffb;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  line-height: 80px;
  margin: 0 auto 1rem;
}
.benefit-card h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ------------------------------------------- */
/* --- 3. APPLICATION PROCESS STEPS --- */
/* ------------------------------------------- */
.process-section {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 6rem 5%;
}
.process-section .section-header h2 {
  color: var(--white);
}
.process-section .section-header p {
  color: var(--text-light);
}
.step-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  max-width: 1200px;
  margin: 4rem auto 0;
}
.step-timeline::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 5%;
  right: 5%;
  height: 4px;
  background-color: var(--primary);
  z-index: 1;
}
.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 20px;
}
.step-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent);
  color: var(--dark-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.5rem;
  font-weight: 700;
  border: 5px solid var(--dark-blue);
  position: relative;
  z-index: 2;
  transition: background-color 0.3s;
}
.timeline-step:hover .step-icon {
  background-color: var(--primary);
  color: var(--white);
}
.timeline-step h4 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: var(--accent);
}
.timeline-step p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ------------------------------------------- */
/* --- 4. DISTRIBUTOR APPLICATION FORM CTA --- */
/* ------------------------------------------- */
.application-form-section {
  background: var(--light-bg);
  padding-bottom: 8rem;
}
.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e7ff;
}
.form-container h3 {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 15px;
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1rem;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}
.form-submit-btn {
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ------------------------------------------- */
/* --- RESPONSIVENESS --- */
/* ------------------------------------------- */
@media (max-width: 992px) {
  .distributor-hero-section {
    padding: 6rem 5%;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .step-timeline {
    flex-direction: column;
    align-items: center;
  }
  .step-timeline::before {
    height: 80%;
    width: 4px;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
  }
  .timeline-step {
    width: 100%;
    padding: 30px 0;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .timeline-step:last-child {
    border-bottom: none;
  }
  .step-icon {
    float: left;
    margin-right: 20px;
  }
  .timeline-step p {
    margin-left: 80px;
  }
}

@media (max-width: 600px) {
  .section-header h2 {
    font-size: 2rem;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .step-icon {
    float: none;
    margin: 0 auto 10px;
  }
  .timeline-step {
    text-align: center;
  }
  .timeline-step p {
    margin-left: 0;
  }
}
