/* Base Styles */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #ff6f61;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --success-color: #28a745;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 80px 0;
}

h1, h2, h3, h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* Header Styles */
header {
  background: var(--primary-color);
  color: white;
  padding: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 2rem;
  margin: 0;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
}

nav ul li a:hover {
  color: #f0f0f0;
}

nav ul li a.active {
  font-weight: bold;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: white;
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Payment Section Styles */
#payment {
  background-color: #f5f7fa;
}

.payment-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.payment-header {
  background: var(--primary-color);
  color: white;
  padding: 20px;
  text-align: center;
}

/* Updated Payment Method Cards - More Interactive Hover Effects */
.payment-methods {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.payment-method {
  width: 80px;
  height: 50px;
  border: 2px solid #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: white;
  position: relative;
  overflow: hidden;
}

.payment-method::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(255, 111, 97, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.payment-method:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.payment-method:hover::before {
  opacity: 1;
}

.payment-method i {
  font-size: 2rem;
  color: #555;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.payment-method:hover i {
  color: var(--primary-color);
  transform: scale(1.1);
}

.payment-method.active {
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
  }
}

/* Payment Form Styles */
#payment-form {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--secondary-color);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  outline: none;
  background-color: white;
  transform: translateY(-1px);
}

.card-icons {
  position: absolute;
  right: 15px;
  top: 40px;
  display: flex;
  gap: 5px;
  filter: none; /* Ensures no color distortion */
  color: initial; /* Resets to default color */
}

.card-icon {
  width: 30px;
  opacity: 100;
  transition: opacity 0.3s ease;
}

.card-icon.active {
  opacity: 100;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

/* Enhanced Pay Button Hover Effect */
.pay-btn {
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.pay-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.pay-btn:hover {
  background: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(41, 128, 185, 0.4);
}

.pay-btn:active {
  transform: translateY(0);
}

.pay-btn:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 1;
  }
  20% {
    transform: scale(25, 25);
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* Payment Success Modal */
.payment-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Enhanced Modal Animation */
.modal-content {
  background: white;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
  animation: modalFadeIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transform: scale(0.8);
  opacity: 0;
}

@keyframes modalFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content i {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 20px;
  animation: bounce 0.6s ease 0.3s both;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.modal-content p {
  margin-bottom: 25px;
  color: #666;
}

.modal-btn {
  padding: 10px 25px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-btn:hover {
  background: #2980b9;
}

/* Footer Styles */
footer {
  background: var(--secondary-color);
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-column p, .footer-column a {
  color: #bbb;
  margin-bottom: 10px;
  display: block;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbb;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 20px;
  }
  
  nav ul li {
    margin: 0 10px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .payment-methods {
    flex-wrap: wrap;
  }
  
  .payment-method {
    width: 60px;
    height: 40px;
  }
  
  .payment-method i {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 10px 0;
  }
}
