/* =========================================================
   DIXANI — Volumetric Weight Calculator
   ========================================================= */


/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */

.volumetric-hero {
  padding: 88px 0 70px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  text-align: center;
}

.volumetric-hero .container {
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.volumetric-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.volumetric-hero h1 span {
  color: #2563eb;
}

.volumetric-hero > .container > p {
  max-width: 760px;
  margin: 24px auto 0;
  color: #64748b;
  font-size: 18px;
  line-height: 1.75;
}

.hero-note {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  color: #64748b;
  font-size: 14px;
}

.hero-note strong {
  color: #0f172a;
}


/* ---------------------------------------------------------
   CALCULATOR SECTION
--------------------------------------------------------- */

.vw-calculator-section {
  padding: 72px 0 88px;
  background: #ffffff;
}

.vw-calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: start;
}


/* ---------------------------------------------------------
   INPUT CARD
--------------------------------------------------------- */

.vw-calculator-card,
.vw-result-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.vw-calculator-card {
  padding: 34px;
}

.vw-card-heading {
  margin-bottom: 28px;
}

.section-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.vw-card-heading h2,
.vw-result-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.vw-card-heading p {
  margin: 10px 0 0;
  color: #64748b;
  line-height: 1.7;
}


/* ---------------------------------------------------------
   FORM
--------------------------------------------------------- */

.vw-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.vw-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vw-field-full {
  grid-column: 1 / -1;
}

.vw-field label {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.vw-field input,
.vw-field select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.vw-field input::placeholder {
  color: #94a3b8;
}

.vw-field input:hover,
.vw-field select:hover {
  border-color: #94a3b8;
}

.vw-field input:focus,
.vw-field select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}


/* ---------------------------------------------------------
   ACTION BUTTONS
--------------------------------------------------------- */

.vw-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  margin-top: 28px;
}

.vw-actions button {
  min-height: 52px;
  border-radius: 12px;
  padding: 0 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.vw-actions button:active {
  transform: translateY(1px);
}

.primary-button {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.primary-button:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.secondary-button {
  min-width: 110px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.secondary-button:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}


/* ---------------------------------------------------------
   RESULT CARD
--------------------------------------------------------- */

.vw-result-card {
  padding: 30px;
  position: sticky;
  top: 96px;
}

.vw-main-result {
  margin-top: 24px;
  padding: 26px 20px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, #0f1f4b 0%, #172554 100%);
  text-align: center;
}

.vw-main-result strong {
  display: block;
  color: #ffffff;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.vw-main-result span {
  display: block;
  margin-top: 9px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

.vw-result-list {
  margin-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.vw-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}

.vw-result-row span {
  color: #64748b;
  font-size: 14px;
}

.vw-result-row strong {
  color: #0f172a;
  font-size: 14px;
  text-align: right;
}

.vw-result-note {
  margin-top: 22px;
  padding: 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.vw-result-note p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}


/* ---------------------------------------------------------
   HOW IT WORKS
--------------------------------------------------------- */

.uc-how-wrap {
  padding: 86px 0;
  background: #f8fafc;
}

.uc-how-box {
  padding: 46px;
  border-radius: 26px;
  background: #0f172a;
}

.uc-how-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.uc-how-label,
.uc-uses-label,
.uc-faq-label,
.uc-related-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #3b82f6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.uc-how-head h2 {
  margin: 0;
  max-width: 680px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.uc-how-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}

.uc-step-card {
  min-height: 200px;
  padding: 24px;
  border: 1px solid #334155;
  border-radius: 18px;
  background: #111827;
}

.uc-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.uc-step-card h3 {
  margin: 22px 0 9px;
  color: #ffffff;
  font-size: 18px;
}

.uc-step-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.65;
}

.uc-step-arrow {
  color: #64748b;
  font-size: 26px;
  font-weight: 700;
}


/* ---------------------------------------------------------
   PRACTICAL USES
--------------------------------------------------------- */

.uc-uses-section {
  padding: 88px 0;
  background: #f8fafc;
}

.uc-uses-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.uc-uses-heading h2,
.uc-faq-heading h2,
.uc-related-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.uc-uses-heading p,
.uc-related-heading p {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
}

.uc-uses-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.uc-use-card {
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
}

.uc-use-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-size: 15px;
  font-weight: 900;
}

.uc-use-card h3 {
  margin: 18px 0 8px;
  color: #0f172a;
  font-size: 17px;
}

.uc-use-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}


/* ---------------------------------------------------------
   FAQ
--------------------------------------------------------- */

.uc-faq-section {
  padding: 88px 0;
  background: #f8fafc;
}

.uc-faq-container {
  max-width: 950px;
}

.uc-faq-heading {
  margin-bottom: 30px;
}

.uc-faq-list {
  border-top: 1px solid #cbd5e1;
}

.uc-faq-list details {
  border-bottom: 1px solid #cbd5e1;
}

.uc-faq-list summary {
  position: relative;
  padding: 20px 38px 20px 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.uc-faq-list summary::-webkit-details-marker {
  display: none;
}

.uc-faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: #2563eb;
  font-size: 24px;
  font-weight: 400;
}

.uc-faq-list details[open] summary::after {
  content: "−";
}

.uc-faq-list details p {
  margin: 0;
  padding: 0 36px 20px 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.75;
}


/* ---------------------------------------------------------
   RELATED TOOLS
--------------------------------------------------------- */

.uc-related-section {
  padding: 88px 0 96px;
  background: #ffffff;
}

.uc-related-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.uc-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.uc-related-card {
  display: block;
  min-height: 190px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.uc-related-card:hover {
  transform: translateY(-3px);
  border-color: #bfdbfe;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.uc-related-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
}

.uc-related-card p {
  margin: 10px 0 20px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

.uc-related-card span {
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
}


/* ---------------------------------------------------------
   TABLET
--------------------------------------------------------- */

@media (max-width: 980px) {

  .vw-calculator-layout {
    grid-template-columns: 1fr;
  }

  .vw-result-card {
    position: static;
  }

  .uc-how-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uc-step-arrow {
    display: none;
  }

  .uc-uses-grid,
  .uc-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 640px) {

  .volumetric-hero {
    padding: 64px 0 52px;
  }

  .volumetric-hero > .container > p {
    font-size: 16px;
  }

  .hero-note {
    gap: 7px;
  }

  .vw-calculator-section {
    padding: 50px 0 62px;
  }

  .vw-calculator-card,
  .vw-result-card {
    padding: 22px;
    border-radius: 18px;
  }

  .vw-form-grid {
    grid-template-columns: 1fr;
  }

  .vw-field-full {
    grid-column: auto;
  }

  .vw-actions {
    grid-template-columns: 1fr;
  }

  .secondary-button {
    width: 100%;
  }

  .vw-main-result strong {
    font-size: 31px;
  }

  .uc-how-wrap,
  .uc-uses-section,
  .uc-faq-section,
  .uc-related-section {
    padding: 62px 0;
  }

  .uc-how-box {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .uc-how-steps,
  .uc-uses-grid,
  .uc-related-grid {
    grid-template-columns: 1fr;
  }

  .uc-step-card {
    min-height: auto;
  }

  .uc-related-card {
    min-height: auto;
  }

}