/* ============================================================
   dimensional-calc.css — Dimensional Weight Calculator page
   Load after slp-critical.css + slp-deferred.css
   ============================================================ */

.calc-section {
  padding: 48px 0 64px;
  background: linear-gradient(180deg, #f8f4fc 0%, #ffffff 48%);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.calc-card,
.info-card {
  background: #ffffff;
  border: 1px solid rgba(74, 0, 114, 0.1);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 12px 40px rgba(74, 0, 114, 0.08);
}

.calc-card h2,
.info-card h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: #4a0072;
  margin: 0 0 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #4a0072;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dimension-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.calc-card input[type="number"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 2px solid rgba(74, 0, 114, 0.15);
  border-radius: 12px;
  background: #faf8fc;
  color: #222222;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-card input[type="number"]:focus {
  outline: none;
  border-color: #4a0072;
  box-shadow: 0 0 0 4px rgba(74, 0, 114, 0.12);
  background: #ffffff;
}

.calc-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 16px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  color: #ffffff;
  background: linear-gradient(135deg, #4a0072 0%, #6a0099 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(74, 0, 114, 0.25);
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(74, 0, 114, 0.32);
}

.result-box {
  display: none;
  margin-top: 28px;
  padding: 24px;
  background: linear-gradient(135deg, #f8f4fc 0%, #fff8e1 100%);
  border: 1px solid rgba(255, 213, 79, 0.4);
  border-radius: 14px;
  text-align: center;
}

.result-box.show {
  display: block;
}

.result-box > p:first-child {
  font-size: 13px;
  font-weight: 700;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.result-box h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #4a0072;
  margin: 0 0 12px;
}

.highlight-result {
  font-size: 1.1rem;
  font-weight: 800;
  color: #4a0072;
  margin-top: 12px;
}

.info-card p {
  font-size: 14px;
  line-height: 1.75;
  color: #555555;
  margin-bottom: 14px;
}

.formula-box {
  background: #f8f4fc;
  border: 1px dashed rgba(74, 0, 114, 0.2);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 16px 0 8px;
}

.formula-box code {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #4a0072;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 14px;
  line-height: 1.65;
  color: #555555;
  border-bottom: 1px dashed #e8e0f0;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffd54f;
  color: #4a0072;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tools-section {
  padding: 48px 0 64px;
  background: #f4f7f6;
}

.tools-section h2 {
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #4a0072;
  margin-bottom: 32px;
}

.tools-section .tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.tools-section .tool-card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 8px 24px rgba(74, 0, 114, 0.06);
  text-align: center;
}

.tools-section .tool-card .icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.tools-section .tool-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: #4a0072;
  margin-bottom: 10px;
}

.tools-section .tool-card p {
  font-size: 14px;
  color: #666666;
  line-height: 1.65;
  margin-bottom: 16px;
}

.tools-section .tool-card a {
  color: #4a0072;
  font-weight: 700;
  text-decoration: none;
}

.tools-section .tool-card a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .calc-wrapper {
    grid-template-columns: 1fr;
  }

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