/* ================================================================
   LSC Surge Force Calculator — Stylesheet
   Brand colors: primary #0e5077 | accent #e07b2a | dark #1e3a4f
   ================================================================ */

.sfc-wrap {
  font-family: Arial, Helvetica, sans-serif;
  color: #1e3a4f;
  max-width: 1100px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── Header ── */
.sfc-header {
  background: #0e5077;
  color: #fff;
  padding: 28px 32px;
  border-radius: 6px 6px 0 0;
}
.sfc-header h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
}
.sfc-header p {
  margin: 0;
  font-size: 13px;
  opacity: .85;
}

/* ── Input grid ── */
.sfc-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 24px;
  background: #f7fafc;
  border: 1px solid #dde3ea;
  border-top: none;
}

.sfc-group {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 6px;
  padding: 18px 20px;
}
.sfc-group h3 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #0e5077;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.sfc-group label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 600;
  color: #1e3a4f;
  margin-bottom: 12px;
  gap: 4px;
}
.sfc-group label input,
.sfc-group label select {
  font-size: 14px;
  padding: 7px 10px;
  border: 1px solid #b0bec5;
  border-radius: 4px;
  color: #1e3a4f;
  background: #fffbe6;
  transition: border-color .15s;
}
.sfc-group label input:focus,
.sfc-group label select:focus {
  outline: none;
  border-color: #0e5077;
  background: #fff;
}
.sfc-hint {
  font-size: 11px;
  font-weight: 400;
  color: #607d8b;
}

/* ── Calculate button row ── */
.sfc-calc-row {
  padding: 20px 24px;
  background: #f7fafc;
  border: 1px solid #dde3ea;
  border-top: none;
  text-align: center;
}

.sfc-btn-primary {
  background: #0e5077;
  color: #fff;
  border: none;
  padding: 13px 40px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: background .15s;
}
.sfc-btn-primary:hover { background: #0a3d5c; }

.sfc-btn-accent {
  background: #e07b2a;
  color: #fff;
  border: none;
  padding: 11px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.sfc-btn-accent:hover { background: #c4651f; }
.sfc-btn-accent:disabled { background: #aaa; cursor: not-allowed; }

/* ── Results ── */
.sfc-results {
  padding: 24px;
  border: 1px solid #dde3ea;
  border-top: none;
  border-radius: 0 0 6px 6px;
}

/* Summary cards */
.sfc-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.sfc-card {
  background: #f0f7fc;
  border: 1px solid #b3d1e8;
  border-radius: 6px;
  padding: 16px 18px;
  text-align: center;
}
.sfc-card-warn  { background: #fff8e1; border-color: #ffe082; }
.sfc-card-danger{ background: #fdecea; border-color: #f5c6cb; }
.sfc-card-info  { background: #e8f5e9; border-color: #a5d6a7; }

.sfc-card-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #546e7a;
  margin-bottom: 8px;
}
.sfc-card-value {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: #1e3a4f;
}
.sfc-card-sub {
  display: block;
  font-size: 11px;
  color: #78909c;
  margin-top: 4px;
}

/* Surge Busters callout */
.sfc-surge-buster-box {
  background: #1e3a4f;
  color: #fff;
  padding: 14px 20px;
  border-radius: 5px;
  font-size: 14px;
  margin-bottom: 20px;
}
.sfc-surge-buster-box a { color: #e07b2a; }

/* Chart */
.sfc-chart-wrap {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  max-height: 400px;
}

/* Table */
.sfc-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border: 1px solid #dde3ea;
  border-radius: 6px;
}
#sfc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  white-space: nowrap;
}
#sfc-table thead th {
  background: #0e5077;
  color: #fff;
  padding: 9px 12px;
  text-align: right;
  font-weight: 600;
}
#sfc-table thead th:first-child { text-align: center; }
#sfc-table tbody tr:nth-child(even) td { background: #f7fafc; }
#sfc-table tbody tr.sfc-worst-row td {
  background: #fff3cd !important;
  font-weight: 700;
}
#sfc-table tbody td {
  padding: 7px 12px;
  text-align: right;
  border-bottom: 1px solid #eceff1;
}
#sfc-table tbody td:first-child { text-align: center; font-weight: 600; }

/* ── Lead capture ── */
.sfc-lead-box {
  background: #f0f7fc;
  border: 2px solid #0e5077;
  border-radius: 6px;
  padding: 22px 24px;
  margin-bottom: 20px;
}
.sfc-lead-box h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #0e5077;
}
.sfc-lead-box p { margin: 0 0 14px; font-size: 14px; }

.sfc-lead-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.sfc-lead-fields input {
  flex: 1 1 200px;
  padding: 10px 13px;
  border: 1px solid #b0bec5;
  border-radius: 4px;
  font-size: 14px;
  color: #1e3a4f;
}
.sfc-lead-fields input:focus {
  outline: none;
  border-color: #0e5077;
}

.sfc-lead-msg {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 4px;
}
.sfc-lead-msg.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.sfc-lead-msg.error   { background: #fdecea; color: #c62828; border: 1px solid #f5c6cb; }

/* ── Disclaimer ── */
.sfc-disclaimer {
  font-size: 11.5px;
  color: #607d8b;
  border-top: 1px solid #dde3ea;
  padding-top: 16px;
  line-height: 1.7;
}
.sfc-disclaimer a { color: #0e5077; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .sfc-header { padding: 18px 16px; }
  .sfc-inputs  { padding: 14px; gap: 14px; }
  .sfc-results { padding: 14px; }
  .sfc-card-value { font-size: 20px; }
}
