/* A very basic minimal reset */
#hipn,
#hipn *,
#hipn *::before,
#hipn *::after {
  box-sizing: border-box;
}

#hipn,
#hipn h1,
#hipn h2,
#hipn h3,
#hipn h4,
#hipn h5,
#hipn h6,
#hipn p,
#hipn blockquote,
#hipn figure,
#hipn ul,
#hipn ol,
#hipn dl,
#hipn fieldset,
#hipn legend,
#hipn input,
#hipn button,
#hipn textarea,
#hipn select {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

#hipn ul,
#hipn ol {
  list-style: none;
}

#hipn img,
#hipn picture,
#hipn video,
#hipn canvas,
#hipn svg {
  display: block;
  max-width: 100%;
}

#hipn input,
#hipn button,
#hipn textarea,
#hipn select {
  font: inherit;
}

#hipn a {
  text-decoration: none;
  color: inherit;
}

/* Add custom variables for colors */
:root {
  --hipn-green-color: #339578;
  --hipn-background-color: #24516F;
  --hipn-text-color: #FFFFFF;
  --hipn-blue-color: #24516F;
  --hipn-text-gray-color: #4D4D4F;
}

/* Basic styles for the HIPN container */
#hipn {
  background-color: var(--hipn-background-color);
  color: var(--hipn-text-color);
  padding: 20px;
  margin: 0 auto;
  max-width: 1400px;
}

#hipn h1,
#hipn h2,
#hipn h3,
#hipn p {
  color: var(--hipn-text-color);
}

#hipn .hipn-navigator {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-start;
  padding: 30px 0
}

#hipn .hipn-button {
  background-color: var(--hipn-green-color);
  border: 2px solid var(--hipn-green-color);
  color: var(--hipn-text-color);
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28px;
  min-width: 220px;
}

#hipn .hipn-button:hover {
  opacity: 0.7;
}

#hipn .hipn-button-alt {
  background-color: transparent;
  border: 2px solid white;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28px;
}

#hipn .hipn-button-alt:hover {
  background-color: darken(var(--hipn-text-color), 10%);
  color: var(--hipn-green-color);
}

.hipn-page-template {
  background-color: var(--hipn-background-color);
  position: relative;
  overflow: clip;
  padding-bottom: 160px;
}

.hipn-bg-image {
  position: absolute;
  bottom: -200px;
  right: -20px;
}

.hipn-bg-triangles {
  position: absolute;
  bottom: -440px;
  left: -480px;
  width: 1905px;
  max-width: 1905px;
  height: 682px;
  scale: 0.5;
}

#hipn h2 {
  font-size: 28px;
  margin-bottom: 28px;
}

#hipn .hipn-cta a {
  color: var(--hipn-text-color);
  text-decoration: underline;
}

.hipn-spa-progress {
  background: #eee;
  border-radius: 10px;
  height: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.hipn-spa-progress-bar {
  background: #339578;
  height: 100%;
  border-radius: 0px 10px 10px 0px;
  transition: width 0.3s;
}

.hipn-spa-step-count {
  margin-bottom: 16px;
}

#hipn .hipn-spa-title h2 {
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 10px;
  max-width: 550px;
}

.hipn-spa-help {
  font-size: 14px;
  color: #4d4d4f;
  margin-bottom: 20px;
}

.hipn-spa-results-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.hipn-spa-question {
  padding: 40px;
}

#hipn-spa-nav {
  padding: 40px;
}

.hipn-spa-question:nth-of-type(even) {
  background: #f1f2f2;
}

.hipn-spa-select {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-top: 6px;
}

.hipn-button:disabled {
  background: #aaa;
  cursor: not-allowed;
}

.hipn-button-next {
  width: 100%;
}

#hipn .hipn-button.hipn-button-back {
  width: 100%;
  margin-bottom: 8px;
  color: var(--hipn-blue-color);
  background: transparent;
  border-color: transparent;
}

.hipn-spa-link {
  color: #27ae60;
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: 16px;
  display: inline-block;
}

.hipn-spa-questions-wrapper {
  background: #ffffff;
  color: #24516F;
  border-radius: 10px;
  margin-top: 70px;
}

#hipn .hipn-spa-pseudo-select {
  position: relative;
  border: 1px solid;
  border-color: var(--hipn-blue-color);
  padding: 13px 20px;
  border-radius: 50px;
  margin-top: 10px;
  background: #fff;
}

#hipn .hipn-spa-pseudo-option {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  cursor: pointer;
  gap: 10px;
  align-items: flex-start;
}

#hipn .hipn-spa-pseudo-option input[type="checkbox"] {
  position: relative;
  top: 5px;
}

#hipn .hipn-spa-select {
  border: 1px solid;
  border-color: var(--hipn-blue-color);
  padding: 10px 25px;
  border-radius: 50px;
  margin-top: 10px;
  font-size: 14px;
}


.hipn-hidden {
  display: none !important;
}

.hipn-visible {
  display: block !important;
}

.hipn-spa-pseudo-dropdown {
  position: absolute;
  left: -1px;
  right: 0;
  /* z-index: 10; */
  background: #fff;
  padding: 12px 8px;
  box-shadow: 5px 5px 10px rgba(50, 50, 50, 0.6);
  border-radius: 15px;
  border-top: none;
  max-height: 600px;
  overflow-y: auto;
}

.hipn-spa-pseudo-selected {
  font-size: 14px;
}

.hipn-spa-error {
  color: #c0392b;
  margin-top: 10px;
  font-size: 0.95em;
}

.hipn-spa-results-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hipn-spa-results-list li {
  background: white;
  padding: 10px;
  color: var(--hipn-blue-color);
  border-radius: 10px;
  max-width: 550px;
  border: 4px solid transparent;
}

.hipn-org-summary {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.hipn-org-side {
  display: flex;
  justify-content: flex-end;
}

.hipn-org-side button.hipn-org-expand-btn {
  cursor: pointer;
  background: white;
  min-width: 24px;
}

.hipn-org-summary .hipn-org-logo {
  max-width: 100px;
  display: block;
  position: relative;
}

.hipn-org-summary .hipn-org-name {
  font-size: 14px;
  font-weight: 700;
  display: inline-block;
}

.hipn-org-summary .hipn-org-type {
  font-size: 14px;
  display: inline-block;
}

#hipn-map.hipn-map {
  position: relative;
  width: 100%;
  max-width: 590px;
  height: 510px;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  /* z-index: 21; */
}

/* Leaflet-specific styles for static image overlay */
.hipn-map-container .leaflet-container {
  background: transparent !important;
  border-radius: 8px;
}

/* Hide Leaflet attribution and zoom controls since we're using static image */
.hipn-map-container .leaflet-control-attribution,
.hipn-map-container .leaflet-control-zoom {
  display: none !important;
}

/* Style the popups */
.hipn-map-container .leaflet-popup-content-wrapper {
  background: var(--hipn-background-color);
  color: var(--hipn-text-color);
  border-radius: 8px;
}

.hipn-map-container .leaflet-popup-tip {
  background: var(--hipn-background-color);
}

.hipn-map-container .leaflet-popup-content {
  margin: 8px 12px;
  line-height: 1.4;
}

.hipn-map-container .leaflet-popup-content h4 {
  color: var(--hipn-green-color);
  margin: 0 0 8px 0;
  font-size: 16px;
}

.hipn-map-container .leaflet-popup-content p {
  margin: 4px 0;
  font-size: 14px;
}

.hipn-org-about {
  display: none;
}

.hipn-org-result.expanded .hipn-org-about {
  display: block;
  margin: 20px auto;
  color: #4d4d4f;
  font-size: 14px;
  line-height: 21px;
}

.hipn-org-result.expanded {
  border: 4px solid black;
}

.hipn-org-about-toggle {
  display: inline;
}

#hipn .hipn-org-about-toggle a {
  color: var(--hipn-blue-color);
  text-decoration: underline;
  font-size: 14px;
  cursor: pointer;
}

.hipn-org-details .hipn-org-field {
  font-size: 14px;
  padding: 10px;
  display: flex;
}

.hipn-org-details .hipn-org-field .org-detail-title {
  font-weight: 700;
  width: 50%;
}

.hipn-org-details .hipn-org-field .org-detail-content {
  width: 50%;
}

.hipn-org-details .hipn-org-field:nth-child(odd) {
  background: #F1F2F2;
  border-radius: 5px;
}

#hipn .hipn-underline {
  text-decoration: underline;
}

/* Organisation link styling */
#hipn .hipn-org-link {
  color: #0073aa;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

#hipn .hipn-org-link:hover {
  color: #005a87;
  text-decoration: underline;
}

/* Social logos styling */
.social-link {
  display: inline-block;
  margin-right: 10px;
  text-decoration: none;
}

.social-link:last-child {
  margin-right: 0;
}

.social-logo {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  transition: opacity 0.3s ease;
}

.social-link:hover .social-logo {
  opacity: 0.7;
}

.hipn-map-container {
  margin-top: 68px;
}

#hipn-spa-bottom {
  /* z-index: 1; */
}

#hipn-spa-wrapper {
  position: relative;
  /* z-index: 1; */
}

.hipn-collab {
  margin-top: 30px;
}

.hipn-collab p {
  font-size: 12px;
  font-weight: 700;
}

.hipn-collab-logos {
  display: flex;
  gap: 30px;
  margin-top: 10px;
}

.hipn-org-type-key {
  background: #fff;
  position: relative;
  /* z-index: 2; */
  border-radius: 10px;
  padding: 20px;
  margin-top: 40px;
}

#hipn .hipn-org-type-key h3 {
  color: var(--hipn-blue-color);
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 700;
}

#hipn .hipn-org-type-key ul {
  display: flex;
  flex-wrap: wrap;
}

.hipn-org-type-key ul li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--hipn-blue-color);
  width: 50%;
}

#hipn .hipn-org-type-key ul li p {
  color: var(--hipn-blue-color);
  font-size: 14px;
}

.hipn-org-type-key .hipn-otk-square {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background: #000000;
  /* Example color for NHS Organisations */
  margin-right: 10px;
}

.hipn-org-enquiry-form {
  display: flex;
  justify-content: center;
}

#hipn .hipn-enquiry-btn {
  background-color: var(--hipn-green-color);
  border: 2px solid var(--hipn-green-color);
  color: var(--hipn-text-color);
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28px;
  margin: 20px auto;
}

/* Contact Form Styles */
#hipn .hipn-contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#hipn .hipn-contact-form-header {
  margin-bottom: 20px;
}

#hipn .hipn-back-to-results-btn {
  background: #339578;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

#hipn .hipn-back-to-results-btn:hover {
  background: #2a7a63;
}

#hipn .hipn-contact-form-content h2 {
  color: var(--hipn-blue-color);
  margin-bottom: 20px;
  font-size: 20px;
  padding-bottom: 10px;
}

#hipn .hipn-enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#hipn .hipn-form-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#hipn .hipn-form-row label {
  font-weight: bold;
  color: var(--hipn-blue-color);
  font-size: 14px;
}

#hipn .hipn-form-row input {
  padding: 12px;
  border: 1px solid;
  border-color: var(--hipn-blue-color);
  border-radius: 50px;
  font-size: 14px;
  transition: border-color 0.3s;
}

#hipn .hipn-form-row textarea {
  padding: 12px;
  border: 1px solid;
  border-color: var(--hipn-blue-color);
  border-radius: 15px;
  font-size: 14px;
  transition: border-color 0.3s;
}

#hipn .hipn-form-row input:focus,
#hipn .hipn-form-row textarea:focus {
  outline: none;
  border-color: #339578;
  box-shadow: 0 0 0 2px rgba(51, 149, 120, 0.2);
}

#hipn .hipn-form-row textarea {
  resize: vertical;
  min-height: 100px;
}

#hipn .hipn-checkbox-row {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

#hipn .hipn-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: normal;
  cursor: pointer;
  line-height: 1.4;
}

#hipn .hipn-checkbox-label input[type="checkbox"] {
  margin: 0;
  margin-top: 2px;
}

#hipn .hipn-checkbox-label a {
  color: #339578;
  text-decoration: underline;
}

#hipn .hipn-submit-btn {
  background: #339578;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s;
  align-self: flex-start;
}

#hipn .hipn-submit-btn:hover:not(:disabled) {
  background: #2a7a63;
}

#hipn .hipn-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#hipn .hipn-form-message {
  padding: 15px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
}

#hipn .hipn-form-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#hipn .hipn-form-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.hipn-circles {
  display: none;
}

.hipn-spa-results-list li:hover {
  cursor: pointer;
}

.hipn-contact-us-btn {
  background-color: transparent;
  border: 2px solid white;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28px;
}

.hipn-contact-us-btn:hover {
  opacity: 0.7;
}

#hipn .hipn-reset-search-btn,
#hipn .hipn-view-all-organisations-btn {
  display: block;
  background-color: transparent;
  border: 2px solid white;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28px;
  margin-top: 8px;
}

.hipn-spa-header-content {
  display: flex;
  justify-content: space-between;
  padding-bottom: 50px;
}

.hipn-spa-header-content p {
  font-size: 20px;
  width: 245px;
}

.hipn-spa-header-content a {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: Arial;
  letter-spacing: 0.28px;
}

.hipn-spa-header-back {
  display: flex;
  align-items: top;
  gap: 10px;
}

.hipn-spa-questions-wrapper[data-step="3"] #hipn-spa-nav {
  padding-top: 0;
}

.hipn-button-back-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hipn-button-next-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hipn-button-results-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hipn-button-content {
  display: flex;
  gap: 10px;
}

.hipn-spa-header-buttons {
  display: flex;
  width: 100%;
  gap: 25px;
  flex-wrap: wrap;
}

#hipn-find-org-btn {
  min-width: 234px;
}

.hipn-contact-us-btn {
  display: block;
}

/* Responsive adjustments for contact form */
@media (max-width: 768px) {

  #hipn {
    max-width: 100%;
    padding: 40px 0;
  }

  .hipn-page-template {
    padding-left: 16px;
    padding-right: 16px;
  }

  #hipn .hipn-contact-form-container {
    margin: 10px;
    padding: 50px;
  }

  #hipn .hipn-contact-form-content h2 {
    font-size: 20px;
  }

  #hipn .hipn-submit-btn {
    width: 100%;
    text-align: center;
  }

  #hipn-map.hipn-map {
    height: 600px;
  }

  #hipn .hipn-org-type-key ul li {
    width: 100%;
  }

  #hipn .hipn-button.hipn-button-results {
    width: 100%;
    text-align: center;
  }

  .hipn-spa-header-content {
    flex-wrap: wrap;
    gap: 20px;
  }

  .hipn-page-template {
    padding-bottom: 0px;
  }

  .hipn-map-container {
    margin-top: 0;
  }

}

@media (max-width: 500px) {
  #hipn-map.hipn-map {
    height: 500px;
  }
}

@media (max-width: 400px) {
  #hipn-map.hipn-map {
    height: 400px;
  }
}

@media (min-width: 1200px) {
  #hipn-spa {
    display: flex;
    width: 100%;
  }

  #hipn-spa-top {
    width: 100%;
  }

  #hipn-spa-top.hipn-spa-active {
    width: 50%;
  }

  .hipn-spa-questions-wrapper {
    margin-top: 0;
    max-width: 570px;
  }

  #hipn {
    display: flex;
  }

  #hipn .hipn-spa-wrapper {
    width: 50%;
    padding-right: 120px;
    padding-top: 50px;
  }

  #hipn .hipn-spa-wrapper.hipn-spa-active {
    width: 100%;
    padding-right: 0;
  }

  #hipn .hipn-spa-wrapper.hipn-spa-active.hipn-spa-active-results {
    width: 50%;
  }

  #hipn .hipn-map-container {
    width: 50%;
    position: relative;
    margin-top: 60px;
  }

  .hipn-circles {
    display: block;
  }

  .hipn-circle {
    position: absolute;
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 700;
    padding: 20px;
  }

  .hipn-circle-one {
    top: -80px;
    left: 220px;
  }

  .hipn-circle-two {
    top: 400px;
    left: 0px;
  }

  .hipn-circle-three {
    top: 400px;
    right: 140px;
  }

  #hipn .hipn-circle .hipn-coi-heading {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: var(--hipn-blue-color);
  }

  #hipn .hipn-circle .hipn-coi-content {
    font-size: 12px;
    text-align: center;
    color: var(--hipn-blue-color);
  }

  .hipn-spa-header {
    max-width: 520px;
    width: 100%;
  }

  #hipn-spa-nav {
    display: flex;
    justify-content: space-between;
  }

  .hipn-bg-image {
    bottom: unset;
    top: 0;
    right: 0;
  }

  .hipn-map-container {
    margin-top: 0;
  }

  #hipn ul.hipn-spa-results-list {
    overflow-y: scroll;
    max-height: 500px;
    padding-right: 20px;
  }

  #hipn .hipn-spa-results-list::-webkit-scrollbar {
    width: 8px;
    border-radius: 10px;
  }

  #hipn .hipn-spa-results-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }

  #hipn .hipn-spa-results-list::-webkit-scrollbar-thumb {
    background: #339578;
    border-radius: 10px;
  }

  #hipn .hipn-button.hipn-button-back {
    padding-left: 0;
    max-width: 25%;
  }

  .hipn-button-back-content {
    justify-content: left;
  }

  header.header {
    z-index: 800;
  }

}

.hipn-field-error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.hipn-field-error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  display: none;
  font-weight: 500;
  line-height: 1.4;
}

.hipn-spa-question.has-error .hipn-field-error-message {
  display: block;
}

.hipn-spa-pseudo-select.hipn-field-error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.hipn-spa-select.hipn-field-error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.hipn-spa-select.hipn-field-error:focus,
.hipn-spa-pseudo-select.hipn-field-error:focus {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
  outline: none;
}

/* Add Organisation Form Styles */
.hipn-add-organisation-form {
  background: #24516F;
}

.hipn-add-organisation-title {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 10px;
}

.hipn-add-organisation-description {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 20px;
}

.hipn-add-organisation-page {
  background: #24516F;
}

.hipn-add-organisation-page .hipn-message.hipn-error {
  background: #b30015;
  margin-bottom: 20px;
  padding: 12px;
  border-radius: 10px;
  color: white;
}

.hipn-add-organisation-page .hipn-message.hipn-success {
  background: #d1edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  margin-bottom: 20px;
  padding: 12px;
  border-radius: 10px;
}

.hipn-add-organisation-form {
  padding: 40px;
  border-radius: 10px;
  background: #ffffff;
}

.hipn-add-organisation-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 100px 20px;
}

.hipn-add-organisation-form .hipn-form-row {
  margin-bottom: 20px;
}

.hipn-add-organisation-form .hipn-form-row label {
  display: block;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 10px;
  color: #24516F;
}

.hipn-add-organisation-form .hipn-form-row input[type="text"],
.hipn-add-organisation-form .hipn-form-row input[type="email"],
.hipn-add-organisation-form .hipn-form-row input[type="tel"],
.hipn-add-organisation-form .hipn-form-row textarea {
  width: 100%;
  padding: 10px 25px;
  border: 1px solid #063555;
  border-radius: 50px;
  font-size: 14px;
  color: #4d4d4f;
  box-sizing: border-box;
  background: #fff;
}

.hipn-add-organisation-form .hipn-form-row textarea {
  border-radius: 15px;
}

.hipn-add-organisation-form .hipn-form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.hipn-add-organisation-form .hipn-submit-btn {
  background: #339578;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.hipn-add-organisation-form .hipn-submit-btn:hover {
  background: #005a87;
}

.hipn-add-organisation-form .required {
  color: #d63638;
}

.hipn-add-organisation-form .hipn-message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-weight: bold;
}

.hipn-add-organisation-form .hipn-success {
  background: #d1edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.hipn-add-organisation-form .hipn-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Form validation styles - only applied via JavaScript */
.hipn-add-organisation-form .hipn-form-row input.field-error,
.hipn-add-organisation-form .hipn-form-row textarea.field-error {
  border-color: #d63638;
}

.hipn-add-organisation-form .hipn-form-row input.field-valid,
.hipn-add-organisation-form .hipn-form-row textarea.field-valid {
  border-color: #46b450;
}

.hipn-add-organisation-form .hipn-submit-with-icon {
  position: relative;
  width: 140px;
}

.hipn-add-organisation-form .hipn-submit-with-icon input {
  width: 100%;
}

.hipn-add-organisation-form .hipn-submit-with-icon svg {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* Checkbox styling */
.hipn-add-organisation-form .hipn-checkbox-row {
  margin-bottom: 25px;
}

.hipn-add-organisation-form .hipn-checkbox-label {
  display: flex;
  align-items: flex-start;
  font-weight: normal;
  font-size: 14px;
  color: #24516F;
  cursor: pointer;
  margin-bottom: 0;
}

.hipn-add-organisation-form .hipn-checkbox-label input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  margin-top: 2px;
  transform: scale(1.2);
}

.hipn-add-organisation-form .hipn-checkbox-text {
  flex: 1;
  line-height: 1.4;
}

.hipn-add-organisation-form .hipn-privacy-link {
  color: #0073aa;
  text-decoration: underline;
  font-weight: bold;
}

.hipn-add-organisation-form .hipn-privacy-link:hover {
  color: #005a87;
}

/* Checkbox validation styles */
.hipn-add-organisation-form .hipn-checkbox-label input[type="checkbox"].field-error {
  outline: 2px solid #d63638;
  outline-offset: 2px;
}

.hipn-add-organisation-form .hipn-checkbox-label input[type="checkbox"].field-valid {
  outline: 2px solid #46b450;
  outline-offset: 2px;
}

#hipn .hipn-collapse-all-btn {
  display: block;
  background-color: transparent;
  border: 2px solid white;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28px;
  margin-top: 8px;
}

.hipn-single-org-details {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px 20px;
  max-width: 570px;
}

#hipn .hipn-single-org-details h1,
#hipn .hipn-single-org-details h2,
#hipn .hipn-single-org-details h3,
#hipn .hipn-single-org-details p,
#hipn .hipn-single-org-details * {
  color: var(--hipn-blue-color);
}

#hipn .hipn-single-org-details p,
#hipn .hipn-single-org-details * {
  font-size: 14px;
  line-height: 1.6;
}

.hipn-single-org-title-info {
  margin-bottom: 30px;
}

#hipn .hipn-single-org-name {
  font-size: 16px;
  margin-bottom: 0px;
}

#hipn .hipn-single-org-type {
  font-size: 14px;
  display: block;
  width: 100%;
}

#hipn .hipn-single-org-logo {
  margin-bottom: 30px;
}

#hipn .hipn-single-org-logo img {
  max-width: 122px;
  height: auto;
}

#hipn .hipn-single-org-about .hipn-org-about-text,
#hipn .hipn-single-org-about .hipn-org-about-text * {
  color: var(--hipn-text-gray-color);
}

#hipn .hipn-single-org-section .hipn-single-org-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#hipn .hipn-single-org-section .hipn-single-org-fields .hipn-single-org-field {
  display: flex;
  flex-direction: column;
  padding: 15px;
}

#hipn .hipn-single-org-section .hipn-single-org-fields .hipn-single-org-field:nth-child(odd) {
  background: #F1F2F2;
  border-radius: 5px;
}

#hipn .hipn-single-org-section .hipn-single-org-fields .hipn-single-org-field .hipn-single-org-field-label {
  font-weight: 700;
  color: var(--hipn-blue-color);
  margin-bottom: 5px;
}

#hipn .hipn-back-to-results-btn.hipn-back-to-results-btn-single {
  background: transparent;
  display: flex;
  text-transform: uppercase;
  gap: 4px;
  font-weight: 700;
  padding-left: 0;
}

#hipn .hipn-spa-single-org-header {
  margin-bottom: 40px;
}

#hipn .hipn-spa-single-org-header-title {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 10px;
  max-width: 245px;
}

#hipn .hipn-org-name-type {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .hipn-single-org-details {
    padding: 40px;
  }

  #hipn .hipn-single-org-name {
    font-size: 20px;
  }

  #hipn .hipn-single-org-about {
    margin-bottom: 20px;
  }

}

@media (min-width: 1200px) {
  #hipn .hipn-single-org-section .hipn-single-org-fields .hipn-single-org-field {
    flex-direction: row;
    justify-content: space-between;
  }

  #hipn .hipn-spa-single-org-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #hipn .hipn-single-org-section .hipn-single-org-fields .hipn-single-org-field .hipn-single-org-field-label {
    width: 50%;
  }

  #hipn .hipn-single-org-section .hipn-single-org-fields .hipn-single-org-field .hipn-single-org-field-value {
    width: 50%;
    text-align: left;
  }

  #hipn .hipn-single-org-name-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}