/* General form styling */
.gumleaf-quote-form .form-group {
  margin-bottom: 1.5em;
}

.gumleaf-quote-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3em;
}

.gumleaf-quote-form input,
.gumleaf-quote-form select {
  width: 100%;
  padding: 0.5em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Quote preview box */
.quote-preview {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 1em;
  margin-top: 1em;
  border-radius: 4px;
}

/* Radio group layout */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
}

/* Inline button-style radio option */
.radio-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5em 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  min-width: 160px;
  justify-content: center;
  box-sizing: border-box;
}

/* Hover effect */
.radio-option:hover {
  background-color: #eee;
}

/* Hide native radio input */
.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Selected state */
.radio-option input[type="radio"]:checked + span {
  font-weight: bold;
  color: #007cba;
}

/* Colour swatch layout */
#colour-options .radio-option {
  justify-content: flex-start;
}

/* Swatch box */
.swatch {
display: inline-block;
  width: 24px;
  height: 24px;
  border: 1px solid #ccc;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Colour label next to swatch */
.colour-name {
  margin-left: 10px;
  font-size: 0.9em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Selected swatch highlight */
.radio-option input[type="radio"]:checked + .swatch {
  border-color: #007cba;
  box-shadow: 0 0 0 2px #007cba;
}

/* Submit button */
button[type="submit"] {
  background-color: #007cba;
  color: white;
  padding: 0.75em 1.5em;
  font-size: 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #005fa3;
}
