
.mc-wrapper {
    margin: 2em auto;
    padding: 1em;
}
@media (min-width: 721px) {
  .mc-wrapper {
    width: 720px !important;
  }
}
.mc-wrapper h3 {
    margin-bottom: 1em;
}
.mc-wrapper label {
    display: block;
    margin: 0.5em 0;
}
.mc-wrapper input {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
}
.mc-wrapper button {
    margin-top: 10px;
    padding: 8px 16px;
    cursor: pointer;
}
.mc-wrapper select {
    width: 100%;
    padding: 8px;
    margin-bottom: 1em;
}
.mc-calculator-section {
    display: none;
}
.mc-result {
    margin-top: 1em;
    font-weight: bold;
    white-space: pre-line;
}
.mc-field-group {
  margin-bottom: 1em;
}
.mc-info {
  display: inline-block;
  background: #0073aa;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  text-align: center;
  font-size: 0.9em;
  line-height: 18px;
  margin-left: 6px;
  cursor: pointer;
  position: relative;
}
.mc-info[title]:hover:after {
  content: attr(title);
  position: absolute;
  left: 50%;
  top: 120%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: pre-line;
  z-index: 10;
  min-width: 180px;
  font-size: 0.95em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.mc-radio-group {
  display: flex;
  gap: 10px;
  margin-bottom: 0.5em;
}
.mc-radio-btn input[type="radio"] {
  display: none;
}
.mc-radio-btn {
  display: inline-block;
  background: #f4f4f4;
  border: 2px solid #ccc;
  color: #333;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s, border 0.2s, color 0.2s;
  outline: none;
  margin: 0;
  margin-right: 8px;
  user-select: none;
}
.mc-radio-btn input[type="radio"]:checked + span,
.mc-radio-btn input[type="radio"]:checked {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}
.mc-radio-btn input[type="radio"]:checked ~ * {
  color: #fff;
}
.mc-radio-btn:has(input[type="radio"]:checked) {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}
.mc-wrapper input[type="number"] {
  width: 100%;
  display: inline-block;
}
.mc-wrapper label {
  font-weight: 500;
}
.mc-wrapper button[type="submit"] {
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 1em;
  transition: background 0.2s;
}
.mc-wrapper button[type="submit"]:hover {
  background: #005177;
}
.is-layout-constrained .mc-wrapper {
  max-width: 1200px !important;
}

/* Remove tab styles */
.mc-tabs, .mc-tab, .mc-tab.active {
  display: none !important;
}
.mc-tab-content {
  display: none;
}
.mc-tab-content.active {
  display: block;
}

.mc-tab-content h2 {
    margin-bottom: 0;
}
.mc-tab-content p {
    margin-top: 0;
}
.mc-calculator-select-wrapper {
    text-align: center;
    margin-bottom: 5rem;
}

#mc-calculator-select {
    width: 300px;
}

.mc-row-group {
  display: flex;
  gap: 2em;
  align-items: flex-end;
  margin-bottom: 1em;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .mc-row-group {
    flex-direction: column;
    gap: 1em;
  }
  .mc-field-group {
    width: 100%;
    min-width: 0;
  }
  .mc-field-group label,
  .mc-field-group input,
  .mc-field-group select {
    width: 100%;
    box-sizing: border-box;
  }
  .mc-radio-group {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
    width: 100%;
  }
  .mc-radio-btn {
    width: 100%;
    flex: 1 1 0;
    margin-right: 0;
    margin-bottom: 0;
    text-align: center;
    min-width: 0;
  }
  #mc-calculator-select {
    width: 100%;
    min-width: 0;
    font-size: 1.1em;
    padding: 12px;
  }
  .mc-wrapper button[type="submit"] {
    width: 100%;
    font-size: 1.1em;
    padding: 14px 0;
  }
}

/* Add a little more spacing between stacked .mc-row-group on mobile */
@media (max-width: 700px) {
  .mc-row-group + .mc-row-group {
    margin-top: 1em;
  }
}
