/* Trials specific styling */
.trials-hero {
  position: relative;
  overflow: hidden;
}

.trials-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(13, 13, 13, 0.7) 0%, rgba(13, 13, 13, 0.4) 100%);
  z-index: 1;
}

.trials-hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

/* Trial Cards (Dynamic) */
.trials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  min-height: 200px; /* Prevent black void if empty */
}

.trial-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 35px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.trial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 6px; height: 100%;
  background: linear-gradient(to bottom, var(--color-accent), #f97316);
  opacity: 0.8;
}

.trial-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 197, 24, 0.3);
  box-shadow: 0 20px 40px rgba(245, 197, 24, 0.15), 0 0 20px rgba(245, 197, 24, 0.05);
}

.trial-date {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 5px;
}

.trial-time-venue {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.trial-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25px;
}

.trial-detail-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.trial-detail-label {
  color: #888;
  font-size: 0.9rem;
}

.trial-detail-value {
  color: #fff;
  font-weight: 600;
}

/* Preparation Guide */
.prep-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.prep-column {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.prep-column:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 197, 24, 0.15);
}

.prep-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prep-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  color: #ccc;
  line-height: 1.6;
}

.prep-list li i {
  color: var(--color-accent);
  margin-top: 5px;
}

/* FAQ Accordion */
.faq-accordion {
  margin-top: 10px;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 5px;
}

.faq-question {
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-question i {
  font-size: 0.8rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-item.active .faq-question {
  color: var(--color-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #999;
  line-height: 1.7;
  font-size: 0.9rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* Trial Wizard Modal */
.trial-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.trial-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.trial-modal {
  background: #111;
  width: 90%;
  max-width: 800px;
  height: 90vh;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  transform: translateY(50px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.trial-modal-overlay.active .trial-modal {
  transform: translateY(0) scale(1);
}

.trial-modal-header {
  padding: 30px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.trial-modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: #fff;
  letter-spacing: 2px;
  margin: 0;
}

.trial-modal-close {
  background: rgba(255,255,255,0.05);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.trial-modal-close:hover {
  background: var(--color-accent);
  color: #000;
  transform: rotate(90deg);
}

.trial-modal-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 40px;
}

.trial-modal-body::-webkit-scrollbar {
  width: 6px;
}
.trial-modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.trial-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}
.trial-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

/* Wizard Progress */
.wizard-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 15px; left: 0; width: 100%; height: 2px;
  background: rgba(255,255,255,0.1);
  z-index: 1;
}

.progress-bar-fill {
  position: absolute;
  top: 15px; left: 0; height: 2px;
  background: var(--color-accent);
  z-index: 2;
  transition: width 0.4s ease;
}

.progress-step {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.step-marker {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #222;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.progress-step.active .step-marker {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #000;
  box-shadow: 0 0 15px rgba(245, 197, 24, 0.4);
}

.progress-step.completed .step-marker {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #000;
  font-size: 0;
}

.progress-step.completed .step-marker::after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.9rem;
}

.step-label {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
  white-space: nowrap;
}

.progress-step.active .step-label {
  color: #fff;
}

/* Wizard Panels */
.wizard-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.wizard-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #aaa;
  font-size: 0.9rem;
}

.form-group input, 
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  transition: all 0.3s;
}

.form-group input:focus, 
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.05);
}

.otp-group {
  display: flex;
  gap: 10px;
}

.btn-otp {
  background: rgba(245, 197, 24, 0.1);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 12px;
  padding: 0 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}

.btn-otp:hover {
  background: var(--color-accent);
  color: #000;
}

/* Selectable Cards (Slots/Level) */
.selectable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.selectable-card {
  background: rgba(255,255,255,0.02);
  border: 2px solid rgba(255,255,255,0.05);
  border-radius: 15px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

.selectable-card h4 {
  margin: 0 0 5px 0;
  color: #fff;
  font-size: 1.1rem;
}

.selectable-card p {
  margin: 0;
  color: #888;
  font-size: 0.9rem;
}

.selectable-card:hover {
  background: rgba(255,255,255,0.05);
}

.selectable-card.selected {
  border-color: var(--color-accent);
  background: rgba(245, 197, 24, 0.05);
}

.selectable-card.selected h4 {
  color: var(--color-accent);
}

/* Wizard Footer */
.trial-modal-footer {
  padding: 30px 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  background: #0d0d0d;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.checkout-box {
  background: rgba(245, 197, 24, 0.05);
  border: 1px dashed var(--color-accent);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .prep-guide-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  .wizard-progress { 
    flex-wrap: wrap; 
    gap: 20px; 
    justify-content: center;
  }
  .wizard-progress::before, .progress-bar-fill {
    display: none;
  }
  .trial-modal {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .trial-modal-footer {
    border-radius: 0;
  }
}
