.ibdh-form input[type="text"],
.ibdh-form input[type="date"],
.ibdh-form input[type="number"],
.ibdh-form input[type="email"],
.ibdh-form input[type="password"],
.ibdh-form input[type="tel"],
.ibdh-form textarea {
  width: 100%;

  padding: 10px;
  margin-top: 4px;
  box-sizing: border-box;
}
.ibdh-number-wrapper {
  position: relative;
  display: block;
  margin-top: 4px;
}
.ibdh-number-wrapper input[type="number"] {
  margin-top: 0;
  padding-right: 32px;
  -moz-appearance: textfield;
  appearance: textfield;
}
.ibdh-number-wrapper input[type="number"]::-webkit-inner-spin-button,
.ibdh-number-wrapper input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ibdh-num-btn {
  position: absolute;
  right: 6px;
  width: 32px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  min-width: unset;
  cursor: pointer;
  color: #335341;
}
.ibdh-num-btn:hover,
.ibdh-num-btn:focus,
.ibdh-num-btn:active {
  background: none !important;
  background-color: transparent !important;
  color: #335341 !important;
  outline: none;
  box-shadow: none !important;
}
.ibdh-num-up {
  top: 0;
  bottom: 55%;
  padding: 16px 24px 6px 24px !important;
}
.ibdh-num-down {
  top: 45%;
  bottom: 0;
 padding: 6px 24px 10px 24px !important;
}
.ibdh-num-btn svg {
  width: 14px;
  height: 8px;
}
@media (max-width: 600px) {
  .ibdh-num-up,
  .ibdh-num-down {
    padding-right: 17px !important;
  }
  .ibdh-form input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
  }
  .ibdh-form input[type="date"]::-webkit-calendar-picker-indicator {
    display: none !important;
  }
  @supports not (-moz-appearance: none) {
    .ibdh-form input[type="date"] {
      background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.9419 0.441956L6.69189 6.69196L0.441895 0.441956' stroke='%23335341' stroke-width='1.5'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 24px center;
      background-size: 14px 8px;
      padding-right: 48px;
    }
  }
}

.ibdh-number-wrapper .ibdh-field-error {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
}
.ibdh-number-wrapper:has(.ibdh-field-error) {
  margin-bottom: 26px;
}
.ibdh-form select {
   box-sizing: border-box;
   width: 100%;

  background-color: #F6F6F6;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: var(--e-global-color-secondary);
  border-radius: 8px 8px 8px 8px;
  padding: 14px 20px 14px 20px;
  padding-right: 52px;
  margin-top: 4px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.9419 0.441956L6.69189 6.69196L0.441895 0.441956' stroke='%23335341' stroke-width='1.25'/%3E%3C/svg%3E%0A");background-repeat: no-repeat;
  background-position: right 20px center;
}
.ibdh-form select:has(option[hidden]:checked) {
  color: #33534180;
}
.ibdh-form input:focus,
.ibdh-form select:focus,
.ibdh-form textarea:focus {
  border-color: #2A491B !important;
  outline: none;
  box-shadow: none;
}
/* remove this to undo */
.ibdh-assessment-form > h2,
.ibdh-form .description,
.ibdh-progress-label {
  display: none;
}

.ibdh-form button,
.ibdh-result .button {
  display: inline-block;
  padding: 10px 16px;
  text-decoration: none;
  box-sizing: border-box;
  white-space: normal;
}
.ibdh-question {
  margin-bottom: 18px;
}
.ibdh-question label {
  font-size: 18px !important;
  font-weight: 400;
}
.ibdh-question label strong {
  font-weight: 400;
}
.ibdh-field-invalid {
  border-color: #FF383C !important;

}
.ibdh-field-error {
  margin: 4px 0 0;
  color: #FF383C;
  font-size: 18px;
  font-weight: 400;
}
.ibdh-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}
.ibdh-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.ibdh-radio-group.ibdh-field-invalid {
  border-bottom: 1px solid #FF383C;
  padding-bottom: 6px;
}
.ibdh-question:has(.ibdh-radio-group) label strong {
  font-weight: 600;
}
.ibdh-page {
  margin-bottom: 16px;
}
.ibdh-page .ibdh-section {
  margin-top: 0;
}
/* .ibdh-page .ibdh-section:not(:first-child) {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #eee;
} */
.ibdh-dogs .ibdh-form label,
.ibdh-modal .ibdh-form label {
  display: block;
  width: 100%;
}
.ibdh-dogs .ibdh-form p,
.ibdh-modal .ibdh-form p {
  margin-bottom: 18px;
}
@media (min-width: 700px) {
  .ibdh-page {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 24px;
  }
  .ibdh-page .ibdh-section,
  .ibdh-page .ibdh-section-note,
  .ibdh-page .ibdh-question:has(textarea),
  .ibdh-page .ibdh-question:has(input[type="checkbox"]) {
    grid-column: 1 / -1;
  }
  .ibdh-dogs .ibdh-page > h2,
  .ibdh-dogs .ibdh-page > form {
    grid-column: 1 / -1;
  }
  .ibdh-dogs .ibdh-form,
  .ibdh-modal .ibdh-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 24px;
  }
  .ibdh-dogs .ibdh-form p:has(textarea),
  .ibdh-dogs .ibdh-form p:has(input[type="checkbox"]),
  .ibdh-dogs .ibdh-form p:last-child,
  .ibdh-modal .ibdh-form p:has(textarea),
  .ibdh-modal .ibdh-form p:has(input[type="checkbox"]),
  .ibdh-modal .ibdh-form p:last-child {
    grid-column: 1 / -1;
  }
}
.ibdh-progress {
  margin-bottom: 16px;
}
.ibdh-progress-label {
  margin: 0 0 6px;
  font-weight: 600 !important;
}
.ibdh-progress-steps {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 18px;
}
.ibdh-progress-step {
  flex: 0 0 auto;
}
.ibdh-progress-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #335341;
  font-weight: 400;
  font-size: 20px;
  background: #BAD04A4D;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.ibdh-progress-step.is-active .ibdh-progress-circle {
  border-color: #BAD04A;
  background: #BAD04A;
}
.ibdh-progress-line {
  flex: 1 1 auto;
  height: 4px;
  border-radius: 999px;
  background: #BAD04A4D;
  transition: background-color 0.2s ease;
}
/* .ibdh-progress-line.is-active {
  background: #BAD04A;
} */
.ibdh-form-nav {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.ibdh-form-nav button[hidden] {
  display: none;
}
.ibdh-nav-final p {
  margin: 0 0 8px;
}
.ibdh-nav-final p:last-child {
  margin-bottom: 0;
}
.ibdh-nav-final .ibdh-nav-final-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.ibdh-nav-next,
.ibdh-nav-submit {

  min-width: 200px;
}
.ibdh-nav-back {
  background: transparent !important;
  border: 1.5px solid #335341 !important;
  color: #335341 !important;
  transition: background 0.2s, color 0.2s;
  min-width: 200px;
}
.ibdh-nav-back:hover {
  background: #335341 !important;
  color: #ffffff !important;
}

.ibdh-nav-submit:hover,
.ibdh-nav-submit:focus,
.ibdh-dogs .ibdh-form button[type="submit"]:hover,
.ibdh-dogs .ibdh-form button[type="submit"]:focus {
  background: #A8B855 !important;
  color: #335341 !important;
  outline: none;

}


.ibdh-nav-next:hover,
.ibdh-nav-next:focus {
  background: #A8B855 !important;
  color: #335341 !important;
  outline: none;
}
@media (max-width: 600px) {
  .ibdh-form button,
  .ibdh-result .button {
    line-height: 1.4 !important;
  }
  .ibdh-form-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .ibdh-nav-final-actions {
    flex-direction: column;
    align-items: stretch !important;
  }
  .ibdh-nav-final p:first-child {
    text-align: center;
  }
}
.ibdh-notice {
  padding: 10px 12px;
  margin: 12px 0;
  border-radius: 6px;
}
.ibdh-success { background: #edf7ed; }
.ibdh-error { background: #fdecea; }
.ibdh-result table { border-collapse: collapse; width: 100%; max-width: 720px; }
.ibdh-result th, .ibdh-result td { border: 1px solid #D1D8B8; padding: 8px; }
.ibdh-block { padding: 12px; border: 1px solid #D1D8B8; margin: 10px 0; border-radius: 8px; }
.ibdh-warning { background: #fff4e5; }
.ibdh-info { background: #e8f1fd; }
.ibdh-muted { color: #666; }
.ibdh-dashboard-cards,
.ibdh-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.ibdh-result-grid {
  align-items: start;
}
.ibdh-result-main,
.ibdh-result-side {
  display: grid;
  gap: 16px;
}
.ibdh-card,
.ibdh-dog-card,
.ibdh-booking,
.ibdh-page,
.ibdh-result-header,
.ibdh-result .ibdh-card {
  background: #fff;
  border: 1px solid #D1D8B8;
  border-radius: 24px;
  padding: 16px;
}
.ibdh-card,
.ibdh-result .ibdh-card {
  padding: 24px;
}
@media (max-width: 1200px) {
  .ibdh-card,
  .ibdh-result .ibdh-card {
    padding: 16px;
  }
}
.ibdh-result .ibdh-card.ibdh-card-cta {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: 16px;
}
.ibdh-page {
  padding: 40px 55px;
}
@media (max-width: 1200px) {
  .ibdh-page {
    padding: 16px;
  }
}
.ibdh-result-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.ibdh-result-status-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.ibdh-status-pill,
.ibdh-review-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
}
.ibdh-status-pill { background: #f1f3f5; }
.ibdh-review-pending { background: #fff4e5; }
.ibdh-review-approved { background: #edf7ed; }
.ibdh-review-commented { background: #e8f1fd; }
.ibdh-review-rejected { background: #fdecea; }
.ibdh-review-neutral { background: #f1f3f5; }
.ibdh-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ibdh-history-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.ibdh-history-list li:last-child {
  border-bottom: 0;
}
.ibdh-history-list li.is-current {
  background: #fafafa;
  margin: 0 -8px;
  padding: 10px 8px;
  border-radius: 6px;
}
.ibdh-history-meta {
  margin-top: 4px;
  color: #666;
  font-size: 14px;
}
.ibdh-card.ibdh-claim-account {
  margin-top: 24px;
}
.ibdh-claim-account form.ibdh-form {
  margin-top: 20px;
}
.ibdh-claim-account h3 {
  margin-top: 0;
}
.ibdh-claim-account > p {
  color: #666;
  margin-bottom: 20px;
}
.ibdh-claim-account .ibdh-form label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
}
.ibdh-claim-account .ibdh-nav-submit {
  width: 100%;
}
.ibdh-claim-account .ibdh-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.ibdh-claim-account .ibdh-form > p {
  margin-bottom: 18px;
}
@media (max-width: 480px) {
  .ibdh-claim-account .ibdh-form-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .ibdh-result-header {
    flex-direction: column;
  }
}
.ibdh-dog-select-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px !important;
}
.ibdh-dog-select-field {
  flex: 0 1 auto;
}
.ibdh-dog-select-field h3 {
  margin: 0 0 4px;
}
.ibdh-dog-select-row #ibdh-add-dog-btn {
  white-space: nowrap;
  box-sizing: border-box;
  padding: 12px 20px !important;
  line-height: 1.688 !important;
}
.ibdh-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ibdh-modal[hidden] {
  display: none !important;
}
.ibdh-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.ibdh-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  max-width: var(--content-width, 1260px);
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
}
.ibdh-modal-dialog h3 {
  margin-top: 0;
}
.ibdh-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none !important;
  border: none !important;
  cursor: pointer;
  color: #335341;
  padding: 4px !important;
}
.ibdh-modal-close-icon {
  display: inline-block;
  font-size: 30px;
  line-height: 1;
}
.ibdh-modal-close:hover .ibdh-modal-close-icon,
.ibdh-modal-close:focus .ibdh-modal-close-icon {
  color: #BAD04A !important;
}
