* {
  font-family: 'Vazirmatn', sans-serif;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
}

.form-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: slideUp 0.8s ease-out;
  overflow: hidden;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ff006e, #ffbe0b, #8338ec, #3a86ff);
  background-size: 400% 400%;
  animation: gradientShift 3s ease infinite;
}

@keyframes slideUp {
  from {
      opacity: 0;
      transform: translateY(50px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes gradientShift {
  0%, 100% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
}

/* Banner Slider Styles */
.banner-slider {
  margin-bottom: 30px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  height: 200px;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #8338ec, #ff006e);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide:nth-child(2) {
  background: linear-gradient(135deg, #3a86ff, #8338ec);
}

.slide:nth-child(3) {
  background: linear-gradient(135deg, #ff006e, #ffbe0b);
}

.slide.active {
  opacity: 1;
}

.slide-content {
  text-align: center;
  color: white;
  padding: 20px;
}

.slide-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content p {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

/* Description Section */
.description-section {
  margin-bottom: 30px;
  padding: 25px;
  background: rgba(248, 249, 250, 0.8);
  border-radius: 15px;
  border: 1px solid rgba(131, 56, 236, 0.1);
}

.description-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.description-section p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
  text-align: justify;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}

.feature-item {
  text-align: center;
  padding: 15px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item i {
  font-size: 24px;
  color: #8338ec;
  margin-bottom: 10px;
}

.feature-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* FAQ Section */
.faq-section {
  margin-top: 30px;
  padding: 25px;
  background: rgba(248, 249, 250, 0.8);
  border-radius: 15px;
  border: 1px solid rgba(131, 56, 236, 0.1);
}

.faq-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.faq-question {
  padding: 15px 20px;
  background: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: #333;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: rgba(131, 56, 236, 0.05);
}

.faq-question i {
  color: #8338ec;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background: #f8f9fa;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 15px 20px;
  max-height: 200px; /* Fallback height */
}

.brand-title {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.brand-title img {
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.brand-title img:hover {
  transform: translateY(-5px) scale(1.05);
}

.brand-logo {
  font-size: 32px;
  margin-bottom: 8px;
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
  background: #021647;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-block;
}

.brand-tagline {
  font-size: 12px;
  color: #666;
  font-weight: 400;
}

.page-title {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-weight: 600;
  font-size: 18px;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 15px 20px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  position: relative;
  text-align: center;
}

.form-control:focus {
  border-color: #8338ec;
  box-shadow: 0 0 20px rgba(131, 56, 236, 0.2);
  background: white;
  transform: translateY(-2px);
}

.form-control:disabled {
  background-color: #f8f9fa;
  border-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.65;
}

.form-label {
  font-weight: 500;
  color: #555;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-icon {
  color: #8338ec;
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.input-icon svg {
  width: 100%;
  height: 100%;
}

/* Universal button styles for both pages */
.btn-submit,
.btn-download,
button[type="button"] {
  background: linear-gradient(45deg, #ff006e, #8338ec) !important;
  border: none !important;
  border-radius: 15px !important;
  padding: 15px 30px !important;
  color: white !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  width: 100% !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
  text-decoration: none !important;
  display: block !important;
  text-align: center !important;
  cursor: pointer !important;
}

.btn-submit:hover,
.btn-download:hover,
button[type="button"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 25px rgba(255, 0, 110, 0.3) !important;
  background: linear-gradient(45deg, #8338ec, #ff006e) !important;
  color: white !important;
  text-decoration: none !important;
}

.btn-submit:active,
.btn-download:active,
button[type="button"]:active {
  transform: translateY(0) !important;
}

.btn-submit:disabled,
.btn-download:disabled,
button[type="button"]:disabled {
  background: #6c757d !important;
  cursor: not-allowed !important;
  opacity: 0.65 !important;
  transform: none !important;
}

.btn-submit:disabled:hover,
.btn-download:disabled:hover,
button[type="button"]:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
  background: #6c757d !important;
}

.btn-submit::before,
.btn-download::before,
button[type="button"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-submit:hover::before,
.btn-download:hover::before,
button[type="button"]:hover::before {
  left: 100%;
}

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  top: 10%;
  right: 10%;
  width: 80px;
  height: 80px;
  background: #ff006e;
  border-radius: 50%;
  animation-delay: 0s;
}

.shape-2 {
  bottom: 10%;
  left: 10%;
  width: 60px;
  height: 60px;
  background: #8338ec;
  border-radius: 30%;
  animation-delay: 2s;
}

.shape-3 {
  top: 50%;
  right: 5%;
  width: 40px;
  height: 40px;
  background: #3a86ff;
  border-radius: 50%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
      transform: translateY(0px) rotate(0deg);
  }
  33% {
      transform: translateY(-20px) rotate(120deg);
  }
  66% {
      transform: translateY(10px) rotate(240deg);
  }
}

.success-message {
  background: linear-gradient(135deg, #00c851, #00ff88);
  color: white;
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(30px) scale(0.8);
  transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 35px rgba(0, 200, 81, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  display: none;
  height: 0;
}

.success-message::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

.success-message.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: successPulse 0.6s ease-out 0.3s;
  display: block;
  height: auto;
}

.success-icon {
  font-size: 36px;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: bounceIn 0.8s ease-out 0.5s both;
  width: 60px;
  height: 60px;
  margin: 0 auto 15px auto;
}

.success-icon svg {
  width: 100%;
  height: 100%;
}

.success-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  animation: slideInUp 0.6s ease-out 0.7s both;
}

.success-subtitle {
  font-size: 14px;
  opacity: 0.9;
  animation: slideInUp 0.6s ease-out 0.9s both;
}

.download-link {
  background: linear-gradient(135deg, #00c851, #00ff88);
  color: white;
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(30px) scale(0.8);
  transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 35px rgba(0, 200, 81, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  display: none;
  height: 0;
  text-decoration: none;
}

.download-link.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: successPulse 0.6s ease-out 0.3s;
  display: block;
  height: auto;
}

.download-link:hover {
  color: white !important;
  text-decoration: none !important;
  transform: translateY(-3px) scale(1.02) !important;
}

@keyframes shimmer {
  0% {
      left: -100%;
  }
  100% {
      left: 100%;
  }
}

@keyframes successPulse {
  0%, 100% {
      transform: translateY(0) scale(1);
  }
  50% {
      transform: translateY(-5px) scale(1.05);
  }
}

@keyframes bounceIn {
  0% {
      opacity: 0;
      transform: scale(0);
  }
  50% {
      opacity: 1;
      transform: scale(1.2);
  }
  100% {
      opacity: 1;
      transform: scale(1);
  }
}

@keyframes slideInUp {
  0% {
      opacity: 0;
      transform: translateY(20px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  animation: confetti-fall 3s linear infinite;
}

.confetti:nth-child(1) { left: 10%; animation-delay: 0s; background: #ff006e; }
.confetti:nth-child(2) { left: 20%; animation-delay: 0.2s; background: #8338ec; }
.confetti:nth-child(3) { left: 30%; animation-delay: 0.4s; background: #3a86ff; }
.confetti:nth-child(4) { left: 40%; animation-delay: 0.6s; background: #ffbe0b; }
.confetti:nth-child(5) { left: 50%; animation-delay: 0.8s; background: #ff006e; }
.confetti:nth-child(6) { left: 60%; animation-delay: 1s; background: #8338ec; }
.confetti:nth-child(7) { left: 70%; animation-delay: 1.2s; background: #3a86ff; }
.confetti:nth-child(8) { left: 80%; animation-delay: 1.4s; background: #ffbe0b; }
.confetti:nth-child(9) { left: 90%; animation-delay: 1.6s; background: #ff006e; }

@keyframes confetti-fall {
  0% {
      opacity: 1;
      transform: translateY(-100vh) rotate(0deg);
  }
  100% {
      opacity: 0;
      transform: translateY(100vh) rotate(720deg);
  }
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
}

.form-control.error {
  border-color: #dc3545;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% {
      transform: translateX(0);
  }
  25% {
      transform: translateX(-5px);
  }
  75% {
      transform: translateX(5px);
  }
}

.social-media {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  background: none;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 576px) {
  body {
      padding: 1.5%;
  }

  .form-container {
      padding: 25px 20px;
      margin: 0;
      width: 100%;
      max-width: 100%;
      border-radius: 15px;
  }
  
  .brand-title {
      font-size: 1.5rem;
      margin-bottom: 30px;
  }

  .brand-title img {
      max-width: 150px;
  }

  .banner-slider {
      height: 140px;
      margin-bottom: 20px;
  }

  .slide-content h2 {
      font-size: 18px;
  }

  .slide-content p {
      font-size: 12px;
  }

  .description-section {
      padding: 20px;
      margin-bottom: 25px;
  }

  .description-section p {
      font-size: 13px;
  }

  .features-grid {
      grid-template-columns: 1fr;
      gap: 10px;
  }

  .feature-item {
      padding: 12px;
  }

  .form-group {
      margin-bottom: 20px;
  }

  .form-control {
      padding: 12px 15px;
      font-size: 14px;
  }

  .btn-submit {
      padding: 12px 25px !important;
      font-size: 14px !important;
  }

  .faq-section {
      padding: 20px;
      margin-top: 25px;
  }

  .faq-question {
      padding: 12px 15px;
      font-size: 14px;
  }

  .faq-answer {
      font-size: 13px;
  }

  .faq-item.active .faq-answer {
      padding: 12px 15px;
  }

  .social-media {
      margin-top: 20px;
      gap: 15px;
  }

  .social-icon {
      width: 35px;
      height: 35px;
  }
}