/* ==========================================================================
   USA State-Wise Tax Calculators Premium Design System
   ========================================================================== */

:root {
  --or: #f97316;
  --re: #dc2626;
  --grad: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
  --soft: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
  --bdr: rgba(15,52,96,0.10);
  --mt: #6b7280;
  --bg: #ffffff;
  --bg2: #f9fafb;
  --navy: #002b60;
  --ease: cubic-bezier(0.22,1,0.36,1);
  --transition: 0.25s ease;
  
  /* Additional Tax Brand Colors */
  --pri: #dc2626;
  --succ: #16a34a;
  --info: #0284c7;
}

/* Base Wrapper */
.usc-calculator-page-wrapper {
  max-width: 100%;
  padding: 0;
  margin: 0 auto;
  font-family: var(--fxt-font, 'Poppins', 'Inter', sans-serif);
  background: #f9fafb;
  color: #111;
}

/* PAGE WRAPPER */
.page {
  max-width: 700px;
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* SEGMENTED CARD CONTAINER */
.usc-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  overflow: hidden;
}

/* BANNER */
.banner {
  background: var(--grad);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.banner::after {
  content: '';
  position: absolute;
  right: 40px; bottom: -50px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.banner-title {
  font-size: 26px; font-weight: 900; color: #fff;
  line-height: 1.15; letter-spacing: -.5px;
  margin-bottom: 6px; position: relative; z-index: 1;
}
.banner-sub {
  font-size: 11px; color: rgba(255,255,255,0.85);
  font-weight: 600; letter-spacing: .6px;
  margin-bottom: 14px; position: relative; z-index: 1;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border-radius: 20px; padding: 6px 14px;
  font-size: 11.5px; font-weight: 700; color: var(--re);
  position: relative; z-index: 1;
}

/* INNER CONTAINER */
.inner { padding: 22px 24px 48px; }

/* SECTION */
.sec { margin-bottom: 24px; }
.sec-head { border-top: 2px solid var(--or); padding-top: 13px; margin-bottom: 14px; }
.lbl {
  display: block; font-size: 11.5px; font-weight: 700;
  color: var(--re); letter-spacing: .6px; margin-bottom: 7px; text-transform: uppercase;
}
.sec-head .lbl { margin-bottom: 0; }
.hint { font-size: 11px; color: var(--mt); margin-top: 4px; line-height: 1.4; }

/* INFO BOX */
.info-box {
  background: var(--soft); border: 1px solid #fca5a5;
  border-radius: 10px; padding: 12px 14px;
  font-size: 12.5px; color: #b91c1c; line-height: 1.5; margin-bottom: 18px;
}

/* UNIT SWITCH */
.unit-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding: 12px 14px;
  background: var(--bg2); border-radius: 10px; border: 1.5px solid #e5e7eb;
}
.unit-sw { display: flex; background: #fff; border: 1.5px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.unit-btn {
  padding: 7px 18px; font-size: 13px; font-weight: 700;
  font-family: inherit; cursor: pointer; border: none;
  background: transparent; color: var(--mt); transition: all .2s;
}
.unit-btn.active { background: var(--grad); color: #fff; }

/* GRID */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* FIELDS & INPUTS */
.field { margin-bottom: 16px; }
.inp-wrap { position: relative; }
.inp {
  width: 100%; padding: 12px 14px; border: 1.5px solid #e5e7eb;
  border-radius: 10px; font-size: 15px; font-weight: 600; color: #111;
  background: var(--bg2); outline: none; font-family: inherit;
  transition: border-color .2s; box-sizing: border-box;
}
.inp:focus { border-color: var(--or); background: #fff; }
.inp-suffix {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 13px; font-weight: 700; color: var(--mt); pointer-events: none;
}
.sel {
  width: 100%; padding: 12px 36px 12px 14px; border: 1.5px solid #e5e7eb;
  border-radius: 10px; font-size: 14px; font-weight: 600; color: #111;
  background: var(--bg2); outline: none; font-family: inherit;
  appearance: none; cursor: pointer; transition: border-color .2s;
}
.sel:focus { border-color: var(--or); }
.sel-wrap { position: relative; }
.sel-wrap::after {
  content: '▾'; position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%); font-size: 14px; color: var(--mt); pointer-events: none;
}

/* TOGGLE GROUP */
.tog-group { display: flex; gap: 8px; }
.tog-btn {
  flex: 1; padding: 12px 6px; border-radius: 10px; cursor: pointer;
  font-size: 13px; font-weight: 700; font-family: inherit; transition: all .2s;
  text-align: center; border: 1.5px solid #e5e7eb; background: #fff; color: #374151;
}
.tog-btn.active { border: 2px solid var(--or); background: var(--grad); color: #fff; }

/* CALCULATE BUTTON */
.calc-btn {
  width: 100%; padding: 17px; background: var(--grad);
  color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 800;
  cursor: pointer; font-family: inherit; letter-spacing: .3px;
  box-shadow: 0 4px 15px rgba(220,38,38,0.25); transition: all .2s; margin-top: 8px;
}
.calc-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(220,38,38,0.35); }

/* RESULTS & VISUAL CHARTS */
.results { margin-top: 24px; display: none; }
.chart-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg2);
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}
.chart-col {
  flex-shrink: 0;
}
.chart-circle-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: conic-gradient(var(--succ) 0% 75%, #e2e8f0 75% 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.chart-circle-wrap::before {
  content: '';
  position: absolute;
  width: 76px;
  height: 76px;
  background: #fff;
  border-radius: 50%;
  z-index: 1;
}
.chart-circle-value {
  position: relative;
  z-index: 2;
  font-size: 20px;
  font-weight: 900;
  color: #111;
}
.chart-circle-label {
  position: relative;
  z-index: 2;
  font-size: 8px;
  font-weight: 800;
  color: var(--mt);
  letter-spacing: 0.5px;
}
.chart-desc {
  flex-grow: 1;
}

/* PROGRESS BARS BREAKDOWN */
.prog-row {
  margin-bottom: 12px;
}
.prog-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
}
.prog-bar-wrap {
  background: #e2e8f0;
  border-radius: 6px;
  height: 8px;
  overflow: hidden;
  width: 100%;
}
.prog-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease;
}
.bg-green { background-color: var(--succ); }
.bg-blue { background-color: var(--info); }
.bg-purple { background-color: #8b5cf6; }
.bg-orange { background-color: var(--or); }
.bg-gray { background-color: var(--mt); }

/* STAT LIABILITY CARDS */
.det-card { background: var(--bg2); border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.det-title { font-size: 12px; font-weight: 700; color: var(--re); letter-spacing: .5px; margin-bottom: 12px; }
.det-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 9px; margin-bottom: 9px; border-bottom: 1px solid #e5e7eb;
}
.det-row:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.dk { font-size: 13px; color: var(--mt); font-weight: 500; }
.dv { font-size: 13px; color: #111; font-weight: 700; }

.reset-btn {
  width: 100%; padding: 14px; background: #fff; color: var(--re);
  border: 2px solid var(--re); border-radius: 12px; font-size: 13.5px;
  font-weight: 700; cursor: pointer; font-family: inherit; transition: all .2s; margin-bottom: 8px;
}
.reset-btn:hover { background: var(--soft); }
.print-btn {
  width: 100%; padding: 14px; background: #111; color: #fff; border: none;
  border-radius: 12px; font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.disc {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px;
  padding: 12px 14px; font-size: 12px; color: #991b1b; line-height: 1.5; margin-bottom: 12px;
}

/* CUSTOM TABLES */
.usc-custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.usc-custom-table th {
  background: #f8fafc;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--mt);
  border-bottom: 1.5px solid #e5e7eb;
  text-transform: uppercase;
}
.usc-custom-table td {
  padding: 10px 12px;
  font-size: 12px;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}
.usc-custom-table tr:hover td {
  background-color: #f8fafc;
}

/* LEAD BOX */
.usc-lead-box {
  background: var(--bg2);
  border: 2px dashed var(--re);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.usc-lead-header {
  font-size: 16px;
  font-weight: 800;
  color: var(--re);
  margin-bottom: 10px;
  text-align: center;
}
.usc-lead-body p {
  font-size: 12.5px;
  color: var(--mt);
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.4;
}

/* ==========================================================================
   ARTICLE SECTION
   ========================================================================== */
.usc-article-wrapper {
  max-width: 600px; margin: 16px auto 0;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 14px; box-shadow: 0 4px 15px rgba(0,0,0,0.01); overflow: hidden;
}
.usc-article-container { padding: 24px; }
.usc-article-title {
  font-size: 20px; font-weight: 800; color: #111;
  border-bottom: 2px solid var(--or);
  padding-bottom: 8px; margin-bottom: 14px; line-height: 1.3;
}
.usc-article-preview p {
  font-size: 13.5px; line-height: 1.65; color: #6b7280; margin: 0 0 16px;
}
.usc-article-full { display: none; }
.usc-article-full.usc-article-open { display: block; }
.usc-article-content h2 { font-size: 18px; font-weight: 700; margin-top: 20px; color: var(--re); }
.usc-article-content h3 { font-size: 15px; font-weight: 700; margin-top: 15px; color: #374151; }
.usc-article-content p { font-size: 13.5px; line-height: 1.6; color: #4b5563; margin-bottom: 12px; }
.usc-article-content ul, .usc-article-content ol { margin-left: 20px; margin-bottom: 15px; }
.usc-article-content li { font-size: 13px; color: #4b5563; line-height: 1.5; margin-bottom: 5px; }

/* Read Full Article Button — dark navy pill */
.usc-read-full-wrap { text-align: center; margin-top: 16px; }
.usc-read-full-btn {
  display: inline-block;
  background: var(--navy);
  color: #fff; border: none; border-radius: 50px;
  padding: 14px 44px; font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer; letter-spacing: .2px;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 18px rgba(0,43,96,0.22);
}
.usc-read-full-btn:hover { background: #001f4d; transform: translateY(-1px); }

/* ==========================================================================
   SHORTCODE DIRECTORY [ust_directory]
   ========================================================================== */
.usc-dir-container {
  max-width: 900px; margin: 30px auto; padding: 24px;
  background: #fff; border: 1.5px solid #e5e7eb;
  border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); font-family: inherit;
}
.usc-dir-header { text-align: center; margin-bottom: 24px; border-bottom: 2px solid var(--or); padding-bottom: 12px; }
.usc-dir-header h3 { font-size: 20px; font-weight: 800; color: var(--re); margin: 0 0 6px; }
.usc-dir-header p  { font-size: 13px; color: var(--mt); margin: 0; }
.usc-dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 10px; }
.usc-dir-card {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border: 1px solid #e5e7eb; border-radius: 10px; text-decoration: none;
  background: var(--bg2); color: #374151; font-size: 12.5px; font-weight: 700; transition: all 0.2s;
}
.usc-dir-card:hover { border-color: var(--or); background: var(--soft); color: var(--re); transform: translateY(-1px); }
.usc-dir-flag { font-size: 16px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 600px) {
  .page { border-left: none; border-right: none; padding: 0 !important; }
  .usc-card { padding: 12px 10px !important; border-radius: 0 !important; border-left: none !important; border-right: none !important; margin-bottom: 16px !important; }
  .grid2 { grid-template-columns: 1fr !important; gap: 8px; }
  .banner { padding: 20px 12px 16px !important; border-radius: 0 !important; }
  .inner { padding: 12px 8px !important; }
  .banner-title { font-size: 20px; }
  .chart-row { flex-direction: column; text-align: center; gap: 15px; }
  .usc-dir-grid { grid-template-columns: repeat(2,1fr); }
  .usc-article-wrapper {
    margin-left: 0; margin-right: 0;
    border-radius: 0; border-left: none; border-right: none;
  }
  .usc-read-full-btn { padding: 13px 32px; font-size: 14px; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  body { background:#fff!important; color:#000!important; font-size:12px!important; }
  .usc-calculator-page-wrapper { background:#fff!important; padding:0!important; }
  .page { max-width:100%!important; box-shadow:none!important; border:none!important; margin:0!important; padding:0!important; }
  .inner { padding:0!important; }
  .info-box,.unit-row,.sec,.calc-btn,.reset-btn,.print-btn,
  .usc-article-wrapper,.usc-dir-container,#ust-lead-capture-box,.disc,
  header,footer,#header,#footer,.sidebar,#sidebar { display:none!important; }
  .results { display:block!important; margin-top:0!important; }
  .banner { background:#fff!important; border-bottom:2px solid #000!important; color:#000!important; padding:10px 0!important; margin-bottom:20px!important; }
  .banner::before,.banner::after { display:none!important; }
  .banner-title { color:#000!important; font-size:20px!important; margin-bottom:4px!important; }
  .banner-sub { color:#555!important; font-size:10px!important; }
  .badge { display:none!important; }
  .det-card { border:1px solid #000!important; background:#fff!important; padding:12px!important; margin-bottom:15px!important; border-radius:0!important; }
  .det-title { color:#000!important; border-bottom:1.5px solid #000!important; padding-bottom:4px!important; font-weight:800!important; font-size:11px!important; margin-bottom:10px!important; }
  .det-row { border-bottom:1px dashed #ccc!important; padding:6px 0!important; display:flex!important; justify-content:space-between!important; }
  .det-row:last-child { border-bottom:none!important; }
  .dk { color:#000!important; font-size:11px!important; }
  .dv { color:#000!important; font-size:11px!important; }
  #results-panel { display: block !important; }
  .usc-comparison-box, .usc-action-buttons { display: none !important; }
}

/* ==========================================================================
   TOOLTIPS
   ========================================================================== */
.ust-tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 6px;
  color: var(--mt);
  font-size: 13px;
  line-height: 1;
  vertical-align: middle;
  transition: color 0.2s;
}
.ust-tooltip:hover {
  color: var(--pri);
}
.ust-tooltip .ust-tooltiptext {
  visibility: hidden;
  width: 220px;
  background-color: #1e293b;
  color: #ffffff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 10px;
  position: absolute;
  z-index: 99;
  bottom: 125%;
  left: 50%;
  margin-left: -110px;
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 11px;
  line-height: 1.4;
  font-weight: normal;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-family: inherit;
}
.ust-tooltip .ust-tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
}
.ust-tooltip:hover .ust-tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* ==========================================================================
   CPT footer buttons & actions
   ========================================================================== */
.usc-comp-btn {
  display: inline-block;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #000000;
  text-decoration: none;
  transition: all 0.2s;
}
.usc-comp-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #000000;
}
.usc-action-btn-again {
  width: 100%;
  background: transparent;
  border: 2px solid #dc2626;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  color: #dc2626;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}
.usc-action-btn-again:hover {
  background: rgba(220,38,38,0.05);
}
.usc-action-btn-print {
  width: 100%;
  background: #000000;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}
.usc-action-btn-print:hover {
  background: #1f2937;
}

