/* Enhanced Enrollment Form Styling */

/* Make the sidebar card more premium looking with darker theme */
.slim-enrollment-card {
  background: linear-gradient(145deg, rgba(18, 18, 23, 0.95), rgba(15, 15, 20, 0.98));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transform: translateZ(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: auto; /* Let it grow based on content */
}

.slim-enrollment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

/* Improved header styling with darker theme */
.sidebar-card-header {
  background: linear-gradient(to right, #1a1a1a, #0f0f0f);
  padding: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
}

/* Subtle separator instead of blue accent */
.sidebar-card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  width: 70%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.enrollment-header {
  color: white;
  text-align: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

/* Price section styling with darker theme */
.slim-price-section {
  background: rgba(20, 20, 20, 0.5);
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  text-align: center;
}

.slim-price-section .current-price {
  font-size: 2.2rem;
  font-weight: 800;
  /* Use white with slight gradient for better visibility */
  background: linear-gradient(to right, #ffffff, #dddddd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.slim-price-section .old-price {
  opacity: 0.6;
  text-decoration: line-through;
  font-size: 1.1rem;
  color: #b0b0b0;
}

/* Stats section styling */
.slim-stats {
  display: flex;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(15, 15, 18, 0.5);
}

.slim-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(25, 25, 30, 0.5);
  transition: all 0.2s ease;
}

.slim-stats .stat-item:hover {
  background: rgba(58, 128, 193, 0.1);
}

/* Change icon color to white/gray instead of blue */
.slim-stats .stat-item i {
  color: #ffffff;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.slim-stats .stat-item:hover i {
  transform: scale(1.1);
}

.slim-stats .stat-item span {
  color: #f0f0f0;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Instructor info styling */
.slim-instructor {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(15, 15, 18, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.slim-instructor-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.slim-instructor:hover .slim-instructor-img {
  transform: scale(1.05);
  border-color: rgba(58, 128, 193, 0.8);
}

.slim-instructor-info {
  display: flex;
  flex-direction: column;
}

.slim-instructor-name {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

/* Change role color to white/gray instead of blue */
.slim-instructor-role {
  color: #b0b0b0;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Form styling with darker theme */
.slim-form {
  padding: 1.5rem;
  background: rgba(18, 18, 20, 0.5);
}

.slim-form-group {
  margin-bottom: 0.85rem; /* Reduce spacing between form groups */
}

.slim-form-group label {
  color: #f0f0f0;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.35rem; /* Reduce space below labels */
  display: block;
}

.input-icon {
  position: relative;
}

/* Change icon color to white/gray */
.input-icon i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #b0b0b0;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.textarea-icon i {
  top: 20px; /* Adjust icon position for textarea */
}

.input-icon input, 
.input-icon textarea {
  padding: 0.65rem 0.75rem 0.65rem 2.5rem; /* Slightly reduce vertical padding */
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #f5f5f5;
  width: 100%;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.input-icon input:focus, 
.input-icon textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(58, 128, 193, 0.5);
  box-shadow: 0 0 0 2px rgba(58, 128, 193, 0.25);
}

.input-icon input:focus + i,
.input-icon textarea:focus + i {
  color: #64a4e1;
  transform: translateY(-50%) scale(1.1);
}

/* Make textarea smaller */
.slim-form-group textarea {
  height: 60px; /* Control height precisely */
  min-height: unset; /* Override any min-height */
}

/* Remove scrollbar from enrollment form */
.slim-card-scrollable {
  max-height: none; /* Remove max-height constraint */
  overflow-y: visible; /* Change from auto to visible */
  padding-right: 0; /* No need for scrollbar padding */
}

/* Submit button styling - dark theme */
.btn-accent {
  background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.btn-accent:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #3f3f3f 0%, #212121 100%);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.btn-accent::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(45deg);
  transition: all 0.8s;
  z-index: 1;
  opacity: 0;
}

.btn-accent:hover::after {
  opacity: 1;
  top: 100%;
  left: 100%;
}

.btn-accent span {
  position: relative;
  z-index: 2;
}

/* Secure payment text styling */
.slim-secure {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.75rem;
  background: rgba(30, 30, 35, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.slim-secure i {
  color: #f5f5f5;
  font-size: 1rem;
}

/* Mobile enrollment styling */
.mobile-enrollment-section .enrollment-form {
  background: rgba(25, 25, 35, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Mobile action button with dark theme */
.mobile-action-btn button {
  background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
  font-weight: 700;
  letter-spacing: 0.5px;
  height: 55px; /* Taller button for easier tapping */
  border-radius: 0;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  border: none;
}

.mobile-action-btn::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
}

/* Thank you modal enhancements */
.thank-you-modal.show .thank-you-content {
  animation: modalScale 0.3s forwards ease-out;
}

@keyframes modalScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Thank you modal with darker theme */
.thank-you-content {
  background: linear-gradient(145deg, rgba(18, 18, 23, 0.95), rgba(15, 15, 20, 0.98));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Add subtle hover effects to form inputs */
.input-icon input:hover, 
.input-icon textarea:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
  .mobile-enrollment-section .enrollment-form {
    margin: 0 auto;
    max-width: 500px;
  }
}

@media (max-width: 767.98px) {
  .enrollment-header {
    font-size: 1.2rem;
  }
  
  .slim-price-section .current-price {
    font-size: 2rem;
  }
  
  .btn-accent {
    font-size: 0.95rem;
    padding: 0.8rem 0;
  }
}
