/* ============================================================
   MAXIO TOOL – Optimized CSS
   ============================================================ */

/* === Base Container === */
.maxio-tool {
  font-family: 'Arial', sans-serif;
  color: #333;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  /* padding: 1rem 2rem; */
}

/* === Header Section === */
.header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tool-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.tool-subtitle {
  color: #555;
  font-size: 14px;
  max-width: 600px;
}

.logo-left,
.logo-right {
  height: 50px;
}

/* === Contact Button === */
#contact-btn {
  padding: 1rem 3rem;
  font-weight: bold;
}

/* === Form Layout === */
.tool-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-section {
  flex: 1 1 30%;
  min-width: 250px;
  box-sizing: border-box;
}

.form-heading {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 0.5rem;
}

.form-label,
.form-item__label {
  font-weight: bold;
  display: inline-block;
  min-width: 35%;
}

.form-section input[type="text"],
.form-section input[type="number"] {
  width: 40%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.unit-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
}

/* === Buttons === */
.submit-btn {
  background: #0077c8;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
}

.submit-btn:hover {
  background: #005f9a;
}

/* === Chart Section === */
.chart-section {
  flex: 1 1 60%;
  min-width: 300px;
  margin: 2px;
}

.chart-caption {
  font-size: 12px;
  color: #555;
}

/* === Radios === */
.horizontal-radios-wrapper legend,
.fieldset__legend {
  margin-bottom: 6px;
  font-weight: 600;
  background: none !important;
  color: #000 !important;
  border: none !important;
}

.horizontal-radios .form-radios {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* === Cards === */
.card,
.bottom-card {
  background: #ffffffbe;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  padding: 0.2rem !important;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.bottom-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.15);
}

.bottom-card {
  align-items: center;
  padding: 1rem;
}

.card-body {
  padding: 2px;
}

.card-title {
  font-weight: 600;
  font-size: 12px;
  margin: 0;
  padding: 2px;
}

/* === Bottom Card Section === */
.bottom-cards {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  background: #f9f9f978;
  padding: 1rem;
}

/* === Disclaimer === */
.disclaimer {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
}

.disclaimer h4 {
  margin-bottom: 5px;
}

/* === Form Switch === */
.form-check {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.form-switch .form-check-input {
  width: 2rem;
  /* slightly shorter width */
  height: 0.9rem;
  /* reduced height */
  background: #e9ecef;
  border-radius: 1rem;
  position: relative;
  cursor: pointer;
  appearance: none;
  transition: background 0.3s, transform 0.3s;
}

.form-switch .form-check-input::before {
  content: "";
  position: absolute;
  top: 0.05rem;
  /* adjust to center knob vertically */
  left: 0.05rem;
  width: 0.8rem;
  /* knob size slightly smaller */
  height: 0.8rem;
  background: #1f2ed1;
  border-radius: 50%;
  transition: transform 0.3s;
}

.form-switch .form-check-input:checked {
  background: #1595c7;
}

.form-switch .form-check-input:checked::before {
  transform: translateX(1rem);
  /* adjust distance for new width */
}

/* === Foam Cards Grid === */
.foam-cards__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: flex-start;
}

/* .foam-card {
  flex: 0 0 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  background: #ffffffc4;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
} */

.foam-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* === Toggle Checkbox === */
.card-toggle {
  cursor: pointer;
  transform: scale(1.1);
}

.card-toggle:checked {
  accent-color: #1fb9d1;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Large tablets: 2 columns for foam cards */
@media (max-width: 992px) {
  .tool-form {
    flex-direction: column;
  }

  .form-section,
  .chart-section {
    width: 100%;
  }

  .foam-card {
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

/* Small screens (phones): 1 column for everything */
@media (max-width: 600px) {
  .foam-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .bottom-cards {
    flex-direction: column;
    align-items: stretch;
  }

  .maxio-tool {
    padding: 1rem;
  }
}

/* List reset */
.list-unstyled {
  list-style: none;
  padding-left: 0;
}

.card-body ul {
  margin-inline-start: 0px !important;
}

/* ==== UTILITIES ==== */

/* Spacing utilities */
.pe-2 {
  padding-right: 0.5rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.fw-bold {
  font-weight: 700;
}

.small {
  font-size: 10px;
}

.form-type--number,
.form-type--select {
  display: flex !important;
}

.bottom-card-link {
  text-decoration: none;
  color: #000;
}


/* UI Fixes for maxio-tool/foam-recommendation Start (31/12/2026) */
.foam-recommendation-left .form-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 85%;
}

.foam-recommendation-left .form-item label {
  display: inline;
  justify-content: space-between;
  align-items: center;
  width: 85%;
}

.foam-recommendation-left .horizontal-radios .form-item label {
  margin-bottom: 0;
  margin-left: 7px;
}

.chart-section .foam-cards__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.chart-section .foam-cards__grid .foam-card {
  height: 100%;
}

/* media query CSS Start */
@media (max-width: 1023px) {
  .foam-recommendation-left .form-item {
    width: 95%;
  }

  .chart-section .foam-cards__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .foam-recommendation-left .form-item {
    display: block;
  }

  .foam-recommendation-left .form-item label {
    margin-bottom: 0.5rem;
  }

  .chart-section .foam-cards__grid .foam-card {
    max-width: 100%
  }
}

@media (max-width: 600px) {
  .chart-section .foam-cards__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* media query CSS End */

/* UI Fixes for maxio-tool/foam-recommendation End (31/12/2026) */