/* Fallback Root Variables */
:root {
  --header-color: #2b7a6b;
  --button-color: #ff6b00;
  --button-hover: #e05e00;
  --text-color: #333;
  --light-text: #fff;
  --bg-color: #f8f9fa;
  --section-bg: #fff;
  --transition: all 0.3s ease;
}

/* Partners Page Styles */
.partners-page {
  padding-top: 0;
}

/* Hero Section */
.partners-hero {
  position: relative;
  padding: 120px 0;
  text-align: center;
  background-image: url('https://via.placeholder.com/1200x500.png?text=LEADAM+Hero');
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  margin: 0 20px;
}

.hero-overlay {
  position: relative;
  background: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  color: var(--light-text);
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--light-text);
  margin-bottom: 30px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-cta {
  display: inline-block;
}

@media (min-width: 992px) {
  .partners-hero {
    padding: 150px 0;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
}

@media (max-width: 767px) {
  .partners-hero {
    padding: 140px 0 100px;
    margin: 0 10px;
  }
  
  .hero-overlay {
    padding: 20px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Partners Section */
.partners-section {
  padding: 80px 0;
  display: block;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--header-color);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto;
}

/* Features Grid */
.partners-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--section-bg);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--button-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  color: var(--header-color);
  margin-bottom: 15px;
}

.feature-card p {
  font-size: 1rem;
  color: var(--text-color);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: var(--section-bg);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--header-color);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-color);
}

/* Partner Form Section */
.partner-form-section {
  background: linear-gradient(135deg, rgba(43, 122, 107, 0.1) 0%, rgba(255, 107, 0, 0.1) 100%);
  padding: 80px 0;
  display: block;
}

.partner-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  justify-items: center;
}

.form-group {
  width: 100%;
  max-width: 400px;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-size: 16px;
  transition: var(--transition);
  text-align: center;
}

.form-control:focus {
  border-color: var(--header-color);
  box-shadow: 0 0 0 3px rgba(43, 122, 107, 0.2);
  outline: none;
}

.form-submit {
  text-align: center;
}

.form-submit .btn {
  min-width: 200px;
}

.form-consent {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-color);
  margin-top: 20px;
}

.consent-link {
  color: var(--header-color);
  text-decoration: none;
  transition: var(--transition);
}

.consent-link:hover {
  color: var(--button-color);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .full-width {
    grid-column: 1 / -1;
  }
  
  .form-group {
    max-width: 350px;
  }
}

@media (max-width: 767px) {
  .form-group {
    max-width: 100%;
  }
}

/* Success Popup Styles */
.success-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.success-popup.active {
  display: flex;
}

.popup-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.popup-icon {
  font-size: 60px;
  color: var(--header-color);
  margin-bottom: 20px;
}

.popup-icon i {
  animation: bounce 0.6s;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

.popup-content h3 {
  color: var(--header-color);
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.popup-content p {
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #888;
  cursor: pointer;
  transition: color 0.3s;
}

.close-popup:hover {
  color: #333;
}

.close-btn {
  margin-top: 15px;
}