* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

h1, h2, h3, h4, h5, h6, body, button, select, input, textarea, p, a, li, input::placeholder {
  font-family: "IRANYekanX";
  -moz-font-feature-settings: "ss01";
  -webkit-font-feature-settings: "ss01";
  font-feature-settings: "ss01";
}

a {
  text-decoration: none;
}

.text-center {
  text-align: center;
}

/* Enhanced Body and Background */
body {
  background: linear-gradient(45deg, #bd0b6f, #8a020d, #bd0b6f);

  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.background-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(189, 11, 111, 0.1) 0%, transparent 50%);
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Main Content */
main {
  padding-inline: 16px;
  padding-block: 20px;
}

.content {
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  font-weight: 600;
  color: #5c5c5c;
}

/* Enhanced Box Design */
.box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 24px;
  border-radius: 24px;
  margin-bottom: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #bd0b6f, #8a020d, #667eea);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.box:hover::before {
  opacity: 1;
}

.box:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  margin-top: 40px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(45deg, #bd0b6f, #8a020d);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(189, 11, 111, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 4px 15px rgba(189, 11, 111, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(189, 11, 111, 0.5); }
  100% { box-shadow: 0 4px 15px rgba(189, 11, 111, 0.3); }
}

.hero-image-container {
  position: relative;
  margin-bottom: 20px;
}

.hero-img {
  display: block;
  margin-inline: auto;
  width: 100%;
  max-width: 350px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.hero-img:hover {
  transform: scale(1.02);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(189, 11, 111, 0.1), rgba(138, 2, 13, 0.1));
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-image-container:hover .image-overlay {
  opacity: 1;
}

/* Enhanced Typography */
.main-title {
  margin-bottom: 16px;
}

.title-highlight {
  background: linear-gradient(135deg, #3a192e, #bd0b6f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.8em;
  font-weight: 900;
  display: inline-block;
  animation: titleShine 3s ease-in-out infinite;
}

@keyframes titleShine {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.subtitle {
  color: #794164;
  font-size: 20px;
  margin-bottom: 24px;
  font-weight: 600;
}

/* Investment Section */
.investment-section {
  margin-bottom: 24px;
}

.investment-label {
  display: block;
  color: #5c5c5c;
  font-size: 16px;
  margin-bottom: 12px;
}

.pricing-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.price-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  padding: 16px 24px;
  border-radius: 16px;
  border: 2px solid rgba(189, 11, 111, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.price-box::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #bd0b6f, #8a020d, #667eea, #bd0b6f, #bd0b6f);
  background-size: 400% 400%;
  z-index: -1;
  border-radius: 18px;
  animation: gradientFlow 4s ease-in-out infinite;
}

@keyframes gradientFlow {
  0% { 
    background-position: 0% 50%;
  }
  50% { 
    background-position: 100% 50%;
  }
  100% { 
    background-position: 0% 50%;
  }
}

.price {
  font-weight: 700;
  font-size: 24px;
  text-decoration: line-through;
  color: #a5a5a5;
  transition: all 0.3s ease;
}

.price small {
  font-size: 16px;
}

.off {
  font-weight: 900;
  font-size: 22px;
  color: #bd0b6f;
  text-shadow: 0 2px 4px rgba(189, 11, 111, 0.3);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 2px 4px rgba(189, 11, 111, 0.3); }
  to { text-shadow: 0 2px 8px rgba(189, 11, 111, 0.6); }
}

/* Time Section */
.time-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(189, 11, 111, 0.1), rgba(138, 2, 13, 0.1));
  border-radius: 16px;
  border: 1px solid rgba(189, 11, 111, 0.2);
}

.time-icon {
  font-size: 24px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
  40%, 43% { transform: translateY(-10px); }
  70% { transform: translateY(-5px); }
}

.time {
  font-size: 18px;
  color: #3a192e;
  font-weight: 700;
  margin: 0;
}

/* Enhanced Form Styles */
.registration-form {
  margin-top: 30px;
}

.form-group {
  margin-bottom: 28px;
}

.input-container {
  position: relative;
}

.input-container input {
  border: 2px solid rgba(189, 11, 111, 0.2);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  width: 100%;
  border-radius: 16px;
  font-size: 16px;
  padding: 16px 20px;
  outline: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.input-container input:focus {
  border: 2px solid #bd0b6f;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 4px rgba(189, 11, 111, 0.1);
  transform: translateY(-2px);
}

.input-container label {
  color: #626262;
  font-weight: 500;
  font-size: 14px;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(to bottom, transparent 0%, white 20%, white 80%, transparent 100%);
  padding: 4px 8px;
  pointer-events: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.label-icon {
  font-size: 14px;
  opacity: 0.7;
}

.input-container input:not(:placeholder-shown) ~ label,
.input-container input:focus ~ label {
  font-size: 12px;
  top: -8px;
  transform: translateY(0);
  color: #bd0b6f;
  font-weight: 600;
}

.input-container input:not(:placeholder-shown) ~ label .label-icon,
.input-container input:focus ~ label .label-icon {
  opacity: 1;
}

.tel-input {
  padding-inline-start: 60px !important;
}

.country-code {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #bd0b6f;
  font-weight: 700;
  padding: 4px 8px;
  background: rgba(189, 11, 111, 0.1);
  border-radius: 8px;
  border-inline-start: 2px solid #bd0b6f;
  font-size: 14px;
}

/* Enhanced Submit Button */
.submit-container {
  position: relative;
  margin-top: 30px;
}

.submit-form {
  font-weight: 800;
  font-size: 18px;
  color: white;
  background: linear-gradient(135deg, #8a020d 0%, #bd0b6f 100%);
  border: none;
  border-radius: 16px;
  padding: 16px 24px;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(138, 2, 13, 0.4);
}

.submit-form::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 ease;
}

.submit-form:hover::before {
  left: 100%;
}

.submit-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(138, 2, 13, 0.5);
}

.submit-form:active {
  transform: translateY(0);
}

.submit-form:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 10px rgba(138, 2, 13, 0.2);
}

.button-icon {
  font-size: 16px;
  animation: rocket 2s ease-in-out infinite;
}

@keyframes rocket {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.submit-decoration {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #bd0b6f, transparent);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.submit-form:hover + .submit-decoration {
  opacity: 1;
}

/* Error Messages */
.error-message {
  color: #dc3545;
  font-size: 13px;
  margin-top: 8px;
  background: rgba(220, 53, 69, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  display: none;
  border-left: 3px solid #dc3545;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.error-message.active {
  display: block;
}

/* Instructor Section */
.instructor-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-header h3 {
  color: #3a192e;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.header-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #bd0b6f, #8a020d);
  margin: 0 auto;
  border-radius: 2px;
}

.instructor {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(189, 11, 111, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(189, 11, 111, 0.1);
  transition: all 0.3s ease;
}

.instructor:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(189, 11, 111, 0.15);
}

.instructor-image {
  position: relative;
  flex-shrink: 0;
}

.instructor-image img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #bd0b6f;
  object-fit: cover;
}

.instructor-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

.instructor-info {
  flex: 1;
}

.instructor-title {
  color: #006aba;
  font-size: 18px;
  font-weight: 600;
  display: block;
}

.instructor-title small {
  font-size: 14px;
  color: #666;
  font-weight: 400;
}

.instructor-title strong {
  font-weight: 700;
  color: #3a192e;
}

/* Credentials List */
.credentials-list {
  list-style: none;
  padding: 0;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #515151;
  line-height: 1.6;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border-left: 4px solid #bd0b6f;
  transition: all 0.3s ease;
}

.list-item:hover {
  background: rgba(189, 11, 111, 0.05);
  transform: translateX(4px);
}

.tick-container {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #bd0b6f, #8a020d);
  border-radius: 50%;
  margin-top: 2px;
}

.tick-container img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

/* Responsive Design */
@media (max-width: 480px) {
  .box {
    padding: 20px 16px;
    margin-bottom: 16px;
  }
  
  .title-highlight {
    font-size: 1.5em;
  }
  
  .subtitle {
    font-size: 18px;
  }
  
  .price {
    font-size: 20px;
  }
  
  .off {
    font-size: 18px;
  }
  
  .submit-form {
    font-size: 16px;
    padding: 14px 20px;
  }
  
  .instructor {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .list-item {
    padding: 10px;
    margin-bottom: 12px;
  }
}

@media (max-width: 375px) {
  main {
    padding-inline: 12px;
  }
  
  .content {
    max-width: 100%;
  }
  
  .box {
    border-radius: 16px;
    padding: 16px 12px;
  }
  
  .pricing-container {
    flex-direction: column;
    gap: 8px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
input:focus, button:focus {
  outline: 2px solid #bd0b6f;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .box {
    border: 2px solid #000;
    background: #fff;
  }
  
  .title-highlight {
    -webkit-text-fill-color: #000;
    color: #000;
  }
  
  .submit-form {
    background: #000;
    border: 2px solid #000;
  }
  
  .input-container input {
    border: 2px solid #000;
  }
}

/* Print styles */
@media print {
  .background-pattern {
    display: none;
  }
  
  body {
    background: white;
  }
  
  .box {
    background: white;
    border: 1px solid #000;
    box-shadow: none;
  }
}