/* Added enhanced option states for auto-advance feedback */
.ycf-option-selected {
  border-color: #e53e3e !important;
  background: #fed7d7 !important;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.2);
}

.ycf-option-processing {
  position: relative;
  pointer-events: none;
}

.ycf-option-processing::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid #e53e3e;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.ycf-btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Enhanced transitions for smoother auto-advance */
.ycf-option {
  display: block;
  cursor: pointer;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px; /* Increased padding from 20px to 25px */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f7fafc;
  transform: translateZ(0); /* Enable hardware acceleration */
  position: relative;
  overflow: hidden;
}

.ycf-option::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(229, 62, 62, 0.1), transparent);
  transition: left 0.6s ease;
}

.ycf-option:hover::before {
  left: 100%;
}

.ycf-option:hover {
  border-color: #cbd5e0;
  background: #edf2f7;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Enhanced step transitions */
.ycf-step {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.ycf-step[style*="display: none"] {
  opacity: 0;
}

/* Progress bar animation enhancement */
.ycf-progress {
  height: 100%;
  background: linear-gradient(90deg, #e53e3e 0%, #c53030 50%, #e53e3e 100%);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(229, 62, 62, 0.4);
  position: relative;
}

.ycf-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 1.5s ease-in-out infinite;
}

.ycf-progress {
  height: 100%;
  background: linear-gradient(90deg, #e53e3e 0%, #c53030 100%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 16.66%;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(229, 62, 62, 0.3);
}

/* Enhanced registration form styles with quiz summary */
.ycf-registration {
  max-width: 700px;
  margin: 0 auto;
}

.ycf-quiz-summary {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  border: 2px solid #dee2e6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

.ycf-quiz-summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(229, 62, 62, 0.1), transparent);
  animation: shimmer 3s infinite;
}

.ycf-quiz-summary h4 {
  margin: 0 0 25px 0;
  color: #2d3748;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 3px solid #e53e3e;
}

.ycf-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.ycf-summary-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: white;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  animation: slideInRight 0.6s ease-out;
  animation-fill-mode: both;
  position: relative;
  overflow: hidden;
}

.ycf-summary-item:nth-child(1) {
  animation-delay: 0.1s;
}
.ycf-summary-item:nth-child(2) {
  animation-delay: 0.2s;
}
.ycf-summary-item:nth-child(3) {
  animation-delay: 0.3s;
}
.ycf-summary-item:nth-child(4) {
  animation-delay: 0.4s;
}
.ycf-summary-item:nth-child(5) {
  animation-delay: 0.5s;
}
.ycf-summary-item:nth-child(6) {
  animation-delay: 0.6s;
}

.ycf-summary-item:hover {
  border-color: #e53e3e;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px rgba(229, 62, 62, 0.15);
}

.ycf-summary-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(229, 62, 62, 0.05), transparent);
  transition: left 0.5s ease;
}

.ycf-summary-item:hover::before {
  left: 100%;
}

.ycf-summary-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: white;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.ycf-summary-item:hover {
  border-color: #e53e3e;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(229, 62, 62, 0.1);
}

.ycf-summary-item label {
  font-weight: 700;
  color: #4a5568;
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ycf-summary-item span {
  color: #2d3748;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  word-wrap: break-word;
}

.ycf-recommended-course {
  background: linear-gradient(135deg, #8b7355 0%, #a0916b 100%);
  color: white;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(139, 115, 85, 0.3);
  animation: pulse 2s infinite;
  position: relative;
  overflow: hidden;
}

.ycf-recommended-course::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: pulse 4s ease-in-out infinite;
}

.ycf-course-price-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.ycf-price {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  animation: slideInRight 0.8s ease-out;
}

.ycf-price:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.ycf-price {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ycf-duration {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 500;
}

.ycf-enhanced-form {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

.ycf-form-section {
  padding: 25px;
  border-bottom: 1px solid #e2e8f0;
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.ycf-form-section:nth-child(1) {
  animation-delay: 0.1s;
}
.ycf-form-section:nth-child(2) {
  animation-delay: 0.2s;
}
.ycf-form-section:nth-child(3) {
  animation-delay: 0.3s;
}

.ycf-form-section {
  padding: 25px;
  border-bottom: 1px solid #e2e8f0;
}

.ycf-form-section:last-of-type {
  border-bottom: none;
}

.ycf-form-section h4 {
  margin: 0 0 20px 0;
  color: #2d3748;
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid #e53e3e;
  display: inline-block;
}

.ycf-question-header {
  margin-bottom: 30px; /* Increased spacing */
  padding: 0 20px 20px 20px; /* Enhanced padding for all modal content areas */
}

.ycf-options-container {
  padding: 0 20px; /* Better spacing for question headers */
  margin-bottom: 30px;
}

.ycf-options {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Improved options container padding */
  padding: 0 10px; /* Added horizontal padding */
}

.ycf-navigation {
  padding: 30px 40px; /* Enhanced navigation padding */
  background: #f8f9fa;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
}

/* Enhanced button styling with modern gradients and animations */
.ycf-btn {
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ycf-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.ycf-btn:hover::before {
  left: 100%;
}

.ycf-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.ycf-btn:active {
  transform: translateY(-1px);
  transition: transform 0.1s ease;
}

.ycf-btn-secondary {
  background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
  color: white;
  padding: 14px 28px;
  font-size: 14px;
  min-width: 160px;
}

.ycf-btn-secondary:hover {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  box-shadow: 0 8px 25px rgba(74, 85, 104, 0.3);
}

.ycf-btn-primary {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 50%, #e53e3e 100%);
  background-size: 200% 100%;
  color: white;
  padding: 16px 32px;
  font-size: 15px;
  min-width: 280px;
  animation: gradientShift 3s ease-in-out infinite;
}

.ycf-btn-primary:hover {
  background: linear-gradient(135deg, #c53030 0%, #9c2626 50%, #c53030 100%);
  box-shadow: 0 10px 30px rgba(229, 62, 62, 0.4);
  animation: none;
}

.ycf-btn-large {
  padding: 18px 36px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  text-transform: none;
  letter-spacing: 0.3px;
}

.ycf-btn-large::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.ycf-btn-large:hover::after {
  width: 300px;
  height: 300px;
}

.ycf-btn-price {
  background: rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
}

.ycf-trigger-button {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ycf-trigger-button:hover {
  background: linear-gradient(135deg, #c53030 0%, #9c2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(229, 62, 62, 0.4);
}

/* Enhanced form actions styling */
.ycf-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 30px 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-top: 1px solid #dee2e6;
  border-radius: 0 0 20px 20px;
}

.ycf-form-actions .ycf-btn {
  flex: 1;
  max-width: 250px;
}

/* Added gradient animation keyframes */
@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes buttonPulse {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
  }
  50% {
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.5);
  }
}

/* Enhanced mobile responsiveness for buttons */
@media (max-width: 768px) {
  .ycf-form-actions {
    flex-direction: column;
    padding: 20px 15px;
    gap: 12px;
  }

  .ycf-form-actions .ycf-btn {
    width: 100%;
    max-width: none;
    min-width: auto;
  }

  .ycf-btn-large {
    padding: 14px 20px;
    font-size: 14px;
  }

  .ycf-btn-primary {
    min-width: 100%;
    padding: 14px 20px;
    font-size: 14px;
  }

  .ycf-btn-secondary {
    min-width: auto;
    padding: 12px 20px;
    font-size: 13px;
  }

  /* Fix navigation buttons for mobile */
  .ycf-navigation {
    flex-direction: column;
    padding: 25px 20px; /* Better mobile padding for quiz container */
    gap: 12px;
  }

  .ycf-navigation .ycf-btn {
    width: 100%;
    max-width: none;
    min-width: auto;
  }

  /* Ensure hero button fits mobile width */
  .ycf-hero-btn {
    width: 100%;
    max-width: 280px;
    padding: 14px 20px;
    font-size: 14px;
    margin: 0 auto;
    display: block;
  }

  /* Fix modal content padding for mobile */
  .ycf-modal-content {
    margin: 10px;
    width: calc(100% - 20px);
    max-width: none;
  }

  .ycf-quiz-container {
    padding: 25px 20px; /* Improved mobile padding for question headers */
  }

  /* Adjust button text wrapping for mobile */
  .ycf-btn-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ycf-btn-price {
    flex-shrink: 0;
  }
}

/* Additional mobile fixes for very small screens */
@media (max-width: 480px) {
  .ycf-btn-large .ycf-btn-text {
    font-size: 12px;
  }

  .ycf-btn-primary {
    padding: 12px 16px;
    font-size: 12px;
  }

  .ycf-btn-secondary {
    padding: 10px 16px;
    font-size: 12px;
  }

  .ycf-hero-btn {
    padding: 12px 16px;
    font-size: 12px;
  }

  .ycf-modal-content {
    margin: 5px;
    width: calc(100% - 10px);
  }
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
  .ycf-form-section {
    padding: 20px;
    animation-duration: 0.6s;
  }

  .ycf-summary-item {
    animation-duration: 0.5s;
  }

  .ycf-option:hover {
    transform: translateY(-2px) scale(1.01);
  }

  .ycf-btn-large:hover {
    transform: translateY(-1px);
  }

  .ycf-registration {
    max-width: 100%;
  }

  .ycf-summary-grid {
    grid-template-columns: 1fr;
  }

  .ycf-form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .ycf-form-section {
    padding: 20px;
  }

  .ycf-form-actions {
    flex-direction: column;
    padding: 20px;
  }

  .ycf-summary-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .ycf-option-image {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }

  .ycf-option-text {
    align-items: center;
  }

  .ycf-question-header {
    padding: 0 15px; /* Reduced mobile padding */
  }

  .ycf-options-container {
    padding: 0 15px; /* Reduced mobile padding */
  }
}

/* Added smooth fade-in animations for form elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Adding styles for direct registration buttons and modal */
.ycf-direct-register-button {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ycf-direct-register-button:hover {
  background: linear-gradient(135deg, #c53030 0%, #9c2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(229, 62, 62, 0.4);
}

/* Direct registration modal specific styles */
#ycf-direct-registration-modal .ycf-modal-content {
  max-width: 750px;
}

#ycf-direct-registration-modal .ycf-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

#ycf-direct-registration-modal .ycf-option {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#ycf-direct-registration-modal .ycf-option:hover {
  border-color: #e53e3e;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 62, 62, 0.15);
}

#ycf-direct-registration-modal .ycf-option.ycf-option-selected {
  border-color: #e53e3e;
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

#ycf-direct-registration-modal .ycf-option-content h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
}

#ycf-direct-registration-modal .ycf-option-content p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #718096;
}

#ycf-direct-registration-modal .ycf-price {
  display: inline-block;
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}

#ycf-direct-registration-modal .ycf-course-summary {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 25px;
  margin: 25px 0;
  border: 2px solid #dee2e6;
}

#ycf-direct-registration-modal .ycf-course-summary h4 {
  margin: 0 0 20px 0;
  color: #2d3748;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid #e53e3e;
}

#ycf-direct-registration-modal .ycf-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

#ycf-direct-registration-modal .ycf-summary-item:last-child {
  border-bottom: none;
}

#ycf-direct-registration-modal .ycf-summary-item.ycf-registration-fee {
  background: rgba(229, 62, 62, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
  font-weight: 600;
}

#ycf-direct-registration-modal .ycf-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

#ycf-direct-registration-modal .ycf-form-group-full {
  grid-column: 1 / -1;
}

#ycf-direct-registration-modal .ycf-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 500;
}

#ycf-direct-registration-modal .ycf-form-group input,
#ycf-direct-registration-modal .ycf-form-group select,
#ycf-direct-registration-modal .ycf-form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

#ycf-direct-registration-modal .ycf-form-group input:focus,
#ycf-direct-registration-modal .ycf-form-group select:focus,
#ycf-direct-registration-modal .ycf-form-group textarea:focus {
  outline: none;
  border-color: #8b7355;
}

/* Mobile responsiveness for direct registration modal */
@media (max-width: 768px) {
  #ycf-direct-registration-modal .ycf-options-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  #ycf-direct-registration-modal .ycf-form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  #ycf-direct-registration-modal .ycf-modal-content {
    margin: 10px;
    width: calc(100% - 20px);
  }

  #ycf-direct-registration-modal .ycf-quiz-container {
    padding: 25px 20px; /* Enhanced mobile navigation padding */
  }

  /* Adjusted summary note padding for mobile */
  #ycf-direct-registration-modal .ycf-summary-note {
    padding: 15px;
    font-size: 13px;
  }
}

/* Adding proper padding to modal header and content areas */
#ycf-direct-registration-modal .ycf-modal-header {
  background: linear-gradient(135deg, #8b7355 0%, #a0916b 100%);
  color: white;
  padding: 30px 40px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

#ycf-direct-registration-modal .ycf-modal-header::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;
}

#ycf-direct-registration-modal .ycf-header-content {
  position: relative;
  z-index: 2;
}

#ycf-direct-registration-modal .ycf-om-symbol {
  font-size: 48px;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
  display: block;
}

#ycf-direct-registration-modal .ycf-modal-header h2 {
  margin: 0 0 10px 0;
  font-size: 28px;
  font-weight: 700;
  color: white;
}

#ycf-direct-registration-modal .ycf-modal-header p {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* Ensuring close button is visible on brown background */
#ycf-direct-registration-modal .ycf-close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: white;
  z-index: 10;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#ycf-direct-registration-modal .ycf-close:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: scale(1.1);
}

/* Added base modal positioning styles that were missing */
.ycf-modal {
  display: none;
  position: fixed !important;
  z-index: 100000 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(139, 115, 85, 0.9) !important; /* Less transparent brown overlay */
  align-items: center !important;
  justify-content: center !important;
}

.ycf-modal.show {
  display: flex !important;
}

.ycf-modal-content {
  background-color: #fff;
  border-radius: 12px;
  position: relative;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin: 20px; /* Added margin for better spacing */
}

.ycf-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.ycf-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Updated modal overlay to light brown background and improved modal styling */
.ycf-modal {
  display: none;
  position: fixed !important;
  z-index: 100000 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(139, 115, 85, 0.9) !important; /* Light brown overlay */
  align-items: center !important;
  justify-content: center !important;
}

.ycf-modal.show {
  display: flex !important;
}

.ycf-modal-content {
  background-color: #fff;
  border-radius: 12px;
  position: relative;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin: 20px; /* Added margin for better spacing */
}

/* Enhanced quiz modal header styling to match reference image */
.ycf-modal-header {
  background: linear-gradient(135deg, #8b7355 0%, #a0916b 100%);
  color: white;
  padding: 30px 40px 20px 40px !important; /* Consistent header padding */
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.ycf-modal-header::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;
}

/* Improved quiz container padding and styling */
.ycf-quiz-container {
  padding: 40px; /* Consistent padding for all quiz containers */
  background: white;
  min-height: 200px;
}

/* Enhanced form styling for quiz modals */
.ycf-quiz-container h2 {
  color: #2c3e50;
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 600;
}

.ycf-quiz-container p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Improved question styling */
.ycf-question {
  margin-bottom: 30px;
}

.ycf-question h3 {
  color: #2c3e50;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Enhanced option styling with better spacing */
.ycf-option {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.ycf-option:hover {
  background: #e3f2fd;
  border-color: #8b7355;
}

.ycf-option.selected {
  background: #e8f5e8;
  border-color: #8b7355;
}

.ycf-option input[type="radio"] {
  margin-right: 12px;
  transform: scale(1.2);
}

.ycf-option label {
  cursor: pointer;
  font-weight: 500;
  color: #2c3e50;
  flex: 1;
}

/* Enhanced close button styling */
.ycf-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.ycf-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Enhanced button styling */
.ycf-btn {
  background: linear-gradient(135deg, #8b7355 0%, #a0916b 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.ycf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 115, 85, 0.4);
}

/* Improved form section styling for registration modals */
.ycf-form-section {
  padding: 30px 40px; /* Increased padding for better spacing */
  background: #fff;
  border-radius: 0 0 12px 12px;
}

.ycf-form-section h2 {
  color: #2c3e50;
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 600;
}

.ycf-form-section p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Enhanced form field styling */
.ycf-form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.ycf-form-group {
  flex: 1;
}

.ycf-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 500;
}

.ycf-form-group input,
.ycf-form-group select,
.ycf-form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.ycf-form-group input:focus,
.ycf-form-group select:focus,
.ycf-form-group textarea:focus {
  outline: none;
  border-color: #8b7355;
}

/* Standardizing Om symbol size across all modals */
.ycf-om-symbol {
  font-size: 48px !important;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
  display: block;
}

#ycf-quiz-modal .ycf-om-symbol,
#ycf-direct-registration-modal .ycf-om-symbol {
  font-size: 48px !important;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
}

/* Updating trigger button to use red gradient instead of blue */
.ycf-trigger-button {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ycf-trigger-button:hover {
  background: linear-gradient(135deg, #c53030 0%, #9c2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(229, 62, 62, 0.4);
}

/* Adding proper padding to quiz modal content */
#ycf-quiz-modal .ycf-modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

#ycf-quiz-modal .ycf-modal-header {
  background: linear-gradient(135deg, #8b7355 0%, #a0916b 100%);
  color: white;
  padding: 30px 40px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#ycf-quiz-modal .ycf-quiz-container {
  padding: 40px;
  background: white;
}

/* Decreasing overlay transparency and ensuring consistent styling */
.ycf-modal {
  display: none;
  position: fixed !important;
  z-index: 10000 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(139, 115, 85, 0.9) !important; /* Less transparent brown overlay */
  align-items: center !important;
  justify-content: center !important;
}

/* Standardizing all buttons to use red gradient */
.ycf-btn,
.ycf-submit-btn,
.ycf-next-btn,
.ycf-prev-btn {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%) !important;
  color: white !important;
  border: none !important;
  padding: 12px 30px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  margin-top: 20px !important;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3) !important;
}

.ycf-btn:hover,
.ycf-submit-btn:hover,
.ycf-next-btn:hover,
.ycf-prev-btn:hover {
  background: linear-gradient(135deg, #c53030 0%, #9c2626 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(229, 62, 62, 0.4) !important;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
  .ycf-modal-content {
    margin: 10px !important;
    width: calc(100% - 20px) !important;
    max-width: none !important;
    max-height: calc(100vh - 20px) !important;
  }

  /* Better mobile padding for quiz container */
  .ycf-quiz-container {
    padding: 30px 25px !important;
  }

  /* Improved mobile padding for question headers */
  .ycf-question-header {
    padding: 0 15px 20px 15px !important;
  }

  /* Better mobile padding for options container */
  .ycf-options-container {
    padding: 0 15px !important;
  }

  /* Enhanced mobile navigation padding */
  .ycf-navigation {
    padding: 20px 15px !important;
  }

  .ycf-modal-header {
    padding: 20px 15px 15px 15px !important;
  }

  .ycf-om-symbol {
    font-size: 36px !important;
  }

  .ycf-trigger-button,
  .ycf-direct-register-button {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }

  /* Better mobile padding for direct registration */
  #ycf-direct-registration-modal .ycf-quiz-container {
    padding: 30px 25px !important;
  }

  #ycf-direct-registration-modal .ycf-question-header {
    padding: 0 15px 20px 15px !important;
  }
}

@media (max-width: 480px) {
  .ycf-modal-content {
    margin: 5px !important;
    width: calc(100% - 10px) !important;
    border-radius: 8px !important;
  }

  /* Enhanced small mobile padding */
  .ycf-quiz-container {
    padding: 20px 15px !important;
  }

  /* Better small mobile question header padding */
  .ycf-question-header {
    padding: 0 10px 15px 10px !important;
  }

  /* Improved small mobile options padding */
  .ycf-options-container {
    padding: 0 10px !important;
  }

  /* Enhanced small mobile navigation padding */
  .ycf-navigation {
    padding: 20px 15px !important;
  }

  .ycf-modal-header {
    padding: 15px 10px 10px 10px !important;
  }

  /* Better small mobile padding for direct registration */
  #ycf-direct-registration-modal .ycf-quiz-container {
    padding: 20px 15px !important;
  }

  #ycf-direct-registration-modal .ycf-question-header {
    padding: 0 10px 15px 10px !important;
  }
}

/* Added wrapper padding for direct course forms */
#ycf-direct-registration-modal .ycf-form-wrapper {
  padding: 30px;
}

#ycf-direct-registration-modal form input,
#ycf-direct-registration-modal form select,
#ycf-direct-registration-modal form textarea {
  margin-bottom: 15px;
  padding: 12px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

#ycf-direct-registration-modal .ycf-question-header {
  padding: 0 0 20px 0;
  margin-bottom: 20px;
}

#ycf-direct-registration-modal .ycf-options-grid {
  margin-bottom: 25px;
}

#ycf-direct-registration-modal .ycf-navigation {
  padding: 20px 0;
}

#ycf-direct-registration-modal .ycf-form-actions {
  padding: 20px 0 0 0;
}

/* Mobile responsive padding for wrapper */
@media (max-width: 768px) {
  #ycf-direct-registration-modal .ycf-form-wrapper {
    padding: 20px;
  }
}
