/* Container Shipping Calculator */
.calc-section {
  padding: 80px 0;
  background: var(--light);
}
.calc-head { margin-bottom: 36px; }
.calc-head .section-title { font-size: 30px; margin-bottom: 8px; }
.calc-sub { color: var(--gray); margin: 0; }

.calc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.calc-field { margin-bottom: 26px; }
.calc-field > label {
  display: block;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}
.calc-select,
.calc-qty input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.calc-select:focus,
.calc-qty input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(224, 40, 40, 0.12);
}

/* Container options */
.calc-containers { display: grid; gap: 12px; }
.calc-container {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.calc-container input { position: absolute; opacity: 0; pointer-events: none; }
.calc-radio {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 2px solid #bbb;
  border-radius: 50%;
  position: relative;
}
.calc-container-body { display: flex; flex-direction: column; line-height: 1.5; }
.calc-container-body small { color: var(--gray); font-weight: 600; }
.calc-container:hover:not(.is-disabled) { border-color: var(--red); }
.calc-container:has(input:checked) { border-color: var(--red); background: rgba(224, 40, 40, 0.05); }
.calc-container:has(input:checked) .calc-radio { border-color: var(--red); }
.calc-container:has(input:checked) .calc-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--red);
}
.calc-container:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(224, 40, 40, 0.2); }
.calc-container.is-disabled { opacity: 0.55; cursor: not-allowed; background: var(--light); }

/* Quantity */
.calc-qty { display: flex; align-items: center; gap: 12px; direction: ltr; }
.calc-qty input { text-align: center; max-width: 120px; font-size: 20px; font-weight: 800; }
.calc-qty-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--light);
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.calc-qty-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.calc-range { width: 100%; margin-top: 16px; accent-color: var(--red); }
.calc-range-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray); }

/* Summary */
.calc-summary {
  position: relative;
  height: 100%;
  background: var(--dark);
  color: #fff;
  border-radius: 16px;
  padding: 30px 26px;
  text-align: center;
  overflow: hidden;
}
.calc-total-label { color: #bbb; font-weight: 700; }
.calc-total {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.3;
  margin: 4px 0 12px;
  direction: ltr;
  color: #fff;
}
.calc-hint { color: #aaa; font-size: 14px; margin-bottom: 14px; }
.calc-error {
  background: rgba(224, 40, 40, 0.18);
  border: 1px solid var(--red);
  color: #ffd6d6;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  margin-bottom: 14px;
}
.calc-error[hidden] { display: none; }
.calc-rows { list-style: none; padding: 0; margin: 0 0 22px; text-align: start; }
.calc-rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.calc-rows li span { color: #bbb; }
.calc-rows li strong { font-weight: 800; text-align: end; }

.calc-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 900;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
}
.calc-wa-btn:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.calc-wa-btn.is-disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.calc-note { color: #999; font-size: 12px; margin: 12px 0 0; }

/* Loading state */
.calc-loader {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.calc-summary.is-loading .calc-loader { display: flex; }
.calc-loader span {
  width: 38px;
  height: 38px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: calc-spin 0.8s linear infinite;
}
@keyframes calc-spin { to { transform: rotate(360deg); } }

@media (max-width: 991px) {
  .calc-section { padding: 60px 0; }
  .calc-card { padding: 22px; }
}
@media (max-width: 575px) {
  .calc-head .section-title { font-size: 24px; }
  .calc-card { padding: 16px; border-radius: 16px; }
  .calc-total { font-size: 40px; }
  .calc-wa-btn { font-size: 14px; }
}
