/* ==========================================================================
   CloudAccez DPDP Virtual DPO Cost & Readiness Calculator Stylesheet
   Version: 2026-v1
   ========================================================================== */

.dpo-calc-container {
  background: #0d1527;
  border: 1px solid rgba(223, 177, 91, 0.3);
  border-radius: 12px;
  padding: 32px;
  margin: 36px 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(223, 177, 91, 0.05);
  font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #f1f5f9;
}

.dpo-calc-header {
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 18px;
}

.dpo-calc-header .eyebrow {
  color: #dfb15b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.dpo-calc-header h3 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.dpo-calc-header p {
  font-size: 0.95rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* Calculator Grid: Inputs on Left, Real-Time Results on Right */
.dpo-calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}

/* Form Groups & Inputs */
.dpo-calc-section {
  margin-bottom: 24px;
}

.dpo-calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 10px;
}

.dpo-calc-label span.hint {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 400;
}

/* Option Pill Groups */
.dpo-pill-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dpo-pill-btn {
  background: #070c18;
  border: 1px solid #1e293b;
  color: #94a3b8;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.dpo-pill-btn strong {
  color: #f1f5f9;
  font-size: 0.86rem;
  margin-bottom: 2px;
}

.dpo-pill-btn:hover {
  background: #101a30;
  border-color: rgba(223, 177, 91, 0.4);
  color: #f8fafc;
}

.dpo-pill-btn.active {
  background: #14213d;
  border-color: #dfb15b;
  color: #dfb15b;
  box-shadow: 0 0 16px rgba(223, 177, 91, 0.15);
}

.dpo-pill-btn.active strong {
  color: #dfb15b;
}

/* Checkbox Modules */
.dpo-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dpo-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #070c18;
  border: 1px solid #1e293b;
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #cbd5e1;
}

.dpo-checkbox-item:hover {
  border-color: #334155;
}

.dpo-checkbox-item input[type="checkbox"] {
  accent-color: #dfb15b;
  margin-top: 2px;
  cursor: pointer;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Results Card (Sticky on desktop) */
.dpo-calc-results {
  background: #080d1a;
  border: 1px solid rgba(223, 177, 91, 0.4);
  border-radius: 10px;
  padding: 24px;
  position: sticky;
  top: 90px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dpo-results-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #dfb15b;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dpo-statutory-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-sdf {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.badge-voluntary {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

/* Primary Metric Display */
.dpo-metric-block {
  background: #0e172c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.dpo-metric-label {
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.dpo-metric-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: #dfb15b;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.dpo-metric-sub {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-top: 4px;
}

/* Comparison Breakdown */
.dpo-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 20px;
}

.dpo-compare-table td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dpo-compare-table td.col-right {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.savings-highlight {
  color: #4ade80 !important;
  font-weight: 700 !important;
}

/* Guidance Advice Box inside Result */
.dpo-calc-advice {
  background: rgba(14, 165, 233, 0.08);
  border-left: 3px solid #38bdf8;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #bae6fd;
  line-height: 1.5;
  margin-bottom: 20px;
}

.dpo-calc-advice strong {
  color: #ffffff;
}

/* Action CTA */
.btn-calc-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, #dfb15b 0%, #c99738 100%);
  color: #060b14;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(201, 151, 56, 0.3);
  transition: all 0.2s ease;
}

.btn-calc-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(201, 151, 56, 0.45);
  background: linear-gradient(135deg, #f0c36d 0%, #d8a543 100%);
  color: #060b14;
}

/* Responsive */
@media (max-width: 900px) {
  .dpo-calc-grid {
    grid-template-columns: 1fr;
  }
  .dpo-calc-results {
    position: static;
  }
}

@media (max-width: 600px) {
  .dpo-calc-container {
    padding: 20px 16px;
  }
  .dpo-pill-group {
    grid-template-columns: 1fr;
  }
  .dpo-checkboxes {
    grid-template-columns: 1fr;
  }
  .dpo-metric-val {
    font-size: 1.5rem;
  }
}
