/* LIDTF Calculator Embed — scoped styles, no external deps */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: #0a0a0a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout wrapper ── */
.calc-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 16px;
  gap: 12px;
}

/* ── Card shell ── */
.calc-card {
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 20px;
  flex: 1;
}

/* ── Header ── */
.calc-header {
  margin-bottom: 18px;
}

.calc-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 999px;
  margin-bottom: 8px;
}

.calc-title {
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.15;
}

/* ── Form fields ── */
.calc-field {
  margin-bottom: 14px;
}

.calc-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a3a3a3;
  margin-bottom: 6px;
}

.calc-select,
.calc-input {
  width: 100%;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  padding: 10px 12px;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.calc-select:focus,
.calc-input:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.18);
}

.calc-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a3a3a3' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* ── Dimension row ── */
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

/* ── Results card ── */
.calc-results {
  background: #141414;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 10px;
  padding: 16px;
  margin-top: 4px;
  margin-bottom: 14px;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
}

.calc-result-row + .calc-result-row {
  border-top: 1px solid #2a2a2a;
  margin-top: 8px;
  padding-top: 10px;
}

.calc-result-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a3a3a3;
}

.calc-result-value {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.calc-result-total .calc-result-label {
  color: #00f0ff;
}

.calc-result-total .calc-result-value {
  font-size: 22px;
  font-weight: 800;
  color: #00f0ff;
}

/* ── Messages ── */
.calc-messages {
  margin-bottom: 10px;
}

.calc-msg {
  font-size: 11px;
  line-height: 1.45;
  padding: 6px 0;
}

.calc-msg-warn {
  color: #ff2d2d;
}

.calc-msg-info {
  color: #00f0ff;
}

/* ── CTA button ── */
.calc-cta {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: #ff2d2d;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
  margin-bottom: 14px;
}

.calc-cta:hover {
  opacity: 0.88;
  box-shadow: 0 0 16px rgba(255, 45, 45, 0.45);
}

/* ── Quick presets ── */
.calc-presets-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a3a3a3;
  margin-bottom: 7px;
}

.calc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.calc-preset-btn {
  padding: 5px 10px;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  color: #a3a3a3;
  font-size: 10px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
  white-space: nowrap;
}

.calc-preset-btn:hover {
  color: #ffffff;
  border-color: #00f0ff;
}

/* ── Powered-by footer ── */
.calc-footer {
  text-align: center;
  padding: 6px 0 4px;
}

.calc-footer a {
  font-size: 10px;
  color: #737373;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.12s;
}

.calc-footer a:hover {
  color: #00f0ff;
}

/* ── Responsive at narrow widths ── */
@media (max-width: 380px) {
  .calc-wrap {
    padding: 10px;
  }

  .calc-card {
    padding: 14px;
  }

  .calc-row {
    grid-template-columns: 1fr;
  }
}
