/* ==========================================================================
   Amptra Revenue Calculator — shared styles
   Palette pulled from client design: amber/orange accent, near-black text,
   white cards on a very light grey page background.
   ========================================================================== */

:root {
  --rc-orange: #f5a623;
  --rc-orange-dark: #d98c00;
  --rc-orange-darker: #b97400;
  --rc-black: #1a1a1a;
  --rc-grey-text: #6b6b6b;
  --rc-bg: #f2f2ef;
  --rc-card-bg: #ffffff;
  --rc-border: #e7e7e2;
  --rc-radius: 14px;
  --rc-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.rc-wrap * {
  box-sizing: border-box;
}

.rc-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--rc-black);
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px;
}

.rc-header {
  text-align: center;
  margin-bottom: 32px;
}

.rc-header h2 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 8px;
}

.rc-header h2 .rc-accent {
  color: var(--rc-orange);
}

.rc-header p {
  color: var(--rc-grey-text);
  font-size: 15px;
  margin: 0;
}

/* ---------- Sliders ---------- */

.rc-field {
  margin-bottom: 22px;
}

.rc-field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.rc-field-label .rc-field-value {
  font-weight: 700;
  color: var(--rc-black);
}

.rc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: var(--rc-border);
  outline: none;
}

.rc-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    var(--rc-orange) 0%,
    var(--rc-orange) var(--rc-fill, 50%),
    var(--rc-border) var(--rc-fill, 50%),
    var(--rc-border) 100%
  );
}

.rc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rc-orange);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.rc-slider::-moz-range-track {
  height: 6px;
  border-radius: 4px;
  background: var(--rc-border);
}

.rc-slider::-moz-range-progress {
  height: 6px;
  border-radius: 4px;
  background: var(--rc-orange);
}

.rc-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rc-orange);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

/* ---------- Layout grid ---------- */

.rc-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 760px) {
  .rc-grid {
    grid-template-columns: 1fr;
  }
}

.rc-card {
  background: var(--rc-card-bg);
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  box-shadow: var(--rc-shadow);
  padding: 24px;
}

/* ---------- Result panel (orange gradient) ---------- */

.rc-result-panel {
  background: linear-gradient(160deg, var(--rc-orange) 0%, var(--rc-orange-dark) 100%);
  border-radius: var(--rc-radius);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--rc-shadow);
}

.rc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.rc-result-row:last-child {
  border-bottom: none;
}

.rc-result-row.rc-result-highlight {
  background: rgba(0, 0, 0, 0.12);
  padding: 20px 22px;
}

.rc-result-row .rc-result-value {
  font-size: 18px;
  font-weight: 800;
}

.rc-result-row.rc-result-highlight .rc-result-value {
  font-size: 22px;
}

/* ---------- Secondary info cards (calc details / ROI) ---------- */

.rc-info-card {
  background: var(--rc-card-bg);
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  margin-top: 18px;
  overflow: hidden;
}

.rc-info-card h4 {
  margin: 0;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rc-grey-text);
  border-bottom: 1px solid var(--rc-border);
}

.rc-info-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--rc-border);
}

.rc-info-row:last-child {
  border-bottom: none;
}

.rc-info-row .rc-info-value {
  font-weight: 700;
}

/* ---------- Summary mini-cards (custom calculator) ---------- */

.rc-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.rc-summary-cell {
  background: var(--rc-bg);
  border-radius: 10px;
  padding: 12px 14px;
}

.rc-summary-cell .rc-summary-label {
  font-size: 12px;
  color: var(--rc-grey-text);
  margin-bottom: 4px;
}

.rc-summary-cell .rc-summary-value {
  font-size: 16px;
  font-weight: 700;
}

.rc-total-investment {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rc-border);
  font-size: 14px;
  font-weight: 600;
}

.rc-total-investment .rc-total-investment-value {
  color: #d0421b;
  font-size: 18px;
  font-weight: 800;
}

/* ---------- Product picker (custom calculator) ---------- */

.rc-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.rc-product-card {
  background: var(--rc-card-bg);
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  box-shadow: var(--rc-shadow);
  padding: 16px;
  text-align: center;
}

.rc-product-card img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--rc-bg);
}

.rc-product-card .rc-product-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.rc-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.rc-stepper button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--rc-border);
  background: var(--rc-bg);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.rc-stepper button:hover {
  background: var(--rc-orange);
  color: #fff;
  border-color: var(--rc-orange);
}

.rc-stepper input {
  width: 40px;
  text-align: center;
  border: 1px solid var(--rc-border);
  border-radius: 6px;
  padding: 4px 2px;
  font-size: 14px;
  font-weight: 700;
}

.rc-product-card .rc-product-price {
  font-size: 13px;
  font-weight: 700;
  color: #d0421b;
}

.rc-product-card .rc-product-total {
  font-size: 11px;
  color: var(--rc-grey-text);
  margin-top: 2px;
}

.rc-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rc-grey-text);
  margin: 0 0 14px;
}
