/* ===========================================
   Leadgen Step 2 - Channel Selection
   =========================================== */

.leadgen-step2 ~ header,
body:has(.leadgen-step2) > header {
  display: none;
}

.leadgen-step2 ~ footer,
body:has(.leadgen-step2) > footer {
  display: none;
}

.leadgen-step2__content {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 30px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

@media only screen and (max-width: 575px) {
  .leadgen-step2__content {
    padding: 30px 20px;
    margin: 0 15px;
  }
}

/* Progress Indicator */
.leadgen-step2__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.leadgen-step2__progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 96px;
}

.leadgen-step2__progress-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e2e8f0;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.leadgen-step2__progress-step.is-active .leadgen-step2__progress-number {
  background: var(--Blue, #0158b7);
  color: #fff;
}

.leadgen-step2__progress-step.is-complete .leadgen-step2__progress-number {
  background: #4CAF50;
  color: #fff;
}

.leadgen-step2__progress-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leadgen-step2__progress-step.is-active .leadgen-step2__progress-label {
  color: var(--Blue, #0158b7);
  font-weight: 600;
}

.leadgen-step2__progress-line {
  width: 60px;
  height: 2px;
  background: #e2e8f0;
  margin: 0 0 20px 0;
}

.leadgen-step2__progress-line.is-complete {
  background: #4CAF50;
}

@media only screen and (max-width: 480px) {
  .leadgen-step2__progress-line {
    width: 30px;
  }
  .leadgen-step2__progress-label {
    font-size: 10px;
  }
}

/* Heading */
.leadgen-step2__heading {
  text-align: center;
  margin-bottom: 30px;
}

.leadgen-step2__heading h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.leadgen-step2__heading p {
  font-size: 15px;
  color: #666;
}

@media only screen and (max-width: 575px) {
  .leadgen-step2__heading h2 {
    font-size: 20px;
  }
}

/* Channel Selection */
.leadgen-step2__channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.leadgen-step2__channel {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.leadgen-step2__channel:hover {
  border-color: #cbd5e0;
  background: #f8fafc;
}

.leadgen-step2__channel.is-selected {
  border-color: var(--Blue, #0158b7);
  background: rgba(1, 88, 183, 0.03);
}

.leadgen-step2__channel input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.leadgen-step2__channel-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f9fc;
  border-radius: 10px;
}

.leadgen-step2__channel.is-selected .leadgen-step2__channel-icon {
  background: #fff;
}

.leadgen-step2__channel-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.leadgen-step2__channel-label {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.leadgen-step2__channel-description {
  font-size: 13px;
  color: #666;
}

.leadgen-step2__channel-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e0;
  transition: all 0.2s ease;
}

.leadgen-step2__channel.is-selected .leadgen-step2__channel-check {
  color: var(--Blue, #0158b7);
}

.leadgen-step2__channel-check svg path {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.leadgen-step2__channel.is-selected .leadgen-step2__channel-check svg path {
  opacity: 1;
}

/* Email Input */
.leadgen-step2__email-input {
  margin-bottom: 20px;
  animation: leadgen-fadeIn 0.3s ease;
}

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

.leadgen-step2__email-input label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
  padding-left: 4px;
}

.leadgen-step2__input {
  width: 100%;
  font-size: 16px;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #333;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.leadgen-step2__input:focus {
  outline: none;
  border-color: var(--Blue, #0158b7);
  box-shadow: 0 0 0 3px rgba(1, 88, 183, 0.1);
}

.leadgen-step2__input::placeholder {
  color: #999;
}

.leadgen-step2__input.is-error {
  border-color: #e53e3e;
}

/* Submit Button */
.leadgen-step2__submit {
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 24px;
  cursor: pointer;
  transition: all 0.3s;
  color: #fff;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #FF6700 0%, #FF8533 100%);
  box-shadow: 0 4px 15px rgba(255, 103, 0, 0.3);
}

.leadgen-step2__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 103, 0, 0.4);
}

.leadgen-step2__submit:active {
  transform: translateY(0);
}

.leadgen-step2__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.leadgen-step2__submit.is-loading {
  pointer-events: none;
}

.leadgen-step2__submit.is-loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: leadgen-spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes leadgen-spin {
  to { transform: rotate(360deg); }
}

/* Trust */
.leadgen-step2__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.leadgen-step2__trust span {
  font-size: 12px;
  color: #666;
}

/* Error Message */
.leadgen-step2__error,
.leadgen-step2 .leadgen-error {
  background: #fed7d7;
  color: #c53030;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}

.leadgen-step2__error.is-visible,
.leadgen-step2 .leadgen-error.is-visible {
  display: block;
  animation: leadgen-fadeIn 0.3s ease;
}

/* Hide https://www.ausbildung-weiterbildung.ch/Anbieter/Bewertungen-Erfahrungen?schoolID=3931&Referrer=Detail link on specific page */
body > main + a.footer-fixed {
    display: none !important;
}