.dba-sim-app,
.dba-sim-app * {
  box-sizing: border-box;
}

.dba-sim-app {
  --dba-text: #2e326f;
  --dba-muted: #747789;
  --dba-border: rgba(46, 50, 111, 0.11);
  --dba-white: #ffffff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 4vw, 58px);
  border: 1px solid var(--dba-border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 96% 2%, color-mix(in srgb, var(--dba-accent) 12%, transparent) 0, transparent 29%),
    radial-gradient(circle at 3% 100%, color-mix(in srgb, var(--dba-primary) 7%, transparent) 0, transparent 34%),
    var(--dba-bg);
  color: var(--dba-text);
  box-shadow: 0 24px 70px rgba(46, 50, 111, 0.08);
  font-family: inherit;
}

.dba-sim-app button,
.dba-sim-app input,
.dba-sim-app select {
  font: inherit;
}

.dba-sim-header {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: center;
}

.dba-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--dba-accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dba-kicker::before {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.dba-sim-header h2 {
  margin: 0 0 14px;
  color: var(--dba-primary);
  font-size: clamp(31px, 4.8vw, 56px);
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.dba-sim-header p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--dba-muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
}

.dba-tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 900px;
  margin: 0 auto 24px;
  padding: 8px;
  border: 1px solid var(--dba-border);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.dba-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 11px 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--dba-primary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.dba-tab span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--dba-primary) 18%, transparent);
  border-radius: 999px;
  font-size: 12px;
}

.dba-tab:hover {
  background: rgba(46, 50, 111, 0.05);
}

.dba-tab.is-active {
  background: linear-gradient(135deg, var(--dba-primary), var(--dba-primary-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(46, 50, 111, 0.2);
}

.dba-tab.is-active span {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.dba-sim-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 24px;
  align-items: stretch;
}

.dba-card {
  border: 1px solid var(--dba-border);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(46, 50, 111, 0.07);
}

.dba-input-card {
  padding: clamp(22px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.95);
}

.dba-panel-heading {
  margin-bottom: 26px;
}

.dba-panel-heading h3 {
  margin: 0 0 7px;
  color: var(--dba-primary);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 850;
  line-height: 1.15;
}

.dba-panel-heading p {
  margin: 0;
  color: var(--dba-muted);
  font-size: 14px;
  line-height: 1.55;
}

.dba-mode-panel[hidden] {
  display: none !important;
}

.dba-field {
  margin-bottom: 26px;
}

.dba-field.compact {
  margin-bottom: 0;
}

.dba-field label {
  display: block;
  margin: 0 0 8px;
  color: var(--dba-primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.dba-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.dba-field-row label {
  margin: 0;
  font-size: 15px;
}

.dba-input-affix {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 145px;
  padding: 9px 11px;
  border: 1px solid #dfe1ee;
  border-radius: 12px;
  background: #f9f9fd;
  transition: 0.18s ease;
}

.dba-input-affix:focus-within {
  border-color: var(--dba-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dba-accent) 15%, transparent);
}

.dba-input-affix input {
  width: 100%;
  min-width: 0;
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--dba-primary) !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-weight: 850;
}

.dba-input-affix span {
  color: #85889a;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.dba-field select,
.dba-field > input:not(.dba-range) {
  width: 100%;
  min-height: 47px;
  padding: 10px 12px;
  border: 1px solid #dfe1ee;
  border-radius: 12px;
  background: #f9f9fd;
  color: var(--dba-primary);
}

.dba-field select:focus,
.dba-field > input:not(.dba-range):focus {
  outline: 0;
  border-color: var(--dba-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dba-accent) 15%, transparent);
}

.dba-range {
  width: 100%;
  margin: 3px 0 0;
  accent-color: var(--dba-accent);
  cursor: pointer;
}

.dba-minmax {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: #999cab;
  font-size: 11px;
}

.dba-grid-2,
.dba-grid-3 {
  display: grid;
  gap: 18px;
  margin-bottom: 25px;
}

.dba-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dba-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dba-inline-note {
  min-height: 22px;
  margin: -5px 0 0;
  color: #9b6420;
  font-size: 12px;
  line-height: 1.45;
}

.dba-input-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid #ececf4;
}

.dba-link-button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--dba-primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--dba-accent) 45%, transparent);
  text-underline-offset: 4px;
}

.dba-result-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 38px);
  background: linear-gradient(145deg, var(--dba-primary), var(--dba-primary-2));
  color: #fff;
}

.dba-result-card::before,
.dba-result-card::after {
  position: absolute;
  border-radius: 999px;
  background: rgba(17, 195, 214, 0.12);
  content: "";
  pointer-events: none;
}

.dba-result-card::before {
  top: -85px;
  right: -70px;
  width: 220px;
  height: 220px;
}

.dba-result-card::after {
  bottom: 20%;
  left: -70px;
  width: 150px;
  height: 150px;
  opacity: 0.45;
}

.dba-result-card > * {
  position: relative;
  z-index: 1;
}

.dba-result-label {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.4;
}

.dba-result-main {
  display: block;
  color: #fff;
  font-size: clamp(38px, 5vw, 63px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
}

.dba-result-sub {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.dba-chart-wrap {
  height: 220px;
  margin: 24px 0 18px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.dba-chart-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.dba-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.dba-result-item {
  min-height: 84px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.065);
}

.dba-result-item span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 11px;
  line-height: 1.35;
}

.dba-result-item strong {
  display: block;
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
}

.dba-result-item.is-accent strong {
  color: var(--dba-accent);
}

.dba-insight {
  min-height: 54px;
  margin: 12px 0 20px;
  padding: 13px 15px;
  border-left: 3px solid var(--dba-accent);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.55;
}

.dba-result-actions {
  display: grid;
  gap: 9px;
}

.dba-primary-button,
.dba-secondary-button {
  width: 100%;
  min-height: 49px;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 850;
  transition: 0.18s ease;
}

.dba-primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--dba-accent), var(--dba-accent-2));
  color: var(--dba-primary-2);
  box-shadow: 0 9px 25px rgba(17, 195, 214, 0.2);
}

.dba-primary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.dba-secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.19);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.dba-secondary-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dba-disclaimer {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.53);
  font-size: 10px;
  line-height: 1.5;
}

.dba-schedule {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  border: 1px solid var(--dba-border);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.78);
}

.dba-schedule[hidden] {
  display: none !important;
}

.dba-schedule summary {
  padding: 17px 20px;
  color: var(--dba-primary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}

.dba-table-scroll {
  overflow-x: auto;
  padding: 0 16px 16px;
}

.dba-schedule table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
  background: #fff;
  font-size: 12px;
}

.dba-schedule th,
.dba-schedule td {
  padding: 10px 12px;
  border-bottom: 1px solid #ededf4;
  text-align: right;
}

.dba-schedule th:first-child,
.dba-schedule td:first-child {
  text-align: left;
}

.dba-schedule th {
  color: var(--dba-primary);
  background: #f7f8fc;
}

.dba-lead-modal[hidden] {
  display: none !important;
}

.dba-lead-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(31, 34, 79, 0.74);
  backdrop-filter: blur(7px);
}

.dba-lead-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 35px 100px rgba(20, 22, 58, 0.34);
}

.dba-lead-dialog h3 {
  margin: 4px 0 10px;
  color: var(--dba-primary);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
}

.dba-lead-dialog > p {
  margin: 0 0 24px;
  color: var(--dba-muted);
  font-size: 14px;
  line-height: 1.6;
}

.dba-modal-close {
  position: absolute;
  top: 13px;
  right: 15px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #85889a;
  cursor: pointer;
  font-size: 31px;
  line-height: 1;
}

.dba-lead-dialog input,
.dba-lead-dialog select {
  width: 100%;
  min-height: 47px;
  padding: 10px 12px;
  border: 1px solid #dfe1ee;
  border-radius: 12px;
  background: #f9f9fd;
  color: var(--dba-primary);
}

.dba-lead-dialog input:focus,
.dba-lead-dialog select:focus {
  outline: 0;
  border-color: var(--dba-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dba-accent) 15%, transparent);
}

.dba-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 17px 0;
  color: #686b7c;
  font-size: 12px;
  line-height: 1.5;
}

.dba-consent input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.dba-consent a {
  color: var(--dba-primary);
  font-weight: 700;
}

.dba-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}

.dba-form-status {
  margin: 12px 0 0;
  color: var(--dba-primary);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.dba-success-booking {
  display: inline-flex;
  margin-top: 10px;
  color: var(--dba-primary);
  font-weight: 800;
}

@media (max-width: 920px) {
  .dba-sim-layout {
    grid-template-columns: 1fr;
  }

  .dba-result-card {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .dba-sim-app {
    padding: 21px 13px;
    border-radius: 19px;
  }

  .dba-tabs {
    grid-template-columns: 1fr;
  }

  .dba-tab {
    justify-content: flex-start;
  }

  .dba-grid-2,
  .dba-grid-3 {
    grid-template-columns: 1fr;
  }

  .dba-field-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .dba-input-affix {
    width: 100%;
  }

  .dba-result-grid {
    grid-template-columns: 1fr;
  }

  .dba-chart-wrap {
    height: 190px;
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }

  .dba-sim-app,
  .dba-sim-app * {
    visibility: visible !important;
  }

  .dba-sim-app {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    padding: 10mm;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }

  .dba-tabs,
  .dba-input-card,
  .dba-result-actions,
  .dba-lead-modal,
  .dba-input-actions {
    display: none !important;
  }

  .dba-sim-layout {
    display: block;
  }

  .dba-result-card {
    color: #111;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: none;
  }

  .dba-result-card * {
    color: #111 !important;
  }

  .dba-chart-wrap {
    border-color: #ddd;
    background: #fff;
  }

  .dba-schedule {
    display: block !important;
    margin-top: 8mm;
  }
}
