label {
  display: block;
  margin: 0 0 0.2em;
  font-size: 1em;
}
label.option {
  margin: 0 0 0 0.2em;
}
.form-wrapper h4 {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1em;
  margin: 0 0 0.2em;
}
.form-item {
  margin: 0.75em 0;
}
.form-item .description {
  margin: 0.2em 0 0 0;
  color: #595959;
  font-size: 0.95em;
}
fieldset:not(.fieldgroup) {
  position: relative;
  min-width: 0;
  margin: 1em 0;
  padding: 18px 18px 18px;
  border-radius: 2px;
  background-color: #fcfcfa;
  border: 1px solid #c0c0c0;
}
fieldset:not(.fieldgroup) > legend {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1em;
  font-weight: bold;
}
.form-checkboxes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.form-checkboxes .form-item {
  display: flex;
  padding: 0 5px;
}
.form-radios .fieldset-wrapper div {
  display: flex;
  flex-wrap: wrap;
}
.js-form-type-radio {
  display: flex;
}
input.form-text, input.form-email {
  max-width: 100%;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  background: #fcfcfa;
  border: 1px solid #b8b8b8;
  color: #595959;
}
input.form-checkbox {
  margin-right: 5px;
  margin-top: 5px;
  border: 1px solid #c0c0c0;
  box-shadow: none;
  float: left;
  transform: scale(1.2);
}

textarea {
  width: 100%;
  border: thin solid var(--grey);
}

select {
  background-color: white;
  border: thin solid var(--grey);
  /*border-radius: 4px;*/
  display: inline-block;
  line-height: 1.3em;
  padding: 0.5em 3.5em 0.5em 1em;
  /* reset */
  margin: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
      linear-gradient(45deg, transparent 50%, gray 50%),
      linear-gradient(135deg, gray 50%, transparent 50%),
      linear-gradient(to right, #ccc, #ccc);
  background-position:
      calc(100% - 20px) calc(1em + 2px),
      calc(100% - 15px) calc(1em + 2px),
      calc(100% - 2.5em) 0.5em;
  background-size:
      5px 5px,
      5px 5px,
      1px 1.5em;
  background-repeat: no-repeat;
}
input.form-date {
  padding: 0.5em;
}

input.required-error,
select.required-error,
textarea.required-error,
div.required-error {
  border: 2px solid red;
}
.required-error-message {
  font-size: var(--font-size-minus-1);
  color: red;
}

label.form-required:after, h4.form-required:after, div.form-required:after  {
  content:" *";
  color: red;
}
.btn, button, input[type=submit] {
  background-color: #333333;
  border-radius: 4px;
  border: none;
  color: #fff;
  display: inline-block;
  font-weight: 500;
  padding: 9px 15px 9px 15px;
  font-size: 1em;
  -webkit-box-shadow: none;
  box-shadow: none;
  text-shadow: none;
  background-repeat: no-repeat;
  background-position: center right;
  background-size: 30px;
}
input[type=submit]:disabled {
  background-color: var(--light-grey);
}
.btn.loading, button.loading, input[type=submit].loading {
  padding-right: 40px;
  background-image: var(--icon-loading-animation);
}
.form-message {
  text-align: center;
  margin: 1em 0;
  padding: 18px 18px 18px;
  border-radius: 2px;
  background-color: #fcfcfa;
  border: 1px solid #c0c0c0;
  font-weight: 400;
  font-size: 1.1em;
}
.form-message.warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}
.form-message p {
  margin: 5px 0 0 0;
  font-size: 0.9em;
  font-weight: 400;
}

.esms-forms-booking, .esms-forms-enquiry {margin-top: 20px;}
#edit-field-child-dob-0-value .form-item {
  margin-top: 0.5em;
}

#edit-select-places .fieldset-wrapper {
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(auto-fill,minmax(325px, 1fr));
}
#edit-select-places .day-select {
  margin: 0;
  padding: 15px 15px 15px 55px;
  background-color: var(--dark-grey);
  color: #eee;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: center left 15px;
  background-size: 30px;
  background-image: var(--icon-checkbox);
  /*transition: background-color 0.2s linear;*/
}
#edit-select-places .day-select.disabled {
  background-image: var(--icon-checkbox-light);
  background-color: var(--grey);
  color: #eee;
  cursor: default;
}
#edit-select-places .day-select.selected {
  background-color: var(--green);
  background-image: var(--icon-checkmark-green);
}
#edit-select-places .day-select.loading {
  background-image: var(--icon-loading-animation);
  background-position: center left 22px;
}
#edit-select-places .day-select .input-message {
  font-size: var(--font-size-minus-1);
}
#edit-available-places {
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(auto-fill,minmax(210px, 1fr));
}
#edit-available-places .form-item {
  margin: 0;
  padding: 15px;
  background-color: var(--dark-grey);
  color: #eee;
}
#edit-available-places .form-item.user-reserved {
  background-color: var(--green);
}
#edit-available-places .form-item input[type=checkbox] {
  transform: scale(1.5);
  background-color: #1e5180;
  /*outline: 1px solid #1e5180;*/
}
#edit-available-places .form-item input[type=checkbox]:checked {
  background-color: #fff;
}
#edit-available-places .form-item label {
  margin-left: 10px;
}
#edit-available-places .form-item label .message {
  font-size: var(--font-size-minus-1);
}
#edit-available-places .form-item.form-disabled {
  background-color: #999;
  color: #666;
}
#edit-available-places .form-item.form-disabled label {
}

.form-item-field-child-photo-consent-value, .form-item-field-photo-consent-value {
  margin: 1.2em 0;
}

.form-wrapper.flex-form-elements {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Payment forms */
.hidden {display:none}
#esms-payment-payment {
  margin-bottom: 40px;
}
#payment-message {
  margin: 1em 0;
  padding: 18px 18px 18px;
  border-radius: 2px;
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}
#payment-message.success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}
#payment-message.warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}
#payment-message.error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

@media (min-width: 576px) {

}
@media (min-width: 768px) {
  .checkbox-select-all {margin-left: 15px;}
}
@media (min-width: 992px) {
}
@media (min-width: 1200px) {
}
@media (min-width: 1400px) {
}