/**
 * Coach application funnel: /coach/apply/*
 * Uses --am-btn-color / --blue from layouts/frontend-app.blade.php
 */
.am-coach-landing,
.am-coach-apply,
.am-coach-thankyou {
  --coach-brand: var(--am-btn-color, var(--blue, #295c51));
  --coach-text: #1a2322;
  --coach-muted: #5c6563;
  --coach-surface: #ffffff;
  --coach-page-bg: #faf8f5;
  --coach-border: color-mix(in srgb, var(--coach-brand) 14%, #e8e4dc);
  --coach-accent-soft: color-mix(in srgb, var(--coach-brand) 9%, #ffffff);
}

.am-coach-apply input.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.am-coach-landing {
  background-color: var(--coach-page-bg);
  min-height: calc(100vh - 200px);
  padding: 60px 0;
}

.am-coach-landing__content {
  max-width: 900px;
  margin: 0 auto;
}

.am-coach-landing__header {
  text-align: center;
  margin-bottom: 40px;
}

.am-coach-landing__badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  box-sizing: border-box !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 8px 20px 8px 32px !important;
  border-radius: 50px !important;
  background: var(--am-preheader-bg) !important;
  color: #111 !important;
  border: 1px solid rgba(17, 17, 17, 0.12) !important;
  font-family: "Poppins", sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  margin: 0 auto 20px !important;
}

.am-coach-landing__line {
  display: none !important;
}

.am-coach-landing__badge::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: currentColor !important;
}

.am-coach-landing__header h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 44px;
  font-weight: 600;
  color: var(--coach-text);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.am-coach-landing__header p {
  font-size: 18px;
  color: var(--coach-muted);
  line-height: 1.65;
  max-width: 800px;
  margin: 0 auto;
}

.am-coach-landing__card {
  background: var(--coach-surface);
  border-radius: 16px;
  padding: 50px;
  border: 1px solid var(--coach-border);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--coach-brand) 6%, transparent);
}

.am-coach-landing__feature {
  margin-bottom: 35px;
}

.am-coach-landing__feature:last-of-type {
  margin-bottom: 0;
}

.am-coach-landing__feature h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--coach-text);
  margin-bottom: 12px;
}

.am-coach-landing__feature p {
  font-size: 16px;
  color: var(--coach-muted);
  line-height: 1.7;
}

.am-coach-landing__cta {
  text-align: center;
  margin-top: 40px;
}

.am-coach-landing .am-btn.am-btn--large:before,
.am-coach-apply .am-btn.am-btn--large:before,
.am-coach-apply .am-btn--outline:before {
  display: none;
}

.am-coach-landing .am-btn.am-btn--large,
.am-coach-apply .am-btn.am-btn--large {
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;
  background-color: #111;
  border: none;
  color: #fff;
  outline: none;
  box-shadow: none;
}

.am-coach-landing .am-btn.am-btn--large:hover,
.am-coach-landing .am-btn.am-btn--large:focus,
.am-coach-apply .am-btn.am-btn--large:hover,
.am-coach-apply .am-btn.am-btn--large:focus {
  background-color: #000;
  border: none;
  filter: none;
  color: #fff;
  outline: none;
  box-shadow: none;
}

/* —— Form flow —— */
.am-coach-apply {
  background-color: var(--coach-page-bg);
  min-height: calc(100vh - 200px);
  padding: 60px 0;
}

.am-coach-apply__content {
  max-width: 800px;
  margin: 0 auto;
}

.am-coach-apply__header {
  text-align: center;
  margin-bottom: 40px;
}

.am-coach-apply__badge {
  margin-bottom: 20px;
}

.am-coach-apply__badge > span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  box-sizing: border-box !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 8px 20px 8px 32px !important;
  border-radius: 50px !important;
  background: var(--am-preheader-bg) !important;
  color: #111 !important;
  border: 1px solid rgba(17, 17, 17, 0.12) !important;
  font-family: "Poppins", sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.am-coach-apply__badge > span::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: currentColor !important;
}

.am-coach-apply__header h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 44px;
  font-weight: 600;
  color: var(--coach-text);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.am-coach-apply__header p {
  font-size: 16px;
  color: var(--coach-muted);
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
}

.am-coach-apply__card {
  background: var(--coach-surface);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--coach-border);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--coach-brand) 6%, transparent);
}

.am-coach-apply__card h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--coach-text);
  margin-bottom: 8px;
}

.am-coach-apply__subtitle {
  font-size: 14px;
  color: var(--coach-muted);
  margin-bottom: 30px;
}

.am-coach-apply__fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.am-coach-apply__field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.am-coach-apply__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.am-coach-apply__field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--coach-text);
}

.am-coach-apply .am-required {
  color: #c45c4a;
}

.am-coach-apply__field input,
.am-coach-apply__field textarea,
.am-coach-apply__field select {
  padding: 12px 16px;
  border: 1px solid var(--coach-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #faf9f7;
}

.am-coach-apply__field input:focus,
.am-coach-apply__field textarea:focus,
.am-coach-apply__field select:focus {
  outline: none;
  border-color: var(--coach-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--coach-brand) 18%, transparent);
  background: #fff;
}

.am-coach-apply__field textarea {
  resize: vertical;
  min-height: 100px;
}

.am-coach-apply .am-error {
  color: #c45c4a;
  font-size: 12px;
  margin-top: 4px;
}

.am-coach-apply .am-invalid input,
.am-coach-apply .am-invalid textarea,
.am-coach-apply .am-invalid select {
  border-color: #c45c4a;
}

.am-coach-apply__certification-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.am-coach-apply__cert-option {
  border: 2px solid var(--coach-border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #faf9f7;
}

.am-coach-apply__cert-option:hover {
  border-color: color-mix(in srgb, var(--coach-brand) 45%, var(--coach-border));
}

.am-coach-apply__cert-option.am-cert-selected {
  border-color: var(--coach-brand);
  background-color: var(--coach-accent-soft);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--coach-brand) 25%, transparent);
}

.am-coach-apply__cert-check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--coach-brand);
}

.am-coach-apply__cert-check svg {
  display: block;
}

.am-coach-apply__cert-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.am-coach-apply__cert-content strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--coach-text);
}

.am-coach-apply__cert-content span {
  font-size: 14px;
  color: var(--coach-muted);
}

.am-coach-apply__conditional-fields {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.am-coach-apply__actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
}

.am-coach-apply .am-btn--outline {
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;
  background: transparent;
  border: none;
  color: #111;
  border-radius: 50px;
  outline: none;
  box-shadow: none;
}

.am-coach-apply .am-btn--outline:hover,
.am-coach-apply .am-btn--outline:focus {
  background: #111;
  border: none;
  color: #fff;
  outline: none;
  box-shadow: none;
}

.am-coach-apply .am-select {
  width: 100%;
}

.am-coach-apply .am-select2 {
  width: 100% !important;
}

/* —— Thank you —— */
.am-coach-thankyou {
  background-color: var(--coach-page-bg);
  min-height: calc(100vh - 200px);
  padding: 60px 0;
  display: flex;
  align-items: center;
}

.am-coach-thankyou__content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.am-coach-thankyou__header {
  text-align: center;
}

.am-coach-thankyou__badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  box-sizing: border-box !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 8px 20px 8px 32px !important;
  border-radius: 50px !important;
  background: var(--am-preheader-bg) !important;
  color: #111 !important;
  border: 1px solid rgba(17, 17, 17, 0.12) !important;
  font-family: "Poppins", sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  margin: 0 auto 30px !important;
}

.am-coach-thankyou__line {
  display: none !important;
}

.am-coach-thankyou__badge::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: currentColor !important;
}

.am-coach-thankyou__header h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 44px;
  font-weight: 600;
  color: var(--coach-text);
  margin-bottom: 25px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.am-coach-thankyou__header p {
  font-size: 18px;
  color: var(--coach-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .am-coach-landing,
  .am-coach-apply,
  .am-coach-thankyou {
    padding: 40px 0;
  }

  .am-coach-landing__header h1 {
    font-size: 44px;
  }

  .am-coach-landing__card {
    padding: 30px 20px;
  }

  .am-coach-landing__feature {
    margin-bottom: 25px;
  }

  .am-coach-apply__header h1 {
    font-size: 44px;
  }

  .am-coach-apply__card {
    padding: 30px 20px;
  }

  .am-coach-apply__field-row {
    grid-template-columns: 1fr;
  }

  .am-coach-apply__certification-options {
    grid-template-columns: 1fr;
  }

  .am-coach-apply__actions {
    flex-direction: column;
  }

  .am-coach-apply .am-btn--large,
  .am-coach-apply .am-btn--outline {
    width: 100%;
  }

  .am-coach-thankyou__header h1 {
    font-size: 44px;
  }

  .am-coach-thankyou__header p {
    font-size: 16px;
  }
}
