/* OSHA 1910.95 Non-Compliance Cost Estimator
   SHOEBOX Brand: Blue #007bc1 | Dark Blue #1E3888 | Orange #FF984A
   Fonts: Raleway (headings) + Open Sans (body)
   All styles namespaced under .osha-estimator */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Raleway:wght@600;700;800&display=swap');

/* ─── Reset & Container ─── */
.osha-estimator {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 20px;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.osha-estimator * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Trust Header ─── */
.osha-estimator .trust-header {
  background: linear-gradient(135deg, #1E3888 0%, #007bc1 100%);
  border-radius: 12px 12px 0 0;
  padding: 40px 40px 32px;
  color: #fff;
  text-align: center;
}

.osha-estimator .trust-header h1 {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.osha-estimator .trust-header .subtitle {
  font-size: 15px;
  opacity: 0.9;
  max-width: 680px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.osha-estimator .trust-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.osha-estimator .trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.osha-estimator .trust-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ─── Main Card ─── */
.osha-estimator .estimator-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* ─── Progress Bar ─── */
.osha-estimator .progress-bar {
  display: flex;
  padding: 0;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.osha-estimator .progress-step {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #999;
  position: relative;
  transition: all 0.3s ease;
}

.osha-estimator .progress-step.active {
  color: #007bc1;
  background: #e8f4fd;
}

.osha-estimator .progress-step.completed {
  color: #2E7D32;
  background: #e8f5e9;
}

.osha-estimator .progress-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ddd;
  color: #fff;
  font-size: 11px;
  margin-right: 6px;
  transition: all 0.3s ease;
}

.osha-estimator .progress-step.active .step-num {
  background: #007bc1;
}

.osha-estimator .progress-step.completed .step-num {
  background: #2E7D32;
}

/* ─── Form Section ─── */
.osha-estimator .form-section {
  padding: 32px 40px;
}

.osha-estimator .input-group {
  margin-bottom: 28px;
}

.osha-estimator .input-group:last-child {
  margin-bottom: 0;
}

.osha-estimator .input-label {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #1E3888;
  margin-bottom: 4px;
}

.osha-estimator .input-help {
  display: block;
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}

/* Dropdown */
.osha-estimator select {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s;
  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='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.osha-estimator select:focus {
  outline: none;
  border-color: #007bc1;
  box-shadow: 0 0 0 3px rgba(0, 123, 193, 0.15);
}

/* Slider */
.osha-estimator .slider-container {
  position: relative;
}

.osha-estimator .slider-value {
  display: inline-block;
  background: #1E3888;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  padding: 4px 14px;
  border-radius: 6px;
  margin-bottom: 10px;
  min-width: 60px;
  text-align: center;
}

.osha-estimator input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.osha-estimator input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #007bc1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 123, 193, 0.3);
  transition: transform 0.15s;
}

.osha-estimator input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.osha-estimator input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #007bc1;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 123, 193, 0.3);
}

.osha-estimator .slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}

/* Radio Groups */
.osha-estimator .radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.osha-estimator .radio-option {
  position: relative;
}

.osha-estimator .radio-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.osha-estimator .radio-option label {
  display: block;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  background: #fff;
}

.osha-estimator .radio-option label:hover {
  border-color: #007bc1;
  background: #f0f8ff;
}

.osha-estimator .radio-option input:checked + label {
  border-color: #007bc1;
  background: #e8f4fd;
  color: #007bc1;
  box-shadow: 0 0 0 3px rgba(0, 123, 193, 0.12);
}

/* ─── Calculate Button ─── */
.osha-estimator .calculate-btn {
  display: block;
  width: 100%;
  padding: 16px 32px;
  margin-top: 32px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, #FF984A 0%, #e67e22 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(255, 152, 74, 0.3);
  letter-spacing: 0.3px;
}

.osha-estimator .calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 74, 0.4);
}

.osha-estimator .calculate-btn:active {
  transform: translateY(0);
}

.osha-estimator .calculate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── Results Section ─── */
.osha-estimator .results-section {
  display: none;
  padding: 0 40px 40px;
  animation: fadeInUp 0.5s ease;
}

.osha-estimator .results-section.visible {
  display: block;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.osha-estimator .results-header {
  text-align: center;
  padding: 24px 0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 24px;
}

.osha-estimator .results-header h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #1E3888;
  margin-bottom: 4px;
}

.osha-estimator .results-header .scenario-desc {
  font-size: 14px;
  color: #777;
}

/* Result Tiers */
.osha-estimator .result-tier {
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.osha-estimator .result-tier .tier-label {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.osha-estimator .result-tier .tier-desc {
  font-size: 13px;
  margin-bottom: 12px;
  opacity: 0.85;
}

.osha-estimator .result-tier .tier-amount {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.2;
}

.osha-estimator .result-tier .tier-amount .range-sep {
  font-size: 18px;
  font-weight: 600;
  opacity: 0.6;
  margin: 0 4px;
}

.osha-estimator .result-tier .tier-source {
  font-size: 11px;
  margin-top: 8px;
  opacity: 0.7;
}

.osha-estimator .result-tier .tier-source a {
  color: inherit;
  text-decoration: underline;
}

/* Conservative (Green) */
.osha-estimator .tier-conservative {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}

/* IBI Risk (Orange) */
.osha-estimator .tier-ibi {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 1px solid #ffcc80;
  color: #e65100;
}

/* Full Exposure (Red) */
.osha-estimator .tier-full {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
  border: 1px solid #f48fb1;
  color: #b71c1c;
}

/* ─── IBI Spotlight ─── */
.osha-estimator .ibi-spotlight {
  background: #fff8e1;
  border: 2px solid #ffd54f;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}

.osha-estimator .ibi-spotlight .spotlight-tag {
  display: inline-block;
  background: #f57f17;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.osha-estimator .ibi-spotlight h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}

.osha-estimator .ibi-spotlight p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.osha-estimator .ibi-spotlight .ibi-math {
  background: #fff;
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 12px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #e65100;
  text-align: center;
  border: 1px solid #ffe0b2;
}

/* ─── Email Gate ─── */
.osha-estimator .email-gate {
  display: none;
  background: linear-gradient(135deg, #1E3888 0%, #007bc1 100%);
  border-radius: 10px;
  padding: 32px;
  margin: 24px 0;
  color: #fff;
  text-align: center;
}

.osha-estimator .email-gate.visible {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.osha-estimator .email-gate h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}

.osha-estimator .email-gate p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.osha-estimator .gate-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.osha-estimator .gate-form input {
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
}

.osha-estimator .gate-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.osha-estimator .gate-form input:focus {
  outline: none;
  border-color: #FF984A;
  background: rgba(255, 255, 255, 0.2);
}

.osha-estimator .gate-form .gate-email {
  grid-column: 1 / -1;
}

.osha-estimator .gate-submit {
  grid-column: 1 / -1;
  padding: 14px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #1E3888;
  background: #FF984A;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.osha-estimator .gate-submit:hover {
  background: #ffad6a;
  transform: translateY(-1px);
}

.osha-estimator .gate-privacy {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 12px;
}

/* ─── Blurred Teaser ─── */
.osha-estimator .blurred-teaser {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
  position: relative;
}

.osha-estimator .blurred-teaser::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

/* ─── Breakdown Table ─── */
.osha-estimator .breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.osha-estimator .breakdown-table th {
  text-align: left;
  padding: 10px 14px;
  background: #f8f9fa;
  font-weight: 700;
  color: #1E3888;
  border-bottom: 2px solid #e0e0e0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.osha-estimator .breakdown-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.osha-estimator .breakdown-table .amount-cell {
  font-weight: 700;
  text-align: right;
  font-family: 'Raleway', sans-serif;
}

.osha-estimator .breakdown-table .source-cell {
  font-size: 11px;
  color: #999;
}

.osha-estimator .breakdown-table .source-cell a {
  color: #007bc1;
  text-decoration: none;
}

/* ─── CTA Section ─── */
.osha-estimator .cta-section {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  margin-top: 24px;
}

.osha-estimator .cta-section p {
  font-size: 15px;
  color: #555;
  margin-bottom: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.osha-estimator .cta-section .demo-btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, #007bc1 0%, #1E3888 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 123, 193, 0.25);
}

.osha-estimator .cta-section .demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 193, 0.35);
}

/* ─── Disclaimer ─── */
.osha-estimator .disclaimer {
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  padding: 20px 40px;
  font-size: 11px;
  color: #999;
  line-height: 1.6;
}

.osha-estimator .disclaimer a {
  color: #007bc1;
  text-decoration: none;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .osha-estimator .trust-header {
    padding: 28px 20px 24px;
  }

  .osha-estimator .trust-header h1 {
    font-size: 22px;
  }

  .osha-estimator .trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .osha-estimator .form-section {
    padding: 24px 20px;
  }

  .osha-estimator .radio-group {
    grid-template-columns: 1fr;
  }

  .osha-estimator .results-section {
    padding: 0 20px 24px;
  }

  .osha-estimator .result-tier {
    padding: 18px;
  }

  .osha-estimator .result-tier .tier-amount {
    font-size: 24px;
  }

  .osha-estimator .gate-form {
    grid-template-columns: 1fr;
  }

  .osha-estimator .email-gate {
    padding: 24px 20px;
  }

  .osha-estimator .progress-step {
    font-size: 10px;
    padding: 10px 4px;
  }

  .osha-estimator .progress-step .step-num {
    display: block;
    margin: 0 auto 4px;
  }

  .osha-estimator .disclaimer {
    padding: 16px 20px;
  }
}

/* ─── Print ─── */
@media print {
  .osha-estimator .calculate-btn,
  .osha-estimator .email-gate,
  .osha-estimator .cta-section,
  .osha-estimator .progress-bar {
    display: none !important;
  }

  .osha-estimator .blurred-teaser {
    filter: none;
  }

  .osha-estimator .result-tier {
    break-inside: avoid;
  }
}
