.smt-dcs-ec{
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 0;
  box-sizing: border-box;
}

.smt-dcs-ec *,
.smt-dcs-ec *::before,
.smt-dcs-ec *::after{
  box-sizing: border-box;
}

.smt-dcs-ec-card{
  width: min(100%, 960px);
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(15,23,42,.09);
  border-radius: 24px;
  background: #f8fafc;
  box-shadow: 0 24px 60px rgba(15,23,42,.10);
  overflow: hidden;
}

.smt-dcs-ec-card > h2{
  margin: 0;
  padding: 22px 24px 10px;
  border: 1px solid rgba(37,99,235,.12);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.smt-dcs-ec-card > h2 + p{
  margin: 0 0 24px;
  padding: 0 24px 22px;
  border: 1px solid rgba(37,99,235,.12);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.smt-dcs-ec-alert{
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.12);
  margin: 16px 0;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}
.smt-dcs-ec-error{ background: rgba(220,53,69,.08); border-color: rgba(220,53,69,.25); }
.smt-dcs-ec-success{ background: rgba(25,135,84,.08); border-color: rgba(25,135,84,.25); }

.smt-dcs-ec-result{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 26px);
  margin: 16px 0;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15,23,42,.07);
}
.smt-dcs-ec-head{ display:flex; justify-content: space-between; align-items:center; gap: 12px; flex-wrap: wrap; padding-bottom:14px; border-bottom:1px solid rgba(15,23,42,.08); }
.smt-dcs-ec-path{ font-weight: 800; }
.smt-dcs-ec-badge{ font-weight: 800; padding: 7px 12px; border-radius: 999px; background: rgba(0,0,0,.06); border: 1px solid rgba(0,0,0,.12); }
.smt-dcs-ec-eligible{ border-left: 5px solid #198754; }
.smt-dcs-ec-likely{ border-left: 5px solid #d39e00; }
.smt-dcs-ec-not_eligible{ border-left: 5px solid #dc3545; }
.smt-dcs-ec-eligible .smt-dcs-ec-badge{ background: rgba(25,135,84,.12); border-color: rgba(25,135,84,.25); }
.smt-dcs-ec-likely .smt-dcs-ec-badge{ background: rgba(255,193,7,.18); border-color: rgba(255,193,7,.25); }
.smt-dcs-ec-not_eligible .smt-dcs-ec-badge{ background: rgba(220,53,69,.12); border-color: rgba(220,53,69,.25); }

.smt-dcs-ec-card form{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  margin-top: 24px;
}

.smt-dcs-ec-card form > h3,
.smt-dcs-ec-card form > input[type="hidden"],
.smt-dcs-ec-card form > .smt-dcs-ec-pathway-only,
.smt-dcs-ec-card form > script,
.smt-dcs-ec-card form > noscript{
  grid-column: 1 / -1;
}

.smt-dcs-ec-card form > h3{
  margin: 18px 0 0;
  padding: 15px 18px;
  border: 1px solid rgba(37,99,235,.12);
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  box-shadow: 0 6px 18px rgba(37,99,235,.05);
}

.smt-dcs-ec-card form > p,
.smt-dcs-ec-pathway-only > p:not(:first-child){
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(15,23,42,.09);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15,23,42,.055);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.smt-dcs-ec-card form > p:hover,
.smt-dcs-ec-pathway-only > p:not(:first-child):hover{
  border-color: rgba(37,99,235,.24);
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
  transform: translateY(-1px);
}

.smt-dcs-ec-card form > p:has(.smt-dcs-ec-btn){
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid rgba(15,23,42,.10);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.smt-dcs-ec-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 10px 18px;
  cursor: pointer;
  background: #111827;
  color:#fff;
  font-weight:700;
  text-decoration:none;
  box-shadow: 0 8px 18px rgba(17,24,39,.16);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.smt-dcs-ec-btn:hover{ transform: translateY(-1px); box-shadow: 0 12px 24px rgba(17,24,39,.20); }
.smt-dcs-ec-btn-secondary{ background: #e5e7eb; color: #111827; box-shadow:none; }

.smt-dcs-ec-links{
  margin-top: 18px;
  padding: clamp(18px, 3vw, 24px);
  border-radius: 18px;
  border: 1px solid rgba(37,99,235,.12);
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
}
.smt-dcs-ec-disclaimer{ font-size: 12px; opacity: .85; }

.smt-dcs-ec-pathway-only{
  display:none;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(37,99,235,.14);
  border-radius: 18px;
  background: #f0f7ff;
}
.smt-dcs-ec-pathway-only.is-active{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.smt-dcs-ec-pathway-only > p:first-child{
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 2px;
}
.smt-dcs-ec-help{ opacity:.85; font-size: 13px; }

.smt-dcs-ec-card form select,
.smt-dcs-ec-card form input[type="text"],
.smt-dcs-ec-card form input[type="number"]{
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 44px;
  margin-top: 7px;
  padding: 9px 11px;
  border: 1px solid rgba(15,23,42,.16);
  border-radius: 11px;
  background: #fff;
  color: #111;
  pointer-events: auto;
  position: relative;
  z-index: 2;
  -webkit-appearance: auto;
  appearance: auto;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.smt-dcs-ec-card form select:focus,
.smt-dcs-ec-card form input[type="text"]:focus,
.smt-dcs-ec-card form input[type="number"]:focus{
  outline: none;
  border-color: rgba(37,99,235,.65);
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

.smt-dcs-ec-card form label{
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 600;
}

@media (max-width: 720px){
  .smt-dcs-ec{ padding: 0; }
  .smt-dcs-ec-card{
    width: 100%;
    padding: 14px;
    border-radius: 18px;
  }
  .smt-dcs-ec-card > h2{ padding: 18px 18px 8px; }
  .smt-dcs-ec-card > h2 + p{ padding: 0 18px 18px; }
  .smt-dcs-ec-card form,
  .smt-dcs-ec-pathway-only.is-active{
    grid-template-columns: 1fr;
  }
  .smt-dcs-ec-card form > p,
  .smt-dcs-ec-pathway-only > p:not(:first-child){ padding: 16px; }
  .smt-dcs-ec-head{ align-items:flex-start; }
  .smt-dcs-ec-btn{ width: 100%; }
}

@media (prefers-reduced-motion: reduce){
  .smt-dcs-ec *,
  .smt-dcs-ec *::before,
  .smt-dcs-ec *::after{
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
