/* Webform buttons - consistent styling */
.webform-submission-form .webform-button--submit,
.webform-submission-form .webform-button--next,
.webform-submission-form .webform-button--previous,
.webform-submission-form .form-submit,
.webform-submission-form input[type="submit"],
.webform-submission-form button[type="submit"] {
  background-color: #366184 !important;
  color: #ffffff !important;
  border: 2px solid #366184 !important;
  padding: 10px 24px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  text-transform: none !important;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  margin-right: 8px;
}

/* Hover state */
.webform-submission-form .webform-button--submit:hover,
.webform-submission-form .webform-button--next:hover,
.webform-submission-form .webform-button--previous:hover,
.webform-submission-form .form-submit:hover,
.webform-submission-form input[type="submit"]:hover,
.webform-submission-form button[type="submit"]:hover {
  background-color: #2a5210 !important;
  border-color: #2a5210 !important;
  color: #ffffff !important;
}

/* Focus state for accessibility */
.webform-submission-form .webform-button--submit:focus,
.webform-submission-form .webform-button--next:focus,
.webform-submission-form .webform-button--previous:focus,
.webform-submission-form .form-submit:focus {
  outline: 3px solid rgba(54, 104, 20, 0.5) !important;
  outline-offset: 2px;
}
.webform-custom-options-buttons {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px;
}

.webform-custom-options-button {
  flex: 1;
  display: table-cell;
  margin: 0 5px 10px 5px;
  border: 3px solid #ccc;
  border-radius: 3px;
  background-color: #fff;
  padding: 10px;
  vertical-align: middle;
  text-align: center;
  color: #666;
}

.webform-custom-options-button .description {
  font-size: .8em;
}

.webform-custom-options-button[data-option-value]:hover {
  border-color: #999;
  color: #333;
}

.webform-custom-options-button[data-option-value]:focus {
  border-color: #999;
  color: #333;
}

.webform-custom-options-button[data-option-value][aria-checked=true] {
  border-color: #0074bd;
  color: #000;
}

.webform-custom-options-button[data-option-value][aria-checked=true]:focus {
  box-shadow: 0 0 5px #0074bd;
}

.webform-custom-options-button[data-option-value][aria-disabled=true],
.webform-custom-options-button[data-option-value][aria-disabled=true]:hover,
.webform-custom-options-button[data-option-value][aria-disabled=true]:focus {
  cursor: not-allowed;
  border-color: #ccc;
  color: #999;
}

@media (max-width: 600px) {
  .webform-custom-options-buttons {
    display: block;
    margin: 0;
  }

  .webform-custom-options-button {
    display: block;
    margin: 5px 0;
  }
}
