/* Enhanced Agent Page Styling */

/* Agent Header */
.agent-header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/banner5.png');
  background-size: cover;
  background-position: center;
  padding: 7rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.agent-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(248, 183, 0, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 1;
}

.agent-header h1, .agent-header p {
  position: relative;
  z-index: 2;
}

.agent-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1.2rem;
  color: white;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  display: inline-block;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.5rem 2rem;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  border: 2px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: glowPulse 3s infinite alternate;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  100% {
    box-shadow: 0 5px 25px rgba(248, 183, 0, 0.4), 0 0 10px rgba(248, 183, 0, 0.2);
    text-shadow: 0 0 10px rgba(248, 183, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.7);
  }
}

.agent-header p {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  font-size: 1.3rem;
  color: white;
  line-height: 1.8;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1.2rem 2rem;
  border-radius: 8px;
  font-weight: 500;
}

/* Agent Banner */
.agent-banner {
  padding: 0;
  margin-top: -2rem;
  position: relative;
  z-index: 3;
}

.agent-banner .container {
  max-width: 1000px;
}

.agent-banner img {
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border: 4px solid var(--primary-color);
}

/* Commission Structure Section */
.agent-commissions {
  padding: 6rem 1rem 4rem;
  background-color: #fff;
  position: relative;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f8b700' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.agent-commissions h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--text-dark);
  position: relative;
}

.agent-commissions h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.commission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.commission-card {
  background-color: white;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border-top: 4px solid transparent;
  height: 100%;
}

.commission-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-top-color: var(--primary-color);
}

.commission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(248, 183, 0, 0.05) 0%, rgba(255, 140, 0, 0.1) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.commission-card:hover::before {
  opacity: 1;
}

.commission-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(248, 183, 0, 0.1) 0%, rgba(255, 140, 0, 0.2) 100%);
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(248, 183, 0, 0.2);
  font-size: 2.5rem;
}

.commission-card:hover .commission-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(248, 183, 0, 0.2) 0%, rgba(255, 140, 0, 0.3) 100%);
  animation: pulse 2s infinite;
}

.commission-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--primary-color);
  transition: all 0.3s ease;
}

.commission-card:hover .commission-icon svg {
  transform: scale(1.1);
  fill: #ff8c00;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(248, 183, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(248, 183, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(248, 183, 0, 0);
  }
}

.commission-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 0.8rem;
}

.commission-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary-gradient);
  transition: width 0.4s ease;
}

.commission-card:hover h3::after {
  width: 50px;
}

.commission-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 1.2rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.commission-card p {
  color: #666;
  line-height: 1.6;
}

/* Agent Benefits Section */
.agent-benefits {
  background-color: #f9f9f9;
  padding: 5rem 1rem;
  position: relative;
  overflow: hidden;
}

.agent-benefits::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-gradient);
}

.agent-benefits h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--text-dark);
  position: relative;
}

.agent-benefits h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.benefits-list {
  max-width: 900px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.8rem;
  background-color: white;
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  margin-right: 1.5rem;
  color: var(--primary-color);
  font-size: 1.5rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  background-color: rgba(248, 183, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary-color);
}

.benefit-content h3 {
  margin-bottom: 0.8rem;
  color: var(--text-dark);
  font-size: 1.3rem;
}

.benefit-content p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* How It Works Section */
.agent-how-it-works {
  padding: 5rem 1rem;
  background-color: #fff;
  position: relative;
}

.agent-how-it-works h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--text-dark);
  position: relative;
}

.agent-how-it-works h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
  z-index: 1;
}

.step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 2;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  color: var(--text-dark);
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 4px solid white;
  transition: all 0.3s ease;
}

.step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(248, 183, 0, 0.3);
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.step p {
  color: #666;
  line-height: 1.6;
}

/* Agent CTA Section */
.agent-cta {
  background: linear-gradient(135deg, #b91d22 0%, #8b0000 100%);
  color: var(--text-light);
  text-align: center;
  padding: 5rem 1rem;
  position: relative;
  overflow: hidden;
}

.agent-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.agent-cta h2, .agent-cta p, .agent-cta .cta-buttons {
  position: relative;
  z-index: 2;
}

.agent-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.agent-cta p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.agent-cta .btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--primary-gradient);
  color: var(--text-dark);
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.agent-cta .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: all 0.75s ease;
}

.agent-cta .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(248, 183, 0, 0.4);
}

.agent-cta .btn:hover::before {
  left: 100%;
}

.agent-cta .btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 0.9rem 2.4rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.agent-cta .btn-secondary:hover {
  background-color: white;
  color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Agent Terms Section */
.agent-terms {
  background-color: #f9f9f9;
  padding: 5rem 1rem;
  position: relative;
  overflow: hidden;
}

.agent-terms::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-gradient);
}

.agent-terms h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-dark);
  position: relative;
}

.agent-terms h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.agent-terms .container {
  max-width: 900px;
}

.agent-terms p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  text-align: center;
}

.agent-terms ul {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style-type: none;
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary-color);
}

.agent-terms li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  color: #555;
  line-height: 1.6;
}

.agent-terms li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.agent-terms li:hover {
  transform: translateX(5px);
  transition: transform 0.3s ease;
}

/* Scroll Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.commission-card, .benefit-item, .step {
  opacity: 0;
}

.commission-card.animated, .benefit-item.animated, .step.animated {
  animation: fadeInUp 0.6s ease-out forwards;
}

.commission-card:nth-child(2).animated {
  animation-delay: 0.2s;
}

.commission-card:nth-child(3).animated {
  animation-delay: 0.4s;
}

.commission-card:nth-child(4).animated {
  animation-delay: 0.6s;
}

.benefit-item:nth-child(2).animated {
  animation-delay: 0.2s;
}

.benefit-item:nth-child(3).animated {
  animation-delay: 0.3s;
}

.benefit-item:nth-child(4).animated {
  animation-delay: 0.4s;
}

.benefit-item:nth-child(5).animated {
  animation-delay: 0.5s;
}

.benefit-item:nth-child(6).animated {
  animation-delay: 0.6s;
}

.step:nth-child(2).animated {
  animation-delay: 0.2s;
}

.step:nth-child(3).animated {
  animation-delay: 0.4s;
}

.step:nth-child(4).animated {
  animation-delay: 0.6s;
}

.step:nth-child(5).animated {
  animation-delay: 0.8s;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .agent-header h1 {
    font-size: 2.5rem;
    padding: 0.5rem 1.5rem;
  }
  
  .agent-header p {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
  }
  
  .steps::before {
    display: none;
  }
  
  .step {
    margin-bottom: 2rem;
    width: 100%;
  }
}
