* {
  font-family: 'Vazirmatn', sans-serif;
}

body {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4CAF50 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.98);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  padding: 40px;
  max-width: 520px;
  width: 100%;
  position: relative;
  animation: slideUp 0.8s ease-out;
  overflow: hidden;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #4CAF50, #2196F3, #FF9800, #E91E63);
  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 - ALL DARK BACKGROUNDS */
.banner-slider {
  margin-bottom: 30px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  height: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1B5E20, #0D47A1) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.slide:nth-child(2) {
  background: linear-gradient(135deg, #1A237E, #4A148C) !important;
}

.slide:nth-child(3) {
  background: linear-gradient(135deg, #BF360C, #B71C1C) !important;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  text-align: center;
  color: white;
  padding: 25px;
}

.slide-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
}

.slide-content p {
  font-size: 15px;
  opacity: 0.95;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.5;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.dot.active {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Description Section */
.description-section {
  margin-bottom: 30px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(33, 150, 243, 0.05));
  border-radius: 18px;
  border: 2px solid rgba(76, 175, 80, 0.15);
  position: relative;
  overflow: hidden;
}

.description-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #4CAF50, #2196F3);
}

.description-section p {
  font-size: 15px;
  line-height: 1.8;
  color: #2c3e50;
  margin: 0;
  text-align: justify;
  font-weight: 400;
}

.brand-title {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 3px solid rgba(76, 175, 80, 0.1);
}

.brand-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #4CAF50, #2196F3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: translateY(-5px) rotate(5deg);
}

.brand-logo i {
  font-size: 36px;
  color: white;
}

.brand-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #4CAF50, #2196F3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 14px;
  color: #666;
  font-weight: 400;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-control {
  border: 2px solid #e0e0e0;
  border-radius: 18px;
  padding: 16px 22px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  position: relative;
  text-align: center;
  font-weight: 400;
}

.form-control:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 25px rgba(76, 175, 80, 0.25);
  background: white;
  transform: translateY(-2px);
  outline: none;
}

.form-control:disabled {
  background-color: #f8f9fa;
  border-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.65;
}

.form-label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.input-icon {
  color: #4CAF50;
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.input-icon svg {
  width: 100%;
  height: 100%;
}

.btn-submit {
  background: linear-gradient(135deg, #4CAF50, #2196F3) !important;
  border: none !important;
  border-radius: 18px !important;
  padding: 16px 32px !important;
  color: white !important;
  font-weight: 600 !important;
  font-size: 17px !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;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3) !important;
}

.btn-submit:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4) !important;
  background: linear-gradient(135deg, #2196F3, #4CAF50) !important;
  color: white !important;
  text-decoration: none !important;
}

.btn-submit:disabled {
  background: #6c757d !important;
  cursor: not-allowed !important;
  opacity: 0.65 !important;
  transform: none !important;
  box-shadow: none !important;
}

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.08;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  top: 15%;
  right: 15%;
  width: 90px;
  height: 90px;
  background: #4CAF50;
  border-radius: 50%;
  animation-delay: 0s;
}

.shape-2 {
  bottom: 15%;
  left: 15%;
  width: 70px;
  height: 70px;
  background: #2196F3;
  border-radius: 30%;
  animation-delay: 2s;
}

.shape-3 {
  top: 60%;
  right: 8%;
  width: 50px;
  height: 50px;
  background: #FF9800;
  border-radius: 50%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
      transform: translateY(0px) rotate(0deg);
  }
  33% {
      transform: translateY(-25px) rotate(120deg);
  }
  66% {
      transform: translateY(15px) rotate(240deg);
  }
}

.success-message {
  background: linear-gradient(135deg, #4CAF50, #8BC34A);
  color: white;
  padding: 30px;
  border-radius: 22px;
  text-align: center;
  margin-top: 25px;
  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 20px 40px rgba(76, 175, 80, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  display: none;
  height: 0;
}

.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: 40px;
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: bounceIn 0.8s ease-out 0.5s both;
  width: 70px;
  height: 70px;
  margin: 0 auto 18px auto;
}

.success-icon svg {
  width: 100%;
  height: 100%;
}

.success-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  animation: slideInUp 0.6s ease-out 0.7s both;
}

.success-subtitle {
  font-size: 15px;
  opacity: 0.95;
  animation: slideInUp 0.6s ease-out 0.9s both;
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  margin-top: 35px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(33, 150, 243, 0.05));
  border-radius: 20px;
  border: 2px solid rgba(76, 175, 80, 0.15);
}

.faq-section h3 {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 25px;
  text-align: center;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(76, 175, 80, 0.1);
}

.faq-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.faq-question {
  padding: 18px 24px;
  background: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #2c3e50;
  transition: background-color 0.3s ease;
  font-size: 15px;
}

.faq-question:hover {
  background: rgba(76, 175, 80, 0.05);
}

.faq-question i {
  color: #4CAF50;
  transition: transform 0.3s ease;
  font-size: 16px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  background: #f8fffe;
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 18px 24px;
  max-height: 250px;
}

.error-message {
  color: #F44336;
  font-size: 14px;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  font-weight: 500;
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
}

.form-control.error {
  border-color: #F44336;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% {
      transform: translateX(0);
  }
  25% {
      transform: translateX(-8px);
  }
  75% {
      transform: translateX(8px);
  }
}

.social-media {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid rgba(76, 175, 80, 0.1);
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  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(-5px) scale(1.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.confetti {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  animation: confetti-fall 3s linear infinite;
}

.confetti:nth-child(1) { left: 10%; animation-delay: 0s; background: #4CAF50; }
.confetti:nth-child(2) { left: 20%; animation-delay: 0.2s; background: #2196F3; }
.confetti:nth-child(3) { left: 30%; animation-delay: 0.4s; background: #FF9800; }
.confetti:nth-child(4) { left: 40%; animation-delay: 0.6s; background: #E91E63; }
.confetti:nth-child(5) { left: 50%; animation-delay: 0.8s; background: #4CAF50; }
.confetti:nth-child(6) { left: 60%; animation-delay: 1s; background: #2196F3; }
.confetti:nth-child(7) { left: 70%; animation-delay: 1.2s; background: #FF9800; }
.confetti:nth-child(8) { left: 80%; animation-delay: 1.4s; background: #E91E63; }
.confetti:nth-child(9) { left: 90%; animation-delay: 1.6s; background: #4CAF50; }

@keyframes confetti-fall {
  0% {
      opacity: 1;
      transform: translateY(-100vh) rotate(0deg);
  }
  100% {
      opacity: 0;
      transform: translateY(100vh) rotate(720deg);
  }
}

@keyframes successPulse {
  0%, 100% {
      transform: translateY(0) scale(1);
  }
  50% {
      transform: translateY(-8px) 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(25px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

@media (max-width: 576px) {
  body {
      padding: 15px;
  }

  .form-container {
      padding: 30px 20px;
      margin: 0;
      width: 100%;
      max-width: 100%;
      border-radius: 20px;
  }
  
  .brand-title {
      margin-bottom: 25px;
  }

  .brand-logo {
      width: 70px;
      height: 70px;
  }

  .brand-logo i {
      font-size: 30px;
  }

  .brand-name {
      font-size: 24px;
  }

  .banner-slider {
      height: 160px;
      margin-bottom: 25px;
  }

  .slide-content h2 {
      font-size: 20px;
  }

  .slide-content p {
      font-size: 13px;
  }

  .description-section {
      padding: 22px;
      margin-bottom: 25px;
  }

  .description-section p {
      font-size: 14px;
  }

  .form-group {
      margin-bottom: 20px;
  }

  .form-control {
      padding: 14px 18px;
      font-size: 15px;
  }

  .btn-submit {
      padding: 14px 28px !important;
      font-size: 16px !important;
  }

  .faq-section {
      padding: 25px;
      margin-top: 30px;
  }

  .faq-question {
      padding: 15px 18px;
      font-size: 14px;
  }

  .faq-answer {
      font-size: 13px;
  }

  .faq-item.active .faq-answer {
      padding: 15px 18px;
  }

  .social-media {
      margin-top: 25px;
      gap: 20px;
  }

  .social-icon {
      width: 40px;
      height: 40px;
  }
}

@media (max-width: 400px) {
  .form-container {
      padding: 25px 15px;
  }

  .slide-content h2 {
      font-size: 18px;
  }

  .slide-content p {
      font-size: 12px;
  }

  .brand-name {
      font-size: 22px;
  }
}