main:has(> #dfp-registration-form) { max-width: 1100px; width: 100%; padding-top: 34px; padding-bottom: 64px; }
#dfp-registration-form { margin: 0 auto; color: var(--tc-ink, #202725); }
#dfp-registration-form .dfp-card { padding: 0; }
#dfp-registration-form .dfp-event-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 32px; border: 1px solid #3a3429; border-radius: 8px; margin-bottom: 22px;
  background: #20201d; color: #ffffff; box-shadow: 0 16px 42px rgba(32, 32, 29, .14);
}
#dfp-registration-form .dfp-kicker { color: #e0c284; font-size: 12px; font-weight: 650; margin-bottom: 8px; text-transform: uppercase; }
#dfp-registration-form .dfp-title { font-size: 42px; line-height: 1.12; font-weight: 750; margin: 0; color: #ffffff; }
#dfp-registration-form .dfp-date { font-size: 20px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; color: #ffffff; }
#dfp-registration-form .dfp-date small { display: block; font-size: 12px; color: #d8d0c4; font-weight: 400; text-align: right; margin-top: 4px; }
#dfp-registration-form .dfp-pack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#dfp-registration-form .dfp-pack {
  padding: 22px 24px; background: rgba(255, 255, 255, .92); border: 1px solid var(--tc-border);
  border-left: 4px solid var(--tc-brand); border-radius: 8px; box-shadow: 0 10px 26px rgba(32, 32, 29, .05);
}
#dfp-registration-form .dfp-pack h3 { color: var(--tc-gold); font-size: 12px; margin: 0 0 8px; text-transform: uppercase; }
#dfp-registration-form .dfp-pack p { font-size: 13px; color: var(--tc-muted); line-height: 1.65; }
#dfp-registration-form .dfp-pack .dfp-pack-price { color: var(--tc-ink); font-size: 20px; font-weight: 650; margin-bottom: 10px; }
#dfp-registration-form .dfp-pack-price b { font-weight: inherit; }
#dfp-registration-form .dfp-pack-price span { color: #cbbd9d; padding-inline: 5px; }
#dfp-registration-form .dfp-event-details {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; padding: 18px 20px; margin-top: 16px;
  background: rgba(255, 255, 255, .52); border: 1px solid var(--tc-border); border-radius: 8px;
}
#dfp-registration-form .dfp-event-details p { font-size: 12px; color: var(--tc-muted); overflow-wrap: anywhere; }
#dfp-registration-form .dfp-event-details strong { font-weight: 550; color: var(--tc-ink); }
#dfp-registration-form a { color: var(--tc-accent); text-underline-offset: 3px; }
#dfp-registration-form a:hover { text-decoration: underline; }
#dfp-registration-form .dfp-coaches-section { margin: 18px 0 8px; border-block: 1px solid var(--tc-border); }
#dfp-registration-form details summary { padding: 14px 0; cursor: pointer; font-size: 13px; font-weight: 550; color: var(--tc-ink); }
#dfp-registration-form details summary::marker { color: var(--tc-gold); }
#dfp-registration-form .dfp-coach-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; padding: 6px 0 24px; }
#dfp-registration-form .dfp-coach-list span { font-size: 12px; color: var(--tc-muted); overflow-wrap: anywhere; }
#dfp-registration-form .dfp-event-poster { margin-top: 12px; padding-bottom: 12px; }
#dfp-registration-form .dfp-event-poster img { display: block; width: 100%; max-width: 640px; height: auto; margin: 8px auto; }
#dfp-registration-form .dfp-registration { margin-top: 32px; padding-top: 30px; border-top: 2px solid var(--tc-ink); }
#dfp-registration-form .dfp-registration-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
#dfp-registration-form .dfp-registration-heading h2 { font-size: 22px; margin: 0; }
#dfp-registration-form .dfp-total { font-size: 12px; color: var(--tc-muted); white-space: nowrap; }
#dfp-registration-form .dfp-total strong { font-size: 20px; color: var(--tc-ink); margin-left: 8px; font-variant-numeric: tabular-nums; }
#dfp-registration-form .dfp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; gap: 10px; list-style: none; }
#dfp-registration-form .dfp-step {
  display: flex; align-items: center; gap: 8px; color: var(--tc-muted); font-size: 12px; min-width: 0;
  padding: 9px 10px; background: rgba(255, 255, 255, .55); border: 1px solid var(--tc-border); border-radius: 8px;
}
#dfp-registration-form .dfp-step-number { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 1px solid #d1c6b2; font-size: 11px; font-weight: 650; }
#dfp-registration-form .dfp-step[aria-current="step"] { color: var(--tc-accent); font-weight: 650; border-color: #cbbd9d; background: #fffaf0; }
#dfp-registration-form .dfp-step[aria-current="step"] .dfp-step-number { background: var(--tc-accent); border-color: var(--tc-accent); color: white; }
#dfp-registration-form .dfp-step.is-complete .dfp-step-number { border-color: var(--tc-accent); color: var(--tc-accent); background: var(--tc-accent-soft); }
#dfp-registration-form .dfp-progress { display: flex; align-items: center; gap: 16px; margin: 14px 0 28px; font-size: 11px; color: var(--tc-muted); }
#dfp-registration-form .dfp-progress-bar { flex: 1; height: 5px; background: var(--tc-border); overflow: hidden; border-radius: 999px; }
#dfp-registration-form .dfp-progress-fill { height: 100%; width: 25%; background: var(--tc-accent); transition: width 180ms ease; }
#dfp-registration-form .dfp-page { display: none; scroll-margin-top: 24px; }
#dfp-registration-form .dfp-page.active { display: block; }
#dfp-registration-form .dfp-section { margin: 0 0 24px; padding: 0; }
#dfp-registration-form .dfp-section + .dfp-section { border-top: 1px solid var(--tc-border); padding-top: 20px; }
#dfp-registration-form h3 { font-size: 17px; font-weight: 650; color: var(--tc-ink); margin: 0 0 8px; }
#dfp-registration-form .dfp-help, #dfp-registration-form .dfp-note { font-size: 13px; color: var(--tc-muted); line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
#dfp-registration-form .dfp-note { margin-bottom: 10px; }
#dfp-registration-form .dfp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
#dfp-registration-form .dfp-field { margin-bottom: 24px; min-width: 0; }
#dfp-registration-form label, #dfp-registration-form legend { display: block; color: var(--tc-ink); font-size: 13px; font-weight: 550; margin-bottom: 8px; }
#dfp-registration-form .dfp-required { color: #ad3939; }
#dfp-registration-form input[type="text"], #dfp-registration-form input[type="email"], #dfp-registration-form input[type="tel"], #dfp-registration-form input[type="time"], #dfp-registration-form textarea { width: 100%; border: 1px solid #d7cdbb; border-radius: 6px; padding: 11px 12px; color: var(--tc-ink); background: white; }
#dfp-registration-form textarea { min-height: 120px; resize: vertical; }
#dfp-registration-form fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
#dfp-registration-form .dfp-options { display: flex; flex-wrap: wrap; gap: 8px; }
#dfp-registration-form .dfp-option { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 14px; background: white; border: 1px solid var(--tc-border); border-radius: 8px; font-size: 13px; font-weight: 450; margin: 0; cursor: pointer; min-width: 0; transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease; }
#dfp-registration-form .dfp-option:hover { border-color: #bda260; }
#dfp-registration-form .dfp-option:has(input:checked) { background: var(--tc-accent-soft); border-color: var(--tc-accent); color: #604900; box-shadow: inset 0 0 0 1px rgba(139, 104, 0, .08); }
#dfp-registration-form .dfp-option:has(input:focus-visible) { outline: 2px solid var(--tc-accent); outline-offset: 2px; }
#dfp-registration-form .dfp-option:has(input:disabled) { background: var(--tc-soft); opacity: .5; cursor: not-allowed; }
#dfp-registration-form .dfp-option input { flex: 0 0 auto; width: 16px; height: 16px; }
#dfp-registration-form .dfp-option input[type="text"] { flex: 1; min-width: 0; width: 120px; min-height: 28px; padding: 2px 6px; }
#dfp-registration-form .dfp-inline-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 380px; }
#dfp-registration-form .dfp-teachers-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
#dfp-registration-form .dfp-teacher-field { border-bottom: 1px solid var(--tc-border); padding-bottom: 20px; }
#dfp-registration-form .dfp-teacher-field legend { font-size: 12px; min-height: 36px; }
#dfp-registration-form .dfp-teacher-field .dfp-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
#dfp-registration-form .dfp-teacher-field .dfp-option { justify-content: center; padding: 8px 4px; gap: 6px; }
#dfp-registration-form .dfp-actions { position: sticky; bottom: 0; z-index: 20; display: flex !important; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid var(--tc-border); margin-top: 18px; padding: 12px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-radius: 8px; box-shadow: 0 -10px 24px rgba(26, 26, 26, .08); }
#dfp-registration-form .dfp-actions .dfp-button { display: inline-flex !important; visibility: visible !important; align-items: center; justify-content: center; border: 1px solid transparent; min-width: 124px; min-height: 46px; border-radius: 8px; padding: 12px 22px; font-size: 14px; font-weight: 650; cursor: pointer; }
#dfp-registration-form .dfp-actions .dfp-button[hidden] { display: none !important; }
#dfp-registration-form .dfp-button.primary { background: var(--tc-brand); color: var(--tc-ink); box-shadow: inset 0 -1px 0 rgba(26, 26, 26, .18); }
#dfp-registration-form .dfp-button.primary:hover { background: var(--tc-brand-hover); }
#dfp-registration-form .dfp-button.secondary { border-color: #d7cdbb; background: white; color: var(--tc-ink); }
#dfp-registration-form .dfp-terms-link { display: inline-block; margin-top: 12px; text-decoration: underline; font-size: 13px; text-underline-offset: 3px; }
#dfp-registration-form .dfp-actions .dfp-button:disabled { opacity: .4; cursor: not-allowed; }
#dfp-registration-form .dfp-message { display: none; border-radius: 6px; padding: 14px 16px; margin-top: 16px; font-size: 14px; }
#dfp-registration-form .dfp-message.success { display: block; background: #edf6f1; color: #1b503d; border: 1px solid #aacbb9; }
#dfp-registration-form .dfp-message.error { display: block; background: #fff2f2; color: #993636; border: 1px solid #e6baba; }

@media (max-width: 640px) {
  main:has(> #dfp-registration-form) { padding: 24px 16px 120px; }
  #dfp-registration-form .dfp-event-hero { align-items: flex-start; gap: 16px; padding: 22px 18px; margin-bottom: 20px; }
  #dfp-registration-form .dfp-title { font-size: 28px; }
  #dfp-registration-form .dfp-date { font-size: 14px; padding-top: 4px; }
  #dfp-registration-form .dfp-date small { font-size: 11px; }
  #dfp-registration-form .dfp-kicker { font-size: 11px; }
  #dfp-registration-form .dfp-pack-grid { gap: 10px; }
  #dfp-registration-form .dfp-pack { padding: 16px 12px; }
  #dfp-registration-form .dfp-pack .dfp-pack-price { font-size: 16px; }
  #dfp-registration-form .dfp-pack-price span { display: none; }
  #dfp-registration-form .dfp-pack-price b { display: block; }
  #dfp-registration-form .dfp-pack p { font-size: 12px; }
  #dfp-registration-form .dfp-event-details { grid-template-columns: 1fr; gap: 12px; }
  #dfp-registration-form .dfp-coach-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #dfp-registration-form .dfp-registration { margin-top: 24px; padding-top: 22px; }
  #dfp-registration-form .dfp-steps { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #dfp-registration-form .dfp-step { flex-direction: column; align-items: flex-start; gap: 7px; font-size: 10px; }
  #dfp-registration-form .dfp-grid, #dfp-registration-form .dfp-teachers-list { grid-template-columns: 1fr; }
  #dfp-registration-form .dfp-registration-heading h2 { font-size: 20px; }
  #dfp-registration-form .dfp-option { max-width: 100%; }
  #dfp-registration-form .dfp-teacher-field legend { min-height: 0; }
  #dfp-registration-form .dfp-actions {
    position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom));
    margin: 0; padding: 10px;
  }
  #dfp-registration-form .dfp-actions .dfp-button { flex: 1 1 120px; min-width: 0; }
}
@media (max-width: 360px) {
  #dfp-registration-form .dfp-event-hero { flex-wrap: wrap; }
  #dfp-registration-form .dfp-date small { display: inline; margin-left: 8px; }
}
@media (max-width: 420px) {
  #dfp-registration-form .dfp-pack-grid { grid-template-columns: 1fr; }
  #dfp-registration-form .dfp-event-hero { flex-wrap: wrap; }
  #dfp-registration-form .dfp-date small { display: inline; margin-left: 8px; }
}
