/* CrypCool DCA Simulator — scoped styles. All selectors live under
   .crypcool-dca-wrap to limit bleed into theme/Elementor CSS. */

.crypcool-dca-wrap {
  font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
  color: #1a2a3a;
}

.crypcool-dca-wrap *,
.crypcool-dca-wrap *::before,
.crypcool-dca-wrap *::after {
  box-sizing: border-box;
}

.crypcool-dca-wrap #crypcool-dca-root {
  max-width: 800px;
  margin: 0 auto;
}

.crypcool-dca-loading,
.crypcool-dca-noscript {
  text-align: center;
  padding: 40px;
  color: #5b7a99;
}

.crypcool-dca-noscript { color: #c44; }

/* Step indicator -------------------------------------------------------- */
.crypcool-dca-wrap .dca-steps {
  display: flex;
  flex-direction: row;
  gap: 0;
  margin-bottom: 32px;
  position: relative;
  justify-content: space-between;
}
.crypcool-dca-wrap .dca-steps::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: #e0e7ef;
  z-index: 0;
}
.crypcool-dca-wrap .dca-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.crypcool-dca-wrap .dca-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background: #e0e7ef;
  color: #8899aa;
  transition: all .3s;
}

.crypcool-dca-wrap .dca-step.active { top:0px !important; }
.crypcool-dca-wrap .dca-step.active .dca-step-num { background: #215375; color: #fff; }
.crypcool-dca-wrap .dca-step.done .dca-step-num { background: #18A999; color: #fff; }
.crypcool-dca-wrap .dca-step-label {
  font-size: 12px;
  color: #8899aa;
  text-align: center;
  font-weight: 600;
}
.crypcool-dca-wrap .dca-step.active .dca-step-label { color: #215375; }
.crypcool-dca-wrap .dca-step.done .dca-step-label { color: #18A999; }

/* Cards ---------------------------------------------------------------- */
.crypcool-dca-wrap .dca-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(33, 83, 117, .08);
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .crypcool-dca-wrap .dca-card { padding: 16px; border-radius: 12px; }
}
.crypcool-dca-wrap .dca-card h3 {
  font-size: 20px;
  color: #215375;
  margin: 0 0 20px;
  font-weight: 700;
}
.crypcool-dca-wrap .dca-card h4 {
  font-size: 16px;
  color: #215375;
  margin: 0 0 12px;
  font-weight: 600;
}
.crypcool-dca-wrap .dca-help {
  font-size: 14px;
  color: #5a7a9a;
  margin-bottom: 20px;
}

/* Fields --------------------------------------------------------------- */
.crypcool-dca-wrap .dca-field { margin-bottom: 20px; }
.crypcool-dca-wrap .dca-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #3a5a7a;
  margin-bottom: 6px;
}
.crypcool-dca-wrap .dca-field-hint {
  font-size: 12px;
  color: #8899aa;
  margin-top: 4px;
}
.crypcool-dca-wrap .dca-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e7ef;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  color: #1a2a3a;
  background: #f8fafb;
  outline: none;
  transition: border-color .2s;
}
.crypcool-dca-wrap .dca-input:focus { border-color: #18A999; background: #fff; }
.crypcool-dca-wrap .dca-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23889' fill='none' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.crypcool-dca-wrap .dca-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .crypcool-dca-wrap .dca-row { grid-template-columns: 1fr; }
}

/* Allocation ----------------------------------------------------------- */
.crypcool-dca-wrap .dca-alloc { margin-bottom: 16px; }
.crypcool-dca-wrap .dca-alloc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.crypcool-dca-wrap .dca-alloc-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}
.crypcool-dca-wrap .dca-alloc-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.crypcool-dca-wrap .dca-alloc-desc {
  font-size: 11px;
  color: #8899aa;
  font-weight: 400;
}
.crypcool-dca-wrap .dca-alloc-pct {
  font-size: 18px;
  font-weight: 800;
  min-width: 48px;
  text-align: right;
}
.crypcool-dca-wrap .dca-alloc input[type=range] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.crypcool-dca-wrap .dca-alloc input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  background: #215375;
}
.crypcool-dca-wrap .dca-alloc-total {
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 8px;
  transition: all .3s;
}
.crypcool-dca-wrap .dca-alloc-total.ok { background: #e6f9f6; color: #18A999; }
.crypcool-dca-wrap .dca-alloc-total.err { background: #fde8e8; color: #e04040; }

/* Presets -------------------------------------------------------------- */
.crypcool-dca-wrap .dca-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.crypcool-dca-wrap .dca-preset {
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid #18A999;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #18A999;
  transition: all .2s;
  font-family: inherit;
  line-height: 1.4;
}
.crypcool-dca-wrap .dca-preset:hover {
  border-color: #FF9900;
  color: #FF9900;
}
.crypcool-dca-wrap .dca-preset.active {
  border-color: #18A999;
  background: #18A999;
  color: #fff;
}

/* Buttons -------------------------------------------------------------- */
.crypcool-dca-wrap .dca-btn {
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  line-height: 1.4;
}
.crypcool-dca-wrap .dca-btn-primary {
  background: #FF9900;
  color: #fff;
}
.crypcool-dca-wrap .dca-btn-primary:hover { background: #e88a00; }
.crypcool-dca-wrap .dca-btn-primary:disabled { background: #ccc; cursor: not-allowed; }
.crypcool-dca-wrap .dca-btn-secondary {
  background: transparent;
  color: #215375;
  border: 2px solid #215375;
}
.crypcool-dca-wrap .dca-btn-secondary:hover {
  background: #215375;
  color: #fff;
}
.crypcool-dca-wrap .dca-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}
.crypcool-dca-wrap .dca-actions-bottom {
  justify-content: space-between;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .crypcool-dca-wrap .dca-actions { flex-direction: column; align-items: stretch; }
}

.crypcool-dca-wrap .dca-warn {
  color: #e04040;
  font-size: 13px;
  margin-top: 8px;
}
.crypcool-dca-wrap .dca-error {
  color: #c44;
  font-size: 14px;
  background: #fde8e8;
  padding: 12px 16px;
  border-radius: 10px;
  margin: 12px 0;
}

/* Results --------------------------------------------------------------- */
.crypcool-dca-wrap .dca-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 600px) {
  .crypcool-dca-wrap .dca-results-grid { grid-template-columns: 1fr; }
}
.crypcool-dca-wrap .dca-result-box {
  background: #f8fafb;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.crypcool-dca-wrap .dca-result-box.highlight {
  background: linear-gradient(135deg, #215375, #18A999);
  color: #fff;
}
.crypcool-dca-wrap .dca-result-label {
  font-size: 13px;
  color: #8899aa;
  margin-bottom: 4px;
  font-weight: 600;
}
.crypcool-dca-wrap .dca-result-box.highlight .dca-result-label {
  color: rgba(255, 255, 255, .8);
}
.crypcool-dca-wrap .dca-result-value {
  font-size: 24px;
  font-weight: 800;
  color: #215375;
}
.crypcool-dca-wrap .dca-result-box.highlight .dca-result-value { color: #fff; }
.crypcool-dca-wrap .dca-result-sub {
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
}
.crypcool-dca-wrap .dca-positive { color: #18A999; }
.crypcool-dca-wrap .dca-negative { color: #e04040; }

/* Chart ---------------------------------------------------------------- */
.crypcool-dca-wrap .dca-chart-wrap {
  width: 100%;
  height: 350px;
  margin: 8px 0;
  position: relative;
}
.crypcool-dca-wrap .dca-chart-loading,
.crypcool-dca-wrap .dca-chart-empty {
  text-align: center;
  padding: 40px;
  color: #8899aa;
}
.crypcool-dca-wrap .dca-loading-card {
  text-align: center;
  color: #5a7a9a;
}
.crypcool-dca-wrap .dca-mobile-hint {
  display: none;
  text-align: center;
  font-size: 12px;
  color: #8899aa;
  padding: 8px;
  background: #f8fafb;
  border-radius: 8px;
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  .crypcool-dca-wrap .dca-chart-wrap { height: 280px; }
  .crypcool-dca-wrap .dca-mobile-hint { display: block; }
  .crypcool-dca-wrap .dca-result-value { font-size: 20px; }
}
.crypcool-dca-wrap .dca-chart-tooltip {
  background: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  font-size: 13px;
  line-height: 1.6;
}
.crypcool-dca-wrap .dca-chart-tooltip-label {
  font-weight: 700;
  margin-bottom: 4px;
}

/* Lead gate ------------------------------------------------------------ */
.crypcool-dca-wrap .dca-lead-gate {
  background: linear-gradient(135deg, #215375 0%, #0f2d42 100%);
  border-radius: 16px;
  padding: 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.crypcool-dca-wrap .dca-lead-gate h4 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 8px;
  font-weight: 800;
}
.crypcool-dca-wrap .dca-lead-sub {
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.crypcool-dca-wrap .dca-lead-benefits {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.crypcool-dca-wrap .dca-lead-benefit {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
}
.crypcool-dca-wrap .dca-lead-benefit span:first-child {
  color: #18A999;
  font-size: 16px;
  font-weight: 700;
}
.crypcool-dca-wrap .dca-hubspot-container {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  color: #1a2a3a;
}
.crypcool-dca-wrap .dca-lead-consent {
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
  margin-top: 16px;
  line-height: 1.4;
}
.crypcool-dca-wrap .dca-lead-consent a {
  color: rgba(255, 255, 255, .8);
  text-decoration: underline;
}

/* Breakdown table ------------------------------------------------------ */
.crypcool-dca-wrap .dca-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.crypcool-dca-wrap .dca-breakdown {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
  min-width: 400px;
}
.crypcool-dca-wrap .dca-breakdown th {
  text-align: left;
  padding: 10px 12px;
  background: #f0f4f8;
  color: #3a5a7a;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
}
.crypcool-dca-wrap .dca-breakdown td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f4f8;
  white-space: nowrap;
}
.crypcool-dca-wrap .dca-breakdown-total td {
  border-bottom: none;
  font-weight: 700;
}
.crypcool-dca-wrap .dca-breakdown-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* Reassurance ---------------------------------------------------------- */
.crypcool-dca-wrap .dca-reassurance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 600px) {
  .crypcool-dca-wrap .dca-reassurance { grid-template-columns: 1fr; }
}
.crypcool-dca-wrap .dca-reassurance-item {
  background: #f8fafb;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.crypcool-dca-wrap .dca-reassurance-title {
  font-size: 14px;
  font-weight: 700;
  color: #215375;
  margin-bottom: 4px;
}
.crypcool-dca-wrap .dca-reassurance-text {
  font-size: 12px;
  color: #5a7a9a;
  line-height: 1.4;
}

/* CTAs ----------------------------------------------------------------- */
.crypcool-dca-wrap .dca-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.crypcool-dca-wrap .dca-cta-main {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  background: #FF9900;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: all .2s;
}
.crypcool-dca-wrap .dca-cta-main:hover {
  background: #e88a00;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 153, 0, .3);
}
.crypcool-dca-wrap .dca-cta-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  background: transparent;
  color: #215375;
  border: 2px solid #215375;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  transition: all .2s;
}
.crypcool-dca-wrap .dca-cta-secondary:hover {
  background: #215375;
  color: #fff;
}
.crypcool-dca-wrap .dca-pdf-cta {
  text-align: center;
  margin-top: 24px;
}

/* Disclaimer ----------------------------------------------------------- */
.crypcool-dca-wrap .dca-disclaimer {
  font-size: 11px;
  color: #8899aa;
  margin-top: 24px;
  padding: 16px;
  background: #f8fafb;
  border-radius: 10px;
  line-height: 1.5;
}

/* Animations ----------------------------------------------------------- */
@keyframes dca-fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.crypcool-dca-wrap .dca-animate {
  animation: dca-fadeIn .4s ease-out;
}
