/* ================================================================
   Windows Server License Calculator — windows_server_license_calculator.css
   ================================================================ */

.ws-wrap { font-family: inherit; color: #1a2236; }

/* ── Hero ── */
.ws-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
  padding: 52px 24px 44px;
  text-align: center;
  position: relative; overflow: hidden;
}
.ws-hero::before {
  content: ''; position: absolute;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(56,189,248,.08); top: -120px; right: -80px; pointer-events: none;
}
.ws-hero::after {
  content: ''; position: absolute;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,.03); bottom: -60px; left: -40px; pointer-events: none;
}
.ws-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.ws-hero-icon { width: 64px; height: 64px; margin: 0 auto 20px; filter: drop-shadow(0 4px 20px rgba(37,99,235,.4)); }
.ws-hero-icon svg { width: 100%; height: 100%; }
.ws-hero-title {
  margin: 0 0 14px; color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800; line-height: 1.25;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.ws-hero-sub { margin: 0; color: rgba(255,255,255,.75); font-size: 1rem; line-height: 1.65; }

/* ── Outer ── */
.ws-outer { max-width: 1080px; margin: 0 auto; padding: 0 20px 60px; }

/* ── Two-column layout ── */
.ws-main-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 20px;
  margin-top: -24px;
  align-items: start;
}
@media (max-width: 860px) { .ws-main-layout { grid-template-columns: 1fr; } }

/* ── Cards (shared) ── */
.ws-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  margin-bottom: 16px;
}
.ws-card:last-child { margin-bottom: 0; }
.ws-card-heading {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: #6b7280; margin-bottom: 18px;
}
.ws-card-heading svg { flex-shrink: 0; }

/* Fields */
.ws-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.ws-field:last-child { margin-bottom: 0; }
.ws-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 480px) { .ws-field-row { grid-template-columns: 1fr; } }

.ws-label {
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: #6b7280;
}
.ws-label-hint {
  font-weight: 400; text-transform: none; letter-spacing: 0;
  color: #9ca3af; font-size: .72rem; cursor: help;
}
.ws-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* Inputs */
.ws-input {
  padding: 10px 13px; border: 1.5px solid #d1d5db;
  border-radius: 8px; font-size: .95rem; color: #111827;
  background: #f9fafb; outline: none; box-sizing: border-box;
  transition: border-color .18s, box-shadow .18s; width: 100%;
}
.ws-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); background: #fff; }
.ws-input-sm { max-width: 100%; }

/* Sliders */
.ws-slider {
  -webkit-appearance: none; height: 5px; border-radius: 4px;
  background: #e5e7eb; outline: none; cursor: pointer; width: 100%;
}
.ws-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #2563eb; box-shadow: 0 2px 6px rgba(37,99,235,.35);
  cursor: pointer; transition: transform .15s;
}
.ws-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.ws-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #2563eb; border: none;
  box-shadow: 0 2px 6px rgba(37,99,235,.35); cursor: pointer;
}
.ws-slider-sub  { font-size: .72rem; color: #9ca3af; }

.ws-duration-live {
  font-size: .9rem; font-weight: 700; color: #2563eb;
  font-variant-numeric: tabular-nums;
}

/* Cores readout */
.ws-cores-readout {
  display: flex; align-items: center; justify-content: space-between;
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px;
  padding: 10px 14px; margin-top: 4px;
}
.ws-cores-readout-label { font-size: .8rem; color: #1e40af; font-weight: 600; }
.ws-cores-readout-val { font-size: 1.1rem; font-weight: 800; color: #1e3a8a; font-variant-numeric: tabular-nums; }
.ws-field-note { font-size: .76rem; color: #9ca3af; margin-top: 6px; line-height: 1.5; }
.ws-disclaimer { padding: 2px 4px; }
.ws-disclaimer a { color: #2563eb; font-weight: 600; }

/* Edition selector */
.ws-edition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ws-ed-card {
  border: 1.5px solid #d1d5db; border-radius: 10px;
  padding: 14px; background: #f9fafb; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  transition: border-color .15s, background .15s;
}
.ws-ed-card:hover { border-color: #93c5fd; }
.ws-ed-card--on { border-color: #2563eb; background: #eff6ff; }
.ws-ed-name { font-size: .92rem; font-weight: 800; color: #111827; }
.ws-ed-card--on .ws-ed-name { color: #1e3a8a; }
.ws-ed-desc { font-size: .74rem; color: #6b7280; }

/* Checkbox row */
.ws-checkbox-row {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .86rem; color: #374151; cursor: pointer; line-height: 1.5;
}
.ws-checkbox-row input { margin-top: 3px; width: 16px; height: 16px; accent-color: #2563eb; cursor: pointer; flex-shrink: 0; }

/* Currency / toggle */
.ws-currency-toggle {
  display: inline-flex; background: #f3f4f6;
  border: 1px solid #e5e7eb; border-radius: 6px; padding: 2px; gap: 2px;
}
.ws-ctgl {
  padding: 4px 10px; border: none; border-radius: 4px;
  background: transparent; font-size: .75rem; font-weight: 700;
  color: #6b7280; cursor: pointer; transition: background .15s, color .15s;
}
.ws-ctgl--on { background: #fff; color: #2563eb; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.ws-currency-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 4px 0; font-size: .78rem; color: #6b7280; font-weight: 600;
}

/* ── Results column ── */
.ws-results-col { position: sticky; top: 20px; }
@media (max-width: 860px) { .ws-results-col { position: static; } }

/* Results hero */
.ws-results-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  border-radius: 12px;
  padding: 28px 24px 20px;
  text-align: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 32px rgba(30,58,138,.3);
}
.ws-results-label {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.5); margin-bottom: 8px;
}
.ws-results-total {
  font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 900;
  color: #fff; line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
  margin-bottom: 6px;
}
.ws-results-duration { font-size: .82rem; color: rgba(255,255,255,.6); }
.ws-results-packs {
  font-size: .8rem; color: #93c5fd; font-weight: 600;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.15);
}

/* Ways to achieve this core count */
.ws-achieve-list { display: flex; flex-direction: column; gap: 6px; }
.ws-achieve-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px;
  background: #f9fafb; border: 1px solid #e5e7eb;
  font-size: .82rem;
}
.ws-achieve-row--current { background: #eff6ff; border-color: #93c5fd; }
.ws-achieve-combo { color: #111827; font-weight: 600; flex: 1; }
.ws-achieve-total { color: #6b7280; font-variant-numeric: tabular-nums; }
.ws-achieve-tag {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: #1e40af; background: #dbeafe;
  padding: 2px 7px; border-radius: 10px; white-space: nowrap;
}

/* Cost section — collapsed by default, de-emphasized */
.ws-cost-toggle {
  width: 100%; padding: 10px 4px; border: none; background: transparent;
  display: flex; align-items: center; gap: 7px; justify-content: center;
  font-size: .78rem; font-weight: 700; color: #9ca3af;
  cursor: pointer; text-transform: uppercase; letter-spacing: .05em;
  transition: color .15s; margin-bottom: 6px;
}
.ws-cost-toggle:hover { color: #6b7280; }
.ws-cost-toggle svg { transition: transform .2s; flex-shrink: 0; }
.ws-cost-toggle--open svg { transform: rotate(180deg); }
.ws-cost-body { display: none; }
.ws-cost-body.ws-cost-open { display: block; }
.ws-breakdown-title-note { text-transform: none; font-weight: 400; letter-spacing: 0; color: #9ca3af; }

/* Breakdown card */
.ws-breakdown-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  margin-bottom: 14px;
}
.ws-breakdown-title {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: #6b7280; margin-bottom: 14px;
}
.ws-breakdown-item { margin-bottom: 14px; }
.ws-breakdown-item:last-child { margin-bottom: 0; }
.ws-bi-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 5px;
}
.ws-bi-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.ws-bi-dot--core { background: #2563eb; }
.ws-bi-dot--cal  { background: #7c3aed; }
.ws-bi-dot--rds  { background: #d97706; }
.ws-bi-label { font-size: .82rem; color: #374151; flex: 1; }
.ws-bi-val   { font-size: .88rem; font-weight: 700; color: #111827; font-variant-numeric: tabular-nums; }

.ws-bi-bar-track {
  height: 4px; background: #f3f4f6; border-radius: 4px; overflow: hidden;
}
.ws-bi-bar {
  height: 100%; border-radius: 4px;
  transition: width .4s ease;
}
.ws-bi-bar--core { background: #2563eb; }
.ws-bi-bar--cal  { background: #7c3aed; }
.ws-bi-bar--rds  { background: #d97706; }
.ws-bi-sub { font-size: .7rem; color: #9ca3af; margin-top: 3px; }

/* Rates card */
.ws-rates-card {
  background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 18px 20px;
  margin-bottom: 14px;
}
.ws-rate-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid #f3f4f6;
  font-size: .84rem;
}
.ws-rate-row:last-child { border-bottom: none; }
.ws-rate-row span { color: #6b7280; }
.ws-rate-row strong { color: #111827; font-variant-numeric: tabular-nums; }
.ws-rate-row--annual strong { color: #1e3a8a; font-size: .88rem; }

.ws-copy-btn-full {
  width: 100%; padding: 11px;
  background: #f3f4f6; border: 1px solid #e5e7eb;
  border-radius: 8px; font-size: .84rem; font-weight: 700;
  color: #374151; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .15s;
}
.ws-copy-btn-full:hover { background: #e5e7eb; }

/* ── Comparison card ── */
.ws-compare-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 28px;
  margin-top: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.ws-compare-header { text-align: center; margin-bottom: 20px; }
.ws-compare-header h2 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 800; color: #111827; }
.ws-compare-header p  { margin: 0; font-size: .88rem; color: #6b7280; max-width: 680px; margin: 0 auto; }
.ws-compare-cols {
  display: flex; align-items: center; gap: 20px;
  justify-content: center; flex-wrap: wrap;
}
.ws-compare-side {
  flex: 1 1 220px; max-width: 300px;
  border-radius: 12px; padding: 24px;
  text-align: center;
}
.ws-compare-side--standard  { background: #eff6ff; border: 1.5px solid #93c5fd; }
.ws-compare-side--datacenter{ background: #f5f3ff; border: 1.5px solid #c4b5fd; }
.ws-compare-side-label { font-size: .76rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.ws-compare-side--standard   .ws-compare-side-val { color: #2563eb; }
.ws-compare-side--datacenter .ws-compare-side-val { color: #7c3aed; }
.ws-compare-side-val { font-size: 1.5rem; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ws-compare-side-sub { font-size: .72rem; color: #9ca3af; margin-top: 4px; }
.ws-compare-vs {
  font-size: 1rem; font-weight: 800; color: #9ca3af;
  flex-shrink: 0; padding: 0 4px;
}
.ws-compare-conclusion {
  margin-top: 20px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: .88rem;
  color: #0c4a6e;
  line-height: 1.6;
  text-align: center;
}
.ws-compare-conclusion strong { color: #1e3a5f; }

/* ── Info grid ── */
.ws-info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-top: 28px;
}
@media (max-width: 680px) { .ws-info-grid { grid-template-columns: 1fr; } }
.ws-info-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.ws-info-card h2 { margin: 0 0 12px; font-size: 1rem; font-weight: 700; color: #111827; }
.ws-info-card p  { margin: 0 0 10px; font-size: .9rem; line-height: 1.7; color: #4b5563; }
.ws-info-card p:last-child { margin-bottom: 0; }
.ws-info-card strong { color: #111827; }
.ws-info-card em { font-style: normal; color: #1e3a8a; }

/* ── CTA card ── */
.ws-cta-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  border-radius: 14px; padding: 36px;
  margin-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.ws-cta-content { flex: 1 1 280px; }
.ws-cta-content h2 { margin: 0 0 10px; color: #fff; font-size: 1.2rem; font-weight: 800; }
.ws-cta-content p  { margin: 0; color: rgba(255,255,255,.72); font-size: .9rem; line-height: 1.65; }
.ws-cta-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.ws-cta-btn-primary {
  display: inline-block; padding: 13px 24px;
  background: #f05a28; color: #fff !important;
  border-radius: 8px; font-size: .9rem; font-weight: 700;
  text-decoration: none !important; white-space: nowrap; text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: transform .18s, box-shadow .18s;
}
.ws-cta-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,.28); }
.ws-cta-btn-secondary {
  display: inline-block; padding: 11px 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85) !important;
  border-radius: 8px; font-size: .88rem; font-weight: 600;
  text-decoration: none !important; white-space: nowrap; text-align: center;
  transition: background .18s;
}
.ws-cta-btn-secondary:hover { background: rgba(255,255,255,.14); }

/* ── Toast ── */
.ws-toast {
  position: fixed; bottom: 28px; right: 28px;
  background: #111827; color: #fff; padding: 10px 20px;
  border-radius: 8px; font-size: .88rem; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(8px);
  pointer-events: none; transition: opacity .25s, transform .25s; z-index: 9999;
}
.ws-toast--show { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .ws-hero { padding: 40px 16px 36px; }
  .ws-outer { padding: 0 12px 40px; }
  .ws-card, .ws-compare-card, .ws-info-card, .ws-cta-card { padding: 18px 16px; }
  .ws-cta-card { padding: 24px 16px; }
  .ws-compare-side { max-width: 100%; }
  .ws-edition-grid { grid-template-columns: 1fr; }
}
