/* ===== Theme Variables ===== */
.soonapie-d365-event {
  --wt-card-bg: #ffffff;
  --wt-card-radius: 20px;
  --wt-hero-grad-1: #0f172a;
  --wt-hero-grad-2: #1e3a5f;
  --wt-hero-grad-3: #2563eb;
  --wt-hero-title: #ffffff;
  --wt-hero-text: #bfdbfe;
  --wt-hero-date: #93c5fd;
  --wt-hero-badge-text: #93c5fd;
  --wt-hero-badge-bg: rgba(255,255,255,0.1);
  --wt-hero-badge-border: rgba(255,255,255,0.15);
  --wt-hero-dot: #34d399;
  --wt-free-bg-1: #ecfdf5;
  --wt-free-bg-2: #f0fdf4;
  --wt-free-border: #86efac;
  --wt-free-text: #166534;
  --wt-free-subtext: #16a34a;
  --wt-free-label-bg: #16a34a;
  --wt-paid-bg-1: #eff6ff;
  --wt-paid-bg-2: #f0f9ff;
  --wt-paid-border: #bfdbfe;
  --wt-paid-text: #1e40af;
  --wt-paid-subtext: #3b82f6;
  --wt-paid-label-bg: #2563eb;
  --wt-section-title: #111827;
  --wt-section-subtitle: #6b7280;
  --wt-label-color: #374151;
  --wt-input-bg: #ffffff;
  --wt-input-color: var(--wt-guest-title);
  --wt-input-border: #e2e8f0;
  --wt-input-focus: #2563eb;
  --wt-button-bg: #2563eb;
  --wt-button-text: #ffffff;
  --wt-button-hover: #1d4ed8;
  --wt-guest-bg: #ffffff;
  --wt-guest-title: #111827;
  --wt-guest-text: #6b7280;
  --wt-guest-icon-bg: linear-gradient(135deg, #2563eb, #1d4ed8);
  --wt-guest-button-bg: #2563eb;
  --wt-guest-button-text: #ffffff;
}

/* ===== D365 Wirtschaftstag 2026 – v7 Complete ===== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap');

/* ══════════════════════════════
   HARD RESET
   ══════════════════════════════ */
#d365-form-container {
  max-width: 680px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
#d365-form-container *:not(input):not(select):not(textarea):not(button):not(.submitButton):not(.phoneCountryCode):not(svg):not(line):not(circle):not(path):not(polyline):not(.eventSession):not(.eventSession *) {
  border: none !important;
  box-shadow: none !important;
}
#d365-form-container .marketingForm,
#d365-form-container form.marketingForm {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif !important;
  color: var(--wt-input-color) !important;
  font-size: 15px !important;
}
#d365-form-container [data-layout="true"],
#d365-form-container [data-section="true"],
#d365-form-container .emptyContainer,
#d365-form-container table,
#d365-form-container table.outer,
#d365-form-container table.containerWrapper,
#d365-form-container table.multi,
#d365-form-container tbody,
#d365-form-container tr,
#d365-form-container th,
#d365-form-container td,
#d365-form-container th.inner,
#d365-form-container th.columnContainer,
#d365-form-container .columnContainer,
#d365-form-container .tbContainer,
#d365-form-container .innerTable {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-collapse: collapse !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
#d365-form-container table.outer {
  width: 100% !important;
  max-width: 680px !important;
  display: table !important;
}
/* Multi-Column Spacing (PLZ/Stadt, Vorname/Nachname etc.) */
#d365-form-container table.multi th.columnContainer {
  padding: 0 8px !important;
}
#d365-form-container table.multi th.columnContainer:first-child {
  padding-left: 0 !important;
}
#d365-form-container table.multi th.columnContainer:last-child {
  padding-right: 0 !important;
}
#d365-form-container [data-layout="true"] {
  max-width: 680px !important;
  margin: 0 auto !important;
}

/* ══════════════════════════════
   IDENTIFIKATIONSFELDER
   Felder bleiben sichtbar – werden in D365 auf Hidden gestellt
   ══════════════════════════════ */

/* ══════════════════════════════
   FORM CARD
   ══════════════════════════════ */
.wt-form-card {
  max-width: 680px;
  margin: 0 auto 32px;
  background: var(--wt-guest-bg);
  border-radius: var(--wt-card-radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  overflow: hidden;
  position: relative;
}

/* ══════════════════════════════
   HERO HEADER
   ══════════════════════════════ */
.wt-hero {
  background: linear-gradient(135deg, var(--wt-hero-grad-1) 0%, var(--wt-hero-grad-2) 50%, var(--wt-hero-grad-3) 100%);
  padding: 52px 32px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.wt-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(59,130,246,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(147,197,253,0.1) 0%, transparent 40%);
  animation: wt-float 20s ease-in-out infinite;
}
@keyframes wt-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}
.wt-hero > * { position: relative; z-index: 1; }
.wt-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wt-hero-badge-bg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--wt-hero-badge-border);
  padding: 8px 20px; border-radius: 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600; color: var(--wt-hero-badge-text);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px;
}
.wt-hero-badge .wt-dot {
  width: 8px; height: 8px; background: var(--wt-hero-dot);
  border-radius: 50%; animation: wt-pulse 2s ease-in-out infinite;
}
@keyframes wt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.wt-hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 32px; font-weight: 700; color: var(--wt-hero-title);
  letter-spacing: -0.5px; margin: 0 0 10px; line-height: 1.2;
}
.wt-hero .wt-motto {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; color: var(--wt-hero-text); font-weight: 400; margin: 0 0 6px;
}
.wt-hero .wt-date {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--wt-hero-date); font-weight: 500;
}

/* ══════════════════════════════
   TICKET BAR (dynamisch per JS)
   ══════════════════════════════ */
.wt-ticket-bar {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 12px; padding: 16px 20px; margin: 24px 28px 8px;
}
.wt-ticket-bar.wt-free {
  background: linear-gradient(135deg, var(--wt-free-bg-1), var(--wt-free-bg-2));
  border: 1px solid var(--wt-free-border) !important;
}
.wt-ticket-bar.wt-paid {
  background: linear-gradient(135deg, var(--wt-paid-bg-1), var(--wt-paid-bg-2));
  border: 1px solid var(--wt-paid-border) !important;
}
.wt-ticket-type {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
}
.wt-ticket-bar.wt-free .wt-ticket-type { color: var(--wt-free-text); }
.wt-ticket-bar.wt-free .wt-ticket-type span { font-size: 12px; font-weight: 400; color: var(--wt-free-subtext); display: block; }
.wt-ticket-bar.wt-paid .wt-ticket-type { color: var(--wt-paid-text); }
.wt-ticket-bar.wt-paid .wt-ticket-type span { font-size: 12px; font-weight: 400; color: var(--wt-paid-subtext); display: block; }
.wt-ticket-price-wrapper {
  display: flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', sans-serif;
}
.wt-price-old {
  font-size: 18px; font-weight: 500; color: #94a3b8;
  text-decoration: line-through; text-decoration-color: #ef4444; text-decoration-thickness: 2px;
}
.wt-price-new {
  font-size: 26px; font-weight: 700;
}
.wt-ticket-bar.wt-free .wt-price-new { color: var(--wt-free-text); }
.wt-ticket-bar.wt-paid .wt-price-new { color: var(--wt-paid-text); }
.wt-price-label {
  font-size: 11px; font-weight: 600; color: #ffffff;
  padding: 3px 10px; border-radius: var(--wt-card-radius);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.wt-ticket-bar.wt-free .wt-price-label { background: var(--wt-free-label-bg); }
.wt-ticket-bar.wt-paid .wt-price-label { background: var(--wt-paid-label-bg); }

/* ══════════════════════════════
   FORM SECTIONS
   ══════════════════════════════ */
.wt-section {
  padding: 28px 28px 4px;
  border-bottom: 1px solid #f1f5f9;
}
.wt-section:last-of-type { border-bottom: none; }
.wt-section-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.wt-section-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wt-section-icon.blue { background: #eff6ff; color: #2563eb; }
.wt-section-icon.purple { background: #f5f3ff; color: #7c3aed; }
.wt-section-icon.green { background: #ecfdf5; color: #059669; }
.wt-section-icon.amber { background: #fffbeb; color: #d97706; }
.wt-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px; font-weight: 700; color: var(--wt-section-title); letter-spacing: -0.2px;
}
.wt-section-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: var(--wt-section-subtitle); font-weight: 400;
}

/* ══════════════════════════════
   D365 FIELD OVERRIDES
   ══════════════════════════════ */
#d365-form-container .textFormFieldBlock,
#d365-form-container .phoneFormFieldBlock,
#d365-form-container .dateTimeFormFieldBlock,
#d365-form-container .optionSetFormFieldBlock,
#d365-form-container .twoOptionFormFieldBlock,
#d365-form-container .multiOptionSetFormFieldBlock,
#d365-form-container .lookupFormFieldBlock {
  padding: 10px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  background: transparent !important;
}
#d365-form-container label,
#d365-form-container label *,
#d365-form-container .textFormFieldBlock label *,
#d365-form-container .phoneFormFieldBlock label *,
#d365-form-container .dateTimeFormFieldBlock label * {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--wt-label-color) !important;
  background: transparent !important;
}
#d365-form-container input[type="text"],
#d365-form-container input[type="email"],
#d365-form-container input[type="tel"],
#d365-form-container input[type="date"],
#d365-form-container input[type="number"],
#d365-form-container input[type="url"],
#d365-form-container select,
#d365-form-container textarea {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  color: var(--wt-input-color) !important;
  background-color: var(--wt-input-bg) !important;
  border: 1.5px solid var(--wt-input-border) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  height: auto !important;
  min-height: 48px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
}
#d365-form-container .phoneCountryCode {
  border: 1.5px solid var(--wt-input-border) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  min-height: 48px !important;
  background-color: var(--wt-input-bg) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}
#d365-form-container .phoneCountryCode input {
  border: none !important; border-radius: 0 !important;
  box-shadow: none !important; min-height: 44px !important;
}
#d365-form-container .phoneCountryCodeLabel {
  background-color: #f3f4f6 !important; color: #6b7280 !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important; padding: 0 12px !important;
}
#d365-form-container input:focus,
#d365-form-container select:focus,
#d365-form-container textarea:focus {
  border-color: var(--wt-input-focus) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1) !important;
  outline: none !important;
}
#d365-form-container .phoneCountryCode:focus-within {
  border-color: var(--wt-input-focus) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1) !important;
}
#d365-form-container input::placeholder,
#d365-form-container textarea::placeholder {
  color: #94a3b8 !important; font-weight: 400 !important;
}
#d365-form-container select {
  padding-right: 40px !important;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 12px !important;
}

/* ── Text Blocks ── */
#d365-form-container div[data-editorblocktype="Text"] {
  padding: 16px 0 4px !important; background: transparent !important;
}
#d365-form-container div[data-editorblocktype="Text"] p,
#d365-form-container div[data-editorblocktype="Text"] p span {
  font-family: 'DM Sans', sans-serif !important;
  text-align: left !important; background: transparent !important;
}
#d365-form-container div[data-required] label::after { color: #ef4444 !important; }

/* ══════════════════════════════
   SESSIONS / AGENDA STYLING
   ══════════════════════════════ */
#d365-form-container div[data-editorblocktype="Sessions"] {
  padding: 24px 0 !important;
}
#d365-form-container div[data-editorblocktype="Sessions"] h2 {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--wt-input-color) !important;
  margin-bottom: 24px !important;
  text-align: left !important;
}
#d365-form-container .eventSessions {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
#d365-form-container .eventSession {
  background: #f8fafc !important;
  border: 1.5px solid var(--wt-input-border) !important;
  border-radius: 12px !important;
  padding: 16px 18px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}
#d365-form-container .eventSession:hover {
  border-color: #93c5fd !important;
  background: #f0f9ff !important;
}
#d365-form-container .eventSession div input[type="checkbox"],
#d365-form-container .eventSession div input[type="radio"] {
  width: 20px !important;
  height: 20px !important;
  accent-color: #2563eb !important;
  margin-top: 2px !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
}
#d365-form-container .eventSession label,
#d365-form-container .eventSession label b,
#d365-form-container .eventSession label div {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--wt-input-color) !important;
  cursor: pointer !important;
}
#d365-form-container .eventSessionDescription {
  flex: 1 !important;
}
#d365-form-container .eventSessionDescription p {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
  color: #6b7280 !important;
  margin-top: 4px !important;
  line-height: 1.4 !important;
  text-align: left !important;
}
/* Panel-Hinweis */
.wt-panel-hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  animation: wt-slideIn 0.3s ease;
}
.wt-panel-hint.wt-hint-info {
  color: #1e40af;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.wt-panel-hint-icon {
  flex-shrink: 0;
  font-size: 16px;
}
.wt-panel-disabled {
  opacity: 0.4 !important;
  pointer-events: none !important;
  filter: grayscale(0.5) !important;
  transition: all 0.3s ease !important;
}
.wt-panel-selected {
  border-color: var(--wt-input-focus) !important;
  background: #eff6ff !important;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15) !important;
}

/* ══════════════════════════════
   CONSENT / CHECKBOXEN
   ══════════════════════════════ */
#d365-form-container .consentBlock,
#d365-form-container .twoOptionFormFieldBlock {
  padding: 12px 0 !important;
}
#d365-form-container .consentBlock > div,
#d365-form-container .twoOptionFormFieldBlock .twooption_checkbox > div {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  margin-bottom: 8px !important;
}
#d365-form-container .consentBlock input[type="checkbox"],
#d365-form-container .twoOptionFormFieldBlock input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  accent-color: #2563eb !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
}
#d365-form-container .consentBlock label,
#d365-form-container .consentBlock label p,
#d365-form-container .consentBlock label div,
#d365-form-container .twoOptionFormFieldBlock .twooption_checkbox label,
#d365-form-container .twoOptionFormFieldBlock .twooption_checkbox label div {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--wt-label-color) !important;
  line-height: 1.5 !important;
}

/* ══════════════════════════════
   SUBMIT BUTTON
/* ══════════════════════════════
   DATENSCHUTZHINWEIS (vor Submit)
   ══════════════════════════════ */
.wt-privacy-notice {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0 8px;
}
.wt-privacy-notice p {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
  color: #6b7280 !important;
  line-height: 1.6 !important;
  margin: 0 0 10px !important;
  text-align: left !important;
}
.wt-privacy-notice p:last-child { margin-bottom: 0 !important; }
.wt-privacy-notice p strong {
  color: var(--wt-label-color) !important;
  font-weight: 600 !important;
}
.wt-privacy-notice a {
  color: #2563eb;
  text-decoration: none;
  word-break: break-all;
}
.wt-privacy-notice a:hover { text-decoration: underline; }

/* ══════════════════════════════
   SUBMIT BUTTON
   ══════════════════════════════ */
#d365-form-container .submitButtonWrapper,
#d365-form-container div[data-editorblocktype="SubmitButton"] {
  padding: 24px 0 28px !important; background: transparent !important;
}
#d365-form-container .submitButton {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%) !important;
  color: var(--wt-button-text) !important; border: none !important; border-radius: 12px !important;
  padding: 16px 48px !important; font-family: 'DM Sans', sans-serif !important;
  font-size: 16px !important; font-weight: 600 !important; cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25) !important;
  transition: all 0.2s ease !important; min-width: 220px !important;
}
#d365-form-container .submitButton:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(37,99,235,0.35) !important;
}
#d365-form-container .submitButton span {
  color: var(--wt-button-text) !important; font-family: 'DM Sans', sans-serif !important;
  font-size: 16px !important; font-weight: 600 !important;
}

/* ── Error / Notification / Footer ── */
#d365-form-container .notification-container { padding: 0 !important; }
#d365-form-container .notification-message {
  font-family: 'DM Sans', sans-serif !important;
  border: 1px solid #e5e7eb !important; border-radius: 10px !important;
}
#d365-form-container .error {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important; color: #ef4444 !important; font-weight: 500 !important;
}
#d365-form-container div[data-editorblocktype="Text"] p span[style*="font-size: 10px"] {
  color: #9ca3af !important; font-family: 'DM Sans', sans-serif !important;
}

/* ══════════════════════════════
   SUCCESS MESSAGE
   ══════════════════════════════ */
#d365-form-container .onFormSubmittedFeedback {
  width: 100% !important;
  height: auto !important;
  min-height: 200px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 48px 24px !important;
  background: transparent !important;
}
#d365-form-container .onFormSubmittedFeedbackInternalContainer {
  position: static !important;
  top: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  max-width: 520px !important;
  width: 100% !important;
  padding: 40px 32px !important;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4) !important;
  border: 1px solid var(--wt-free-border) !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 16px rgba(16,185,129,0.1) !important;
  animation: wt-slideIn 0.5s ease !important;
}
#d365-form-container .onFormSubmittedFeedbackIcon {
  display: none !important;
}
#d365-form-container .onFormSubmittedFeedbackInternalContainer::before {
  content: '';
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17l-5-5' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px;
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}
#d365-form-container .onFormSubmittedFeedbackMessage {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #065f46 !important;
  line-height: 1.4 !important;
  margin-bottom: 16px !important;
}
#d365-form-container .dialogProviderLinkContainer {
  display: none !important;
}
/* Session-Info nach Submit ("Registered" Liste) */
#d365-form-container .onFormSubmittedFeedbackInternalContainer [data-editorblocktype="Sessions"] {
  width: 100% !important;
  margin-top: 8px !important;
}
#d365-form-container .onFormSubmittedFeedbackInternalContainer .sessionInformationContainer {
  background: rgba(255,255,255,0.7) !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 12px !important;
  padding: 16px !important;
  margin-top: 8px !important;
}
#d365-form-container .onFormSubmittedFeedbackInternalContainer .sessionInformationTitle {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #059669 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 10px !important;
}
#d365-form-container .onFormSubmittedFeedbackInternalContainer .eventSession {
  background: transparent !important;
  border: none !important;
  padding: 6px 0 !important;
  margin: 0 !important;
}
#d365-form-container .onFormSubmittedFeedbackInternalContainer .eventSessionDescription p {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  color: #065f46 !important;
  text-align: left !important;
  margin: 0 !important;
}
#d365-form-container .onFormSubmittedFeedbackInternalContainer .eventSessionDescription label,
#d365-form-container .onFormSubmittedFeedbackInternalContainer .eventSessionDescription label span {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #065f46 !important;
}
#d365-form-container .onFormSubmittedFeedbackInternalContainer .eventSessionInput {
  display: none !important;
}

/* ══════════════════════════════
   CONSENT BLOCK (custom)
   ══════════════════════════════ */
.wt-consent {
  background: #f8fafc; border-radius: 12px;
  padding: 20px; margin: 8px 28px 24px;
}
.wt-consent p {
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  color: var(--wt-guest-text); line-height: 1.6; margin: 0;
}
.wt-consent a { color: #2563eb; text-decoration: none; }
.wt-consent a:hover { text-decoration: underline; }

/* ══════════════════════════════
   GÄSTE SECTION
   ══════════════════════════════ */
#mdb-guest-section {
  max-width: 680px; margin: 0 auto 40px; padding: 0;
}
#mdb-guest-section * {
  font-family: 'DM Sans', system-ui, sans-serif; box-sizing: border-box;
}
.wt-guest-card {
  background: var(--wt-guest-bg); border-radius: var(--wt-card-radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  overflow: hidden;
}
.wt-guest-header {
  background: linear-gradient(135deg, #f0f9ff, #eff6ff);
  padding: 28px 32px; text-align: center;
  border-bottom: 1px solid #dbeafe;
}
.wt-guest-header-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  border-radius: 14px; display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 16px; box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}
.wt-guest-header h3 { font-size: 20px; font-weight: 700; color: var(--wt-guest-title); margin: 0 0 4px; }
.wt-guest-header p { font-size: 14px; color: var(--wt-guest-text); margin: 0; }
.wt-guest-email-hint {
  font-size: 12px !important;
  color: #9ca3af !important;
  margin-top: 10px !important;
  font-style: italic;
}

/* ══════════════════════════════
   SUCCESS ANIMATION (modern)
   ══════════════════════════════ */
@keyframes wt-success-checkdraw {
  0% { stroke-dashoffset: 50; }
  100% { stroke-dashoffset: 0; }
}
@keyframes wt-success-circle {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes wt-success-fadein {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes wt-confetti {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-60px) rotate(360deg); opacity: 0; }
}
.wt-success-icon {
  width: 80px; height: 80px; margin-bottom: 24px; position: relative;
}
.wt-success-icon .wt-success-circle {
  fill: none; stroke: #10b981; stroke-width: 3;
  stroke-dasharray: 166; stroke-dashoffset: 166;
  animation: wt-success-checkdraw 0.6s ease forwards;
}
.wt-success-icon .wt-success-bg {
  animation: wt-success-circle 0.4s ease forwards;
  transform-origin: center;
}
.wt-success-icon .wt-success-check {
  stroke: #10b981; stroke-width: 3; fill: none;
  stroke-dasharray: 50; stroke-dashoffset: 50;
  animation: wt-success-checkdraw 0.4s 0.4s ease forwards;
  stroke-linecap: round; stroke-linejoin: round;
}
.wt-success-confetti {
  position: absolute; top: 50%; left: 50%;
  width: 8px; height: 8px; border-radius: 50%;
}
.wt-success-confetti:nth-child(1) { background: var(--wt-guest-button-bg); animation: wt-confetti 1s 0.3s ease forwards; margin-left: -30px; margin-top: -40px; }
.wt-success-confetti:nth-child(2) { background: #f59e0b; animation: wt-confetti 1s 0.4s ease forwards; margin-left: 20px; margin-top: -35px; }
.wt-success-confetti:nth-child(3) { background: #10b981; animation: wt-confetti 1s 0.5s ease forwards; margin-left: -15px; margin-top: -50px; }
.wt-success-confetti:nth-child(4) { background: #ef4444; animation: wt-confetti 1s 0.35s ease forwards; margin-left: 30px; margin-top: -45px; }
.wt-success-confetti:nth-child(5) { background: #8b5cf6; animation: wt-confetti 1s 0.45s ease forwards; margin-left: -25px; margin-top: -30px; }
.wt-success-title {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 24px !important; font-weight: 700 !important;
  color: var(--wt-input-color) !important; margin-bottom: 8px !important;
  animation: wt-success-fadein 0.5s 0.6s ease both;
}
.wt-success-subtitle {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important; color: #6b7280 !important;
  line-height: 1.5 !important; max-width: 400px !important;
  animation: wt-success-fadein 0.5s 0.8s ease both;
}
.wt-guest-progress { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.wt-guest-progress .wt-gdot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #cbd5e1; transition: all 0.3s ease;
}
.wt-guest-progress .wt-gdot.filled {
  background: var(--wt-guest-button-bg); box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.wt-guest-body { padding: 28px 32px; }
.wt-guest-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.wt-guest-item {
  display: flex; align-items: center; justify-content: space-between;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 14px 18px; animation: wt-slideIn 0.3s ease;
}
@keyframes wt-slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.wt-guest-item-left { display: flex; align-items: center; gap: 12px; }
.wt-guest-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #1e40af;
}
.wt-guest-name { font-size: 14px; font-weight: 600; color: var(--wt-guest-title); }
.wt-guest-name span { font-size: 12px; font-weight: 400; color: var(--wt-guest-text); display: block; }
.wt-guest-item-right { display: flex; align-items: center; gap: 12px; }
.wt-guest-price-tag { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; color: #1e3a5f; }
.wt-guest-check {
  width: 24px; height: 24px; background: #10b981; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
#add-guest-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; background: white;
  border: 2px dashed #d1d5db; border-radius: 12px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  color: var(--wt-guest-text); cursor: pointer; transition: all 0.2s ease;
}
#add-guest-btn:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }
#add-guest-btn:disabled { border-color: #e5e7eb; color: #9ca3af; background: #f9fafb; cursor: default; }

/* Summary */
.wt-guest-summary { border-top: 1px solid #e2e8f0; padding-top: 20px; margin-top: 24px; }
.wt-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-family: 'DM Sans', sans-serif;
}
.wt-summary-row .wt-s-label { font-size: 14px; color: var(--wt-guest-text); }
.wt-summary-row .wt-s-value { font-size: 14px; font-weight: 600; color: var(--wt-guest-title); }
.wt-summary-row .wt-s-value .wt-s-free { color: #16a34a; font-weight: 700; }
.wt-summary-row .wt-s-value .wt-s-strikethrough {
  text-decoration: line-through; text-decoration-color: #ef4444;
  text-decoration-thickness: 2px; color: #94a3b8; font-weight: 400; margin-right: 8px;
}
.wt-summary-row.wt-total { border-top: 2px solid #111827; margin-top: 8px; padding-top: 16px; }
.wt-summary-row.wt-total .wt-s-label { font-size: 16px; font-weight: 700; color: var(--wt-guest-title); }
.wt-summary-row.wt-total .wt-s-value { font-size: 20px; font-weight: 700; color: #1e3a5f; }

/* ══════════════════════════════
   MODAL
   ══════════════════════════════ */
#guest-modal-overlay {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%; background: rgba(0,0,0,0.5);
  z-index: 999999; justify-content: center; align-items: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  isolation: isolate;
}
#guest-modal-box {
  background: white; border-radius: var(--wt-card-radius); width: 92%; max-width: 640px;
  max-height: 90vh; overflow: auto; position: relative; padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15); animation: wt-slideIn 0.25s ease;
}
#guest-modal-close {
  position: absolute; top: 14px; right: 18px; background: none; border: none;
  font-size: 22px; cursor: pointer; color: #9ca3af; width: 36px; height: 36px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
#guest-modal-close:hover { background: #f3f4f6; color: var(--wt-guest-title); }
#guest-modal-counter {
  text-align: center; color: #2563eb; margin: 0 0 8px;
  font-size: 13px; font-weight: 600; font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.5px; text-transform: uppercase;
}
#guest-modal-title {
  margin: 0 0 4px; text-align: center; font-family: 'DM Sans', sans-serif;
  font-size: 20px; font-weight: 700; color: var(--wt-guest-title);
}
.wt-modal-price {
  text-align: center; font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--wt-guest-text); margin: 0 0 20px;
}
.wt-modal-price strong { color: #1e3a5f; font-weight: 700; font-size: 16px; }
#guest-form-container { max-width: 100%; }

/* ══════════════════════════════
   MOBILE
   ══════════════════════════════ */
@media (max-width: 640px) {
  .wt-hero { padding: 40px 20px 36px; }
  .wt-hero h1 { font-size: 24px; }
  .wt-section { padding: 20px 16px 4px; }
  .wt-ticket-bar { margin: 16px 16px 8px; flex-direction: column; text-align: center; gap: 12px; }
  .wt-consent { margin: 8px 16px 20px; }
  .wt-guest-header, .wt-guest-body { padding: 20px; }
  #d365-form-container input, #d365-form-container select { font-size: 16px !important; }
  #guest-modal-box { padding: 20px 16px; width: 96%; }
  #d365-form-container .eventSession { padding: 12px 14px !important; }
}

/* ══════════════════════════════════════════════════════════════
   D365 TEXT-BLÖCKE: Einheitliches Styling (kein Gradient)
   ══════════════════════════════════════════════════════════════ */
#d365-form-container div[data-layout="true"] div[data-editorblocktype="Text"],
#d365-form-container div[data-layout="true"] div[data-editorblocktype="Text"]:first-child,
#d365-form-container div[data-editorblocktype="Text"] {
  margin: 8px 0 !important;
  padding: 12px 16px !important;
  background: #f1f5f9 !important;
  background-image: none !important;
  border-radius: 10px !important;
  text-align: left !important;
}
#d365-form-container div[data-layout="true"] div[data-editorblocktype="Text"] p,
#d365-form-container div[data-layout="true"] div[data-editorblocktype="Text"]:first-child p,
#d365-form-container div[data-layout="true"] div[data-editorblocktype="Text"]:first-child span,
#d365-form-container div[data-editorblocktype="Text"] p {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  color: var(--wt-label-color) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}
#d365-form-container div[data-layout="true"] div[data-editorblocktype="Text"] p span[style*="font-weight: bold"],
#d365-form-container div[data-layout="true"] div[data-editorblocktype="Text"] p span[style*="font-size: 18px"],
#d365-form-container div[data-layout="true"] div[data-editorblocktype="Text"] p span[style*="font-size: 20px"],
#d365-form-container div[data-editorblocktype="Text"] p span[style*="font-weight: bold"],
#d365-form-container div[data-editorblocktype="Text"] p span[style*="font-size: 18px"],
#d365-form-container div[data-editorblocktype="Text"] p span[style*="font-size: 20px"] {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--wt-input-color) !important;
  display: block !important;
  margin-bottom: 6px !important;
}



.soonapie-d365-event .wt-form-card,
.soonapie-d365-event .wt-guest-card {
  background: var(--wt-card-bg);
  border-radius: var(--wt-card-radius);
}

.soonapie-d365-event .wt-hero-body{margin-top:14px;font-size:16px;line-height:1.7;color:var(--wt-hero-text,#d9e6ff);max-width:760px}.soonapie-d365-event .wt-hero-body p:last-child{margin-bottom:0}
