/* ===== RESET (stop Elementor interference) ===== */
#questionnaire,
#questionnaire * {
  box-sizing: border-box;
}

#questionnaire input {
  margin: 0;
  padding: 0;
  font-family: inherit;
}

/* ===== LAYOUT ===== */

.question {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.q-left {
  flex: 1;
}

.q-right {
  display: flex;
  align-items: center;
  overflow-x: auto; /* prevents wrapping */
}

/* ===== CALC GRID ===== */

.calc-grid {
  display: flex;
  align-items: center;
  gap: 6px;

  flex-wrap: nowrap !important;
  white-space: nowrap;

  width: max-content; /* 🔑 prevents wrapping */
}

/* ===== BOXES ===== */

.calc-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 70px;      /* fixed width for consistency */
  height: 38px;

  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;

  font-size: 14px;
}

/* ===== MULTIPLIER (2nd box) ===== */

.multiplier-cell {
  justify-content: flex-start;
  padding: 0 6px;
  gap: 2px;
}

.multiplier-cell input {
  width: 40px;

  border: none !important;
  background: transparent !important;
  box-shadow: none !important;

  outline: none;
  font-size: 14px;

  margin: 0;
  padding: 0;
}

/* Remove number input arrows (Chrome) */
.multiplier-cell input::-webkit-outer-spin-button,
.multiplier-cell input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ===== CURRENCY ===== */

.currency-symbol {
  margin-right: 2px;
}

/* ===== OPERATORS ===== */

.operator {
  width: 16px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  flex: 0 0 auto;
}

/* ===== SLIDER ===== */

.slider {
  width: 100%;
  margin-top: 10px;
}

/* ===== TOTAL ===== */

#grandTotal {
  font-weight: bold;
  padding: 3px;
  background: #fff;
}

/* ===== SPINNER (optional) ===== */

.spinner {
  margin-left: 8px;
}

.currency-row {
  justify-content: flex-end;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Label stays inline */
.currency-row label {
  margin: 0;
  white-space: nowrap;
  font-weight: 500;
}

/* Dropdown NOT full width */
.currency-row select {
  width: auto !important;
  min-width: 120px;
  padding: 4px 8px;
}


.calc-heading-row {
  margin-bottom: 6px;
}

.heading-spacer {
  visibility: hidden;
}

.column-heading {
  width: 70px;
  text-align: center;
  font-size: 12px;
  color: #666;
}
/* ===== SUBMIT BUTTON ===== */

#submitBtn.elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--e-global-color-03f898e);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 12px 24px;
  text-decoration: none;
  cursor: pointer;
}

#submitBtn .elementor-button-content-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


/* Spinner */
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Spin animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


.email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap; /* allows stacking on small screens */
}

.email-row label {
  white-space: nowrap;
}

.email-row input {
  flex: 1;              /* input expands */
  min-width: 200px;
  padding: 6px 8px;
}

.email-row button {
  flex: 0 0 auto;      /* button stays fixed */
}


.calc-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.calc-left-heading {
  font-weight: 600;
}

.calc-right-heading {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

.q-heading, .q-text, .smaller {
  font-size: 11pt;
}
.value-currency {
  margin-right: 2px;
}

#questionnaire .value-input {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  width: 100%;
  text-align: center;
  outline: none;
  font-size: 14px;
}
