/* =====================================================
   Partnerships Page Styles
   Following PMhelp design system

   Color Palette:
   - #3A0D4B - Dark purple (Why Partner section)
   - #790092 - Medium purple (Donate section)
   - #2C003C - Very dark purple (Brands section)
   - #de5af9 - Pink accent (borders, highlights)
   - #5d007f - Deep purple (gradient start)
   - #9e2ff4 - Violet (gradient mid)
   - #f8f8f8 - Light gray background
   ===================================================== */

/* ===================
   Full-Width Section Styling
   Parent .home-page-update is flex with align-items: center
   All sections need width: 100% to span full viewport
   =================== */
.partnerships-hero,
.partnerships-why-section,
.partnerships-pathway-section,
.partnerships-brands-section,
.partnerships-impact-section,
.partnerships-donate-section {
  width: 100%;
  box-sizing: border-box;
}

/* ===================
   Hero Section
   =================== */
.partnerships-hero {
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
}

.partnerships-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.partnerships-hero-title {
  font-size: 48px;
  font-weight: 900;
  color: #2C003C;
  margin-bottom: 24px;
  line-height: 1.2;
  font-family: Satoshi, sans-serif;
}

.partnerships-hero-subtitle {
  font-size: 16px;
  color: #636b75;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.partnerships-hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===================
   Buttons
   =================== */
.partnerships-btn-primary {
  padding: 14px 32px;
  background: linear-gradient(123.77deg, #5d007f 10%, #9e2ff4 56%, #de5af9 100%);
  color: white;
  border-radius: 72px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: Satoshi, sans-serif;
  box-shadow: 0 2px #8520da;
}

.partnerships-btn-primary:hover {
  background: linear-gradient(123.77deg, #6d0090 10%, #ae3fff 56%, #e87aff 100%);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(133, 32, 218, 0.4);
}

.partnerships-btn-secondary {
  padding: 12px 28px;
  background: linear-gradient(123.77deg, #5d007f 10%, #9e2ff4 56%, #de5af9 100%);
  color: white;
  border-radius: 72px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: Satoshi, sans-serif;
  box-shadow: 0 2px #8520da;
}

.partnerships-btn-secondary:hover {
  background: linear-gradient(123.77deg, #6d0090 10%, #ae3fff 56%, #e87aff 100%);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(133, 32, 218, 0.35);
}

.partnerships-btn-white {
  padding: 14px 32px;
  background: #ffffff;
  color: #5d007f;
  border-radius: 72px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: Satoshi, sans-serif;
  box-shadow: 0 2px rgba(0, 0, 0, 0.1);
}

.partnerships-btn-white:hover {
  background: #f3e8ff;
  color: #5d007f;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ===================
   Section Title
   =================== */
.partnerships-section-title {
  font-size: 32px;
  font-weight: 700;
  color: #2C003C;
  margin-bottom: 24px;
  font-family: Satoshi, sans-serif;
}

/* ===================
   Why Partner Section
   =================== */
.partnerships-why-section {
  padding: 80px 24px;
  background: #3A0D4B;
  border-top: 3px solid #de5af9;
}

.partnerships-why-section .partnerships-section-title {
  color: #ffffff;
  text-align: center;
  margin-bottom: 48px;
}

.partnerships-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 64px;
  max-width: 900px;
  margin: 0 auto;
}

.partnerships-why-card {
  padding: 8px 0;
}

.partnerships-why-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  font-family: Satoshi, sans-serif;
}

.partnerships-why-card-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.partnerships-why-card-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.partnerships-why-card-list li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  padding: 4px 0 4px 24px;
  position: relative;
}

.partnerships-why-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23de5af9'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ===================
   Partnership Pathway Section
   =================== */
.partnerships-pathway-section {
  padding: 80px 24px;
  background: #f8f8f8;
}

.partnerships-pathway-header {
  margin-bottom: 48px;
}

.partnerships-pathway-subtitle {
  font-size: 16px;
  color: #636b75;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 24px;
}

.partnerships-pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.partnerships-pathway-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.partnerships-pathway-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #2C003C;
  margin-bottom: 12px;
  font-family: Satoshi, sans-serif;
}

.partnerships-pathway-card-description {
  font-size: 14px;
  color: #636b75;
  line-height: 1.6;
  margin-bottom: 24px;
}

.partnerships-pathway-benefits {
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
}

.partnerships-pathway-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.partnerships-pathway-benefits-list li {
  font-size: 14px;
  color: #636b75;
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}

.partnerships-pathway-benefits-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235d007f'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ===================
   Brands Section
   =================== */
.partnerships-brands-section {
  padding: 60px 24px;
  background: #ffffff;
  text-align: center;
}

.partnerships-brands-title {
  font-size: 24px;
  font-weight: 600;
  color: #2C003C;
  margin-bottom: 40px;
  font-family: Satoshi, sans-serif;
}

.partnerships-brands-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.partnerships-brand-logo {
  max-height: 40px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.partnerships-brand-logo:hover {
  opacity: 1;
}

/* ===================
   Impact Section
   =================== */
.partnerships-impact-section {
  padding: 80px 24px;
  background: #ffffff;
}

.partnerships-impact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.partnerships-impact-title {
  font-size: 32px;
  font-weight: 700;
  color: #2C003C;
  margin-bottom: 16px;
  font-family: Satoshi, sans-serif;
}

.partnerships-impact-subtitle {
  font-size: 15px;
  color: #636b75;
  line-height: 1.6;
  margin-bottom: 32px;
}

.partnerships-impact-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.partnerships-impact-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.partnerships-impact-number {
  font-size: 28px;
  font-weight: 800;
  color: #2C003C;
  font-family: Satoshi, sans-serif;
}

.partnerships-impact-label {
  font-size: 13px;
  color: #636b75;
  line-height: 1.5;
}

.partnerships-impact-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.partnerships-impact-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
}

/* ===================
   Donate Section
   =================== */
.partnerships-donate-section {
  padding: 80px 24px;
  background: #790092;
}

.partnerships-donate-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.partnerships-donate-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.partnerships-donate-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 16px;
}

.partnerships-donate-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  font-family: Satoshi, sans-serif;
}

.partnerships-donate-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ===================
   Partnership Modal
   =================== */
.partnership-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.partnership-modal-overlay.active {
  display: flex;
}

.partnership-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.partnership-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: #636b75;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.partnership-modal-close:hover {
  background: #e5e7eb;
  color: #2C003C;
}

.partnership-modal-title {
  font-size: 28px;
  font-weight: 700;
  color: #2C003C;
  margin-bottom: 24px;
  text-align: center;
  font-family: Satoshi, sans-serif;
}

/* Body scroll lock when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Message Display */
.partnership-message {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.partnership-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  display: block;
}

.partnership-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  margin-bottom: 0;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: #2C003C;
  margin-bottom: 8px;
  font-family: Satoshi, sans-serif;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 15px;
  font-family: Satoshi, sans-serif;
  color: #2C003C;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #9e2ff4;
  box-shadow: 0 0 0 3px rgba(158, 47, 244, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-color: #ffffff;
  padding-right: 40px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit Button */
.partnerships-submit-btn {
  width: auto;
  min-width: 200px;
  padding: 16px 48px;
  background: linear-gradient(123.77deg, #5d007f 10%, #9e2ff4 56%, #de5af9 100%);
  color: white;
  border: none;
  border-radius: 72px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin: 32px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Satoshi, sans-serif;
  box-shadow: 0 2px #8520da;
}

.partnerships-submit-btn:hover:not(:disabled) {
  background: linear-gradient(123.77deg, #6d0090 10%, #ae3fff 56%, #e87aff 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(133, 32, 218, 0.4);
}

.partnerships-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.partnerships-submit-btn .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===================
   Responsive Design
   =================== */
@media (max-width: 991px) {
  .partnerships-hero-title {
    font-size: 36px;
  }

  .partnerships-impact-content,
  .partnerships-donate-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .partnerships-donate-content {
    text-align: center;
  }

  .partnerships-donate-image {
    order: -1;
  }

  .partnerships-pathway-grid {
    grid-template-columns: 1fr;
  }

  .partnerships-why-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .partnerships-hero {
    padding: 100px 16px 60px;
  }

  .partnerships-hero-title {
    font-size: 28px;
  }

  .partnerships-why-section,
  .partnerships-pathway-section,
  .partnerships-brands-section,
  .partnerships-impact-section,
  .partnerships-donate-section {
    padding: 60px 16px;
  }

  .partnerships-section-title {
    font-size: 26px;
  }

  .partnership-modal {
    padding: 24px;
    margin: 10px;
  }

  .partnership-modal-title {
    font-size: 24px;
  }

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

  .partnerships-impact-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .partnerships-impact-img,
  .partnerships-donate-img {
    height: 280px;
  }

  .partnerships-brands-grid {
    gap: 32px;
  }

  .partnerships-brand-logo {
    max-height: 32px;
  }
}

@media (max-width: 479px) {
  .partnerships-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .partnerships-btn-primary,
  .partnerships-btn-white {
    text-align: center;
  }

  .partnerships-submit-btn {
    width: 100%;
  }

  .partnerships-impact-number {
    font-size: 24px;
  }
}
