.error-label {
    color: #d9534f; /* Error text color */
    margin-top: 5px; /* Space between input and error message */
}
.nhsuk-account__login{float:right;margin-left:1em;margin-right:-16px;position:relative;z-index:2}.nhsuk-account__login--icon{fill:#fff;height:1.6em;margin-left:.6em;position:relative;top:.4em;width:1.6em}.nhsuk-account__login--link,.nhsuk-account__login--link:visited,.nhsuk-account__login--link:hover{color:#fff;padding:1em}.nhsuk-account__login--link:focus .nhsuk-account__login--icon{fill:#212b32}@media(min-width: 40.0625em){.nhsuk-account__login{margin-right:-8px}.nhsuk-account__login--link,.nhsuk-account__login--link:hover{margin-right:.6em;padding:.6em}}

input[data-error]:not([data-error=""])::after {
  content: attr(data-error); /* Use the data-error attribute as content */
  color: #d4351c; /* NHS red color */
  font-size: 14px;
  display: block;
  margin-top: 4px;
}
#otherEmail, #formCompleted, #showDelete,  #showKeepData {display: none;}
.nhsuk-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .nhsuk-modal__content {
    background: white;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 4px;
    position: relative;
  }

  .nhsuk-modal__overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nhsuk-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    padding: 0;
  }

  .nhsuk-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }

.nhsuk-radios > .nhsuk-radios__item{
  margin-bottom: 10px;
}

  /* NHS Colour Palette Mapped to Bootstrap-style Alerts */
.alert {
  padding: 15px;
  border-radius: 4px;
  font-weight: bold;
  margin-bottom:20px;
}

.alert-danger {
  background-color: #d5281b !important; 
  color: #ffffff !important;
}

.alert-success {
  background-color: #007f3b !important; 
  color: #ffffff !important;
}

.alert-warning {
  background-color: #ffeb3b !important;
  color: #212b32 !important; 
}

.alert-info {
  background-color: #005eb8 !important;
  color: #ffffff !important;
}

.bg-red-lt {
  background-color: #f4d6d3 !important; 
  color: #d5281b !important;
}

.bg-green-lt {
  background-color: #d8ebe4 !important; 
  color: #007f3b !important;
}

.bg-yellow-lt {
  background-color: #fff9c4 !important;
  color: #ffb81C !important;
}

.bg-azure-lt {
  background-color: #d2e2f1 !important;
  color: #005eb8 !important;
}



@media (max-width:769px) {
  .nhsuk-grid-row{
    padding:10px 15px !important;
  } 
}

@media (max-width:641px) {
  .nhsuk-header__transactional-service-name{
    /* display: none; */
    visibility: hidden;
    padding-top:0px;
  }
}

/* padding alignment fix (for header logo to align with content) */
.nhsuk-header__container-ovrd-w{
  max-width: 990px;
}