/* Terms and Conditions Specific Styles */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #800000 0%, #c1121f 100%);
  color: #fff;
  padding: 80px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.page-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 0;
}

/* Main Section */
.terms-condition-section {
  padding: 60px 20px;
  background: #f8f9fa;
}

.terms-condition-section .container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Terms Introduction */
.terms-intro {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  border-left: 5px solid #800000;
  position: relative;
}

.terms-intro::before {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  bottom: -5px;
  left: -5px;
  background: linear-gradient(45deg, #800000, #c1121f, #800000);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.1;
}

.terms-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  margin: 0;
}

/* Terms Cards */
.terms-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.terms-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #800000, #c1121f);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.terms-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(128,0,0,0.15);
}

.terms-card:hover::before {
  transform: scaleX(1);
}

.terms-card h2 {
  color: #800000;
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.terms-card h2 i {
  font-size: 1.3rem;
  color: #c1121f;
  background: rgba(193, 18, 31, 0.1);
  padding: 8px;
  border-radius: 8px;
}

.terms-card > p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

/* Terms Items */
.terms-item {
  margin-bottom: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #800000;
  transition: all 0.3s ease;
}

.terms-item:hover {
  background: #f1f3f4;
  border-left-width: 6px;
}

.terms-item h3 {
  color: #800000;
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.terms-item h3 i {
  color: #c1121f;
  font-size: 1rem;
  background: rgba(193, 18, 31, 0.1);
  padding: 6px;
  border-radius: 6px;
}

.terms-item p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Prohibited List */
.prohibited-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
}

.prohibited-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.prohibited-list li:hover {
  background: #f8f9fa;
  border-color: #800000;
}

.prohibited-list li i {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
  background: rgba(220, 53, 69, 0.1);
  padding: 4px;
  border-radius: 4px;
}

/* Policy Link */
.policy-link {
  color: #800000;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.policy-link:hover {
  color: #c1121f;
  border-bottom-color: #c1121f;
}

/* Contact CTA */
.contact-cta {
  background: linear-gradient(135deg, #800000 0%, #c1121f 100%);
  color: #fff;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  margin-top: 40px;
  box-shadow: 0 10px 30px rgba(128,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.contact-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.contact-cta p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.contact-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.contact-buttons .btn {
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.primary-btn {
  background: #fff;
  color: #800000;
  border: 2px solid #fff;
}

.primary-btn:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.secondary-btn {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.secondary-btn:hover {
  background: #fff;
  color: #800000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    padding: 60px 20px 40px;
  }
  
  .page-header h1 {
    font-size: 2.2rem;
  }
  
  .page-header p {
    font-size: 1rem;
  }
  
  .terms-condition-section {
    padding: 40px 15px;
  }
  
  .terms-card, .terms-intro {
    padding: 20px;
  }
  
  .terms-card h2 {
    font-size: 1.3rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .terms-card h2 i {
    align-self: flex-start;
  }
  
  .contact-cta {
    padding: 30px 20px;
  }
  
  .contact-cta h3 {
    font-size: 1.5rem;
  }
  
  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-buttons .btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 1.8rem;
  }
  
  .terms-item {
    padding: 15px;
  }
  
  .terms-item h3 {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .prohibited-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .prohibited-list li i {
    align-self: flex-start;
  }
}

/* Additional Animations */
@media (prefers-reduced-motion: no-preference) {
  .terms-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
  }
  
  .terms-card:nth-child(1) { animation-delay: 0.1s; }
  .terms-card:nth-child(2) { animation-delay: 0.2s; }
  .terms-card:nth-child(3) { animation-delay: 0.3s; }
  .terms-card:nth-child(4) { animation-delay: 0.4s; }
  .terms-card:nth-child(5) { animation-delay: 0.5s; }
  .terms-card:nth-child(6) { animation-delay: 0.6s; }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
