/* DO ROI Calculator — v1.0 */

#do-roi-root,
#do-roi-root * {
  box-sizing: border-box !important;
  font-family: -apple-system,"SF Pro Display","Helvetica Neue",Arial,sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
#do-roi-root { display:block; width:100%; }

/* ── Header ── */
#do-roi-root .dor-header {
  background: #000;
  padding: 64px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#do-roi-root .dor-header-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 15% 40%, rgba(0,122,255,0.20) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 30%, rgba(48,209,88,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 50% 100%, rgba(255,159,10,0.10) 0%, transparent 70%);
}
#do-roi-root .dor-header-inner {
  position: relative; z-index: 2; max-width: 680px; margin: 0 auto;
}
#do-roi-root .dor-badge {
  display: inline-block;
  font-size: 11px !important; font-weight: 700 !important;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #ff9f0a !important; background: rgba(255,159,10,0.12);
  border: 1px solid rgba(255,159,10,0.25);
  padding: 6px 16px; border-radius: 100px; margin-bottom: 20px;
}
#do-roi-root .dor-title {
  font-size: clamp(28px,5vw,54px) !important;
  font-weight: 800 !important; letter-spacing: -0.04em;
  line-height: 1.0; color: #f5f5f7 !important;
  margin: 0 0 16px 0 !important;
}
#do-roi-root .dor-title span {
  background: linear-gradient(135deg,#ff9f0a,#ff6b00,#ff2d55);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
#do-roi-root .dor-sub {
  font-size: 16px !important; color: rgba(255,255,255,0.45) !important;
  margin: 0 !important; line-height: 1.6;
}

/* ── Body ── */
#do-roi-root .dor-body {
  background: #f5f5f7;
  padding: 40px 24px 64px;
}

/* ── Tabs ── */
#do-roi-root .dor-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  max-width: 860px; margin: 0 auto 28px;
}
#do-roi-root .dor-tab {
  flex: 1; min-width: 120px;
  padding: 12px 16px;
  background: #fff !important;
  border: 1.5px solid rgba(0,0,0,0.08) !important;
  border-radius: 14px; cursor: pointer;
  font-size: 14px !important; font-weight: 600 !important;
  color: #6e6e73 !important;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all 0.2s;
}
#do-roi-root .dor-tab:hover {
  border-color: rgba(0,122,255,0.3) !important;
  color: #007aff !important;
}
#do-roi-root .dor-tab.dor-tab-active {
  background: #007aff !important;
  border-color: #007aff !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(0,122,255,0.35);
}
#do-roi-root .dor-tab-icon { font-size: 16px; }

/* ── Panel ── */
#do-roi-root .dor-panel {
  display: none;
  max-width: 860px; margin: 0 auto;
  gap: 24px;
}
#do-roi-root .dor-panel.dor-panel-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ── Inputs (left col) ── */
#do-roi-root .dor-inputs {
  display: flex; flex-direction: column; gap: 20px;
  background: #fff; border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid rgba(0,0,0,0.07);
}
#do-roi-root .dor-field-hdr {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
#do-roi-root .dor-field label {
  font-size: 13px !important; font-weight: 600 !important;
  color: #1d1d1f !important;
}
#do-roi-root .dor-val {
  font-size: 13px !important; font-weight: 700 !important;
  color: #007aff !important;
  background: rgba(0,122,255,0.08);
  padding: 2px 10px; border-radius: 100px;
}

/* ── Range sliders ── */
#do-roi-root .dor-range {
  width: 100%; height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #007aff 0%, #007aff var(--pct,20%), #e5e5ea var(--pct,20%));
  border-radius: 2px; outline: none; cursor: pointer;
  margin: 0 !important; padding: 0 !important; border: none !important;
}
#do-roi-root .dor-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2.5px solid #007aff;
  box-shadow: 0 2px 8px rgba(0,122,255,0.3);
  cursor: pointer; transition: transform 0.15s;
}
#do-roi-root .dor-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
#do-roi-root .dor-range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2.5px solid #007aff;
  box-shadow: 0 2px 8px rgba(0,122,255,0.3);
  cursor: pointer;
}
#do-roi-root .dor-range-labels {
  display: flex; justify-content: space-between;
  font-size: 11px !important; color: #aeaeb2 !important;
  margin-top: 5px;
}

/* ── Preview (right col) ── */
#do-roi-root .dor-preview {
  background: #000; border-radius: 20px;
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid rgba(255,255,255,0.06);
}
#do-roi-root .dor-preview-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
#do-roi-root .dor-preview-item:last-child { border-bottom: none; padding-bottom: 0; }
#do-roi-root .dor-preview-label {
  font-size: 12px !important; color: rgba(255,255,255,0.4) !important;
}
#do-roi-root .dor-preview-value {
  font-size: 18px !important; font-weight: 700 !important;
  color: #f5f5f7 !important; letter-spacing: -0.02em;
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
}
#do-roi-root .dor-preview-highlight { background: rgba(255,255,255,0.03); border-radius: 10px; padding: 14px 12px; margin: 0 -12px; }
#do-roi-root .dor-preview-big .dor-preview-label { font-size: 13px !important; color: rgba(255,255,255,0.5) !important; }
#do-roi-root .dor-big {
  font-size: 44px !important; font-weight: 800 !important;
  letter-spacing: -0.04em; color: #fff !important;
  background: linear-gradient(135deg,#30d158,#5ac8fa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
#do-roi-root .dor-green { color: #30d158 !important; }

/* ── Email gate ── */
#do-roi-root .dor-gate {
  max-width: 860px; margin: 28px auto 0;
  background: #000; border-radius: 20px;
  padding: 40px 36px;
  text-align: center;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
}
#do-roi-root .dor-gate::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(255,159,10,0.12), transparent),
    radial-gradient(ellipse 50% 70% at 80% 50%, rgba(0,122,255,0.10), transparent);
}
#do-roi-root .dor-gate-inner { position: relative; z-index: 2; }
#do-roi-root .dor-gate-title {
  font-size: 22px !important; font-weight: 800 !important;
  color: #f5f5f7 !important; margin: 0 0 10px 0 !important;
  letter-spacing: -0.025em;
}
#do-roi-root .dor-gate-sub {
  font-size: 15px !important; color: rgba(255,255,255,0.45) !important;
  margin: 0 0 24px 0 !important; max-width: 480px; margin-left: auto; margin-right: auto;
  line-height: 1.6;
}
#do-roi-root .dor-gate-form {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 520px; margin: 0 auto;
}
#do-roi-root .dor-input {
  flex: 1; min-width: 180px; padding: 13px 16px;
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 12px; font-size: 14px !important;
  color: #f5f5f7 !important; outline: none !important;
}
#do-roi-root .dor-input::placeholder { color: rgba(255,255,255,0.28) !important; }
#do-roi-root .dor-input:focus { border-color: rgba(255,159,10,0.5) !important; }
#do-roi-root .dor-btn-primary {
  padding: 14px 28px;
  background: linear-gradient(135deg,#ff9f0a,#ff6b00) !important;
  border: none !important; border-radius: 12px; cursor: pointer;
  font-size: 15px !important; font-weight: 700 !important; color: #fff !important;
  box-shadow: 0 6px 24px rgba(255,159,10,0.4);
  transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap;
}
#do-roi-root .dor-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255,159,10,0.5);
}
#do-roi-root .dor-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
#do-roi-root .dor-privacy {
  font-size: 11px !important; color: rgba(255,255,255,0.28) !important;
  margin: 12px 0 0 0 !important;
}

/* ── Results ── */
#do-roi-root .dor-results {
  max-width: 860px; margin: 28px auto 0;
  animation: dor-in 0.5s cubic-bezier(0.22,1,0.36,1);
}
@keyframes dor-in {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
#do-roi-root .dor-results-header {
  background: #000; border-radius: 20px;
  padding: 40px 36px; text-align: center;
  position: relative; overflow: hidden; margin-bottom: 16px;
}
#do-roi-root .dor-results-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(48,209,88,0.20), transparent),
    radial-gradient(ellipse 50% 60% at 20% 20%, rgba(0,122,255,0.14), transparent);
}
#do-roi-root .dor-results-eyebrow {
  font-size: 12px !important; font-weight: 600 !important;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4) !important;
  margin: 0 0 12px 0 !important; position: relative; z-index:2;
}
#do-roi-root .dor-results-score {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative; z-index: 2;
}
#do-roi-root .dor-results-score > span:first-child {
  font-size: 72px !important; font-weight: 900 !important;
  letter-spacing: -0.05em; line-height: 1;
  background: linear-gradient(135deg,#30d158,#5ac8fa,#007aff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
#do-roi-root .dor-results-label {
  font-size: 14px !important; color: rgba(255,255,255,0.5) !important;
}
#do-roi-root .dor-result-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px;
}
#do-roi-root .dor-result-card {
  background: #fff; border-radius: 16px; padding: 20px;
  border: 1px solid rgba(0,0,0,0.07);
}
#do-roi-root .drc-label {
  font-size: 12px !important; color: #86868b !important; margin: 0 0 6px 0 !important;
}
#do-roi-root .drc-value {
  font-size: 22px !important; font-weight: 800 !important;
  color: #1d1d1f !important; margin: 0 !important; letter-spacing: -0.02em;
}
#do-roi-root .drc-green { color: #1a8a40 !important; }

#do-roi-root .dor-result-note {
  background: rgba(0,122,255,0.06); border: 1px solid rgba(0,122,255,0.14);
  border-radius: 14px; padding: 16px 20px;
  font-size: 14px !important; color: #1d1d1f !important;
  margin-bottom: 16px; line-height: 1.6;
}
#do-roi-root .dor-result-cta {
  background: #000; border-radius: 20px; padding: 36px;
  text-align: center; position: relative; overflow: hidden;
}
#do-roi-root .dor-result-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255,159,10,0.12), transparent);
}
#do-roi-root .dor-result-cta-h {
  font-size: 22px !important; font-weight: 800 !important;
  color: #f5f5f7 !important; margin: 0 0 8px 0 !important;
  letter-spacing: -0.025em; position: relative; z-index: 2;
}
#do-roi-root .dor-result-cta-p {
  font-size: 15px !important; color: rgba(255,255,255,0.45) !important;
  margin: 0 0 24px 0 !important; position: relative; z-index: 2;
}
#do-roi-root .dor-result-cta .dor-btn-primary { position: relative; z-index: 2; }
#do-roi-root .dor-result-cta-small {
  font-size: 12px !important; color: rgba(255,255,255,0.28) !important;
  margin: 14px 0 0 0 !important; position: relative; z-index: 2;
}

/* ── Responsive ── */
@media screen and (max-width: 700px) {
  #do-roi-root .dor-panel.dor-panel-active { grid-template-columns: 1fr; }
  #do-roi-root .dor-result-cards { grid-template-columns: 1fr 1fr; }
  #do-roi-root .dor-gate { padding: 28px 20px; }
  #do-roi-root .dor-gate-form { flex-direction: column; }
  #do-roi-root .dor-input { min-width: 100%; }
  #do-roi-root .dor-btn-primary { width: 100%; text-align: center; }
}
@media screen and (max-width: 480px) {
  #do-roi-root .dor-result-cards { grid-template-columns: 1fr; }
  #do-roi-root .dor-body { padding: 28px 16px 48px; }
}
