/* Distriktsläkare Bli medlem — BuddyBoss registrering v1.0.31 */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;500;600;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap");

body.dl-bli-medlem-redesign.registration.register.buddypress,
body.dl-bli-medlem-redesign.registration.register.buddypress .site,
body.dl-bli-medlem-redesign.registration.register.buddypress #page {
  background: linear-gradient(180deg, #eef7fc 0%, #fff 280px) !important;
  color: #1a2b3c !important;
}

body.dl-bli-medlem-redesign.registration.register.buddypress #primary,
body.dl-bli-medlem-redesign.registration.register.buddypress #primary .entry-header,
body.dl-bli-medlem-redesign.registration.register.buddypress #primary label,
body.dl-bli-medlem-redesign.registration.register.buddypress #primary legend,
body.dl-bli-medlem-redesign.registration.register.buddypress #primary h1,
body.dl-bli-medlem-redesign.registration.register.buddypress #primary h2,
body.dl-bli-medlem-redesign.registration.register.buddypress #primary p,
body.dl-bli-medlem-redesign.registration.register.buddypress #primary a {
  color: inherit;
}

body.dl-bli-medlem-redesign.buddypress.register {
  --dl-bm-blue-50: #eef7fc;
  --dl-bm-blue-100: #d6edf9;
  --dl-bm-blue-500: #2ea8d4;
  --dl-bm-blue-600: #1a96c4;
  --dl-bm-blue-700: #157fa8;
  --dl-bm-text: #1a2b3c;
  --dl-bm-muted: #5a6d7d;
  --dl-bm-border: #d8e6ef;
  --dl-bm-radius: 12px;
  --dl-bm-radius-lg: 20px;
  --dl-bm-shadow-lg: 0 12px 40px rgba(26, 43, 60, 0.12);
  --dl-bm-btn-bg: #15b8ea;
  --dl-bm-btn-border: #15b8ea;
  --dl-bm-btn-hover: #1099c9;
  --dl-bm-btn-radius: 10px;
  --dl-bm-page-gutter: 40px;
}

body.dl-bli-medlem-redesign.registration.register.buddypress #register-page,
body.dl-bli-medlem-redesign.registration.register.buddypress .buddypress-wrap,
body.dl-bli-medlem-redesign.registration.register.buddypress .bs-bp-container-reg {
  background: transparent !important;
  box-shadow: none !important;
  min-height: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.dl-bli-medlem-redesign.buddypress.register .site-header {
  display: none !important;
}

body.dl-bli-medlem-redesign.buddypress.register .register-section-logo,
body.dl-bli-medlem-redesign.buddypress.register .entry-header {
  display: none !important;
}

body.dl-bli-medlem-redesign .dl-bm-site-header {
  background: #15b8ea;
  color: #fff;
  width: 100%;
  min-height: 65px;
  display: flex;
  align-items: center;
}

body.dl-bli-medlem-redesign .dl-bm-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--dl-bm-page-gutter, 10px);
  width: 100%;
}

body.dl-bli-medlem-redesign .dl-bm-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none !important;
  color: #fff;
}

body.dl-bli-medlem-redesign .dl-bm-logo:hover {
  opacity: 0.92;
}

body.dl-bli-medlem-redesign .dl-bm-logo-image {
  display: block;
  width: 200px;
  height: auto;
  max-height: 65px;
  max-width: 100%;
}

body.dl-bli-medlem-redesign.buddypress.register .site-content {
  padding-top: 2.5rem !important;
  padding-bottom: 3rem;
}

body.dl-bli-medlem-redesign.buddypress.register .bs-bp-container-reg,
body.dl-bli-medlem-redesign.buddypress.register #primary.content-area {
  max-width: 1200px;
  margin: 0 auto;
  float: none;
  width: 100%;
}

/* BuddyBoss caps register content at 450px — break out for two-column layout */
body.dl-bli-medlem-redesign.buddypress.register article.bp_register {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.dl-bli-medlem-redesign.buddypress.register #buddypress.buddypress-wrap {
  max-width: none !important;
  width: 100% !important;
}

body.dl-bli-medlem-redesign.buddypress.register #register-page {
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-width: none !important;
  width: 100% !important;
}

body.dl-bli-medlem-redesign.buddypress.register .buddypress-wrap {
  background: transparent;
}

/* Layout */
body.dl-bli-medlem-redesign .dl-bm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 4.5rem;
  align-items: start;
  width: 100%;
  padding-left: var(--dl-bm-page-gutter);
  padding-right: var(--dl-bm-page-gutter);
  box-sizing: border-box;
}

.dl-bm-pitch {
  padding-top: 0.5rem;
}

.dl-bm-pitch-intro {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 220px);
  gap: 1.25rem 2.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.dl-bm-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dl-bm-blue-600);
  background: var(--dl-bm-blue-100);
  border-radius: 6px;
}

.dl-bm-pitch-title {
  margin: 0 0 1rem;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dl-bm-text);
}

.dl-bm-pitch-title em {
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: italic;
  color: var(--dl-bm-blue-600);
}

.dl-bm-pitch-lead {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--dl-bm-muted);
}

.dl-bm-pitch-visual img {
  display: block;
  width: 100%;
  border-radius: var(--dl-bm-radius-lg);
  box-shadow: var(--dl-bm-shadow-lg);
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.dl-bm-benefits {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.dl-bm-benefit {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.dl-bm-benefit-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--dl-bm-border);
  border-radius: 10px;
  font-size: 1.125rem;
  color: var(--dl-bm-blue-600);
}

.dl-bm-benefit strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
  color: var(--dl-bm-text);
}

.dl-bm-benefit span {
  font-size: 0.875rem;
  color: var(--dl-bm-muted);
}

.dl-bm-course-teaser {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.125rem;
  background: #fff;
  border: 1px solid var(--dl-bm-border);
  border-radius: var(--dl-bm-radius-lg);
  box-shadow: 0 4px 24px rgba(26, 43, 60, 0.08);
  max-width: 26rem;
  text-decoration: none;
  color: inherit;
}

.dl-bm-course-teaser:hover {
  border-color: var(--dl-bm-blue-500);
  text-decoration: none;
  color: inherit;
}

.dl-bm-course-badge {
  display: inline-block;
  margin-bottom: 0.375rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #b45309;
  background: #fef3c7;
  border-radius: 4px;
}

.dl-bm-course-badge.is-calm {
  color: var(--dl-bm-blue-700);
  background: var(--dl-bm-blue-100);
}

.dl-bm-course-teaser-title {
  margin: 0 0 0.25rem;
  font-size: 1rem !important;
  font-weight: 600;
  color: var(--dl-bm-text);
}

.dl-bm-course-teaser-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--dl-bm-muted);
}

.dl-bm-course-teaser-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Form card */
.dl-bm-form-panel {
  position: sticky;
  top: 1.5rem;
}

.dl-bm-form-card {
  background: #fff;
  border: 1px solid var(--dl-bm-border);
  border-radius: var(--dl-bm-radius-lg);
  box-shadow: var(--dl-bm-shadow-lg);
  padding: 1.75rem;
}

.dl-bm-form-title {
  margin: 0 0 1.5rem;
  font-family: "DM Sans", sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dl-bm-text);
}

.dl-bm-progress {
  margin-bottom: 1.5rem;
}

.dl-bm-progress-track {
  height: 4px;
  background: var(--dl-bm-blue-50);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.dl-bm-progress-fill {
  height: 100%;
  width: 33.33%;
  background: var(--dl-bm-blue-500);
  transition: width 0.3s ease;
}

.dl-bm-progress-steps {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dl-bm-progress-step {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dl-bm-muted);
}

.dl-bm-progress-step.is-active,
.dl-bm-progress-step.is-done {
  color: var(--dl-bm-blue-600);
  font-weight: 600;
}

/* BuddyPress form overrides */
body.dl-bli-medlem-redesign #signup-form {
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.dl-bli-medlem-redesign #signup-form .layout-wrap,
body.dl-bli-medlem-redesign #signup-form .register-section {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.dl-bli-medlem-redesign #signup-form .dl-bm-step,
body.dl-bli-medlem-redesign #signup-form .dl-bm-step-intro {
  display: none;
}

html.dl-bm-js body.dl-bli-medlem-redesign #signup-form .dl-bm-step:not(.is-visible),
html.dl-bm-js body.dl-bli-medlem-redesign #signup-form .dl-bm-step-intro:not(.is-visible) {
  display: none !important;
}

html.dl-bm-js body.dl-bli-medlem-redesign #signup-form #profile-details-section:not(:has(.dl-bm-step.is-visible)) {
  display: none !important;
}

html.dl-bm-js body.dl-bli-medlem-redesign #signup-form .dl-bm-step.is-visible,
html.dl-bm-js body.dl-bli-medlem-redesign #signup-form .dl-bm-step-intro.is-visible {
  display: block;
}

/* Before JS: show step 1 so the form is never blank */
html:not(.dl-bm-js) body.dl-bli-medlem-redesign #signup-form #basic-details-section {
  display: block !important;
}

html:not(.dl-bm-js) body.dl-bli-medlem-redesign #signup-form .register-section.extended-profile,
html:not(.dl-bm-js) body.dl-bli-medlem-redesign #signup-form .register-privacy-info,
html:not(.dl-bm-js) body.dl-bli-medlem-redesign #signup-form .dl-bm-hidden-optional {
  display: none !important;
}

body.dl-bli-medlem-redesign #signup-form .dl-bm-hidden-optional {
  display: none !important;
}

body.dl-bli-medlem-redesign #signup-form .bb-signup-field,
body.dl-bli-medlem-redesign #signup-form .editfield {
  margin-bottom: 1rem;
}

body.dl-bli-medlem-redesign #signup-form label,
body.dl-bli-medlem-redesign #signup-form legend {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dl-bm-text) !important;
}

body.dl-bli-medlem-redesign #signup-form input[type="text"],
body.dl-bli-medlem-redesign #signup-form input[type="email"],
body.dl-bli-medlem-redesign #signup-form input[type="password"] {
  width: 100%;
  border: 1.5px solid var(--dl-bm-border) !important;
  border-radius: 8px !important;
  padding: 0.75rem 0.875rem !important;
  font-size: 0.9375rem !important;
  background: #fff !important;
  color: var(--dl-bm-text) !important;
}

body.dl-bli-medlem-redesign #signup-form select {
  width: 100%;
  box-sizing: border-box !important;
  border: 1.5px solid var(--dl-bm-border) !important;
  border-radius: 8px !important;
  padding: 0.5rem 2.5rem 0.5rem 0.875rem !important;
  font-size: 0.9375rem !important;
  line-height: 1.4 !important;
  height: auto !important;
  min-height: 2.75rem !important;
  background-color: #fff !important;
  color: var(--dl-bm-text) !important;
}

body.dl-bli-medlem-redesign #signup-form input:focus,
body.dl-bli-medlem-redesign #signup-form select:focus {
  border-color: var(--dl-bm-blue-500) !important;
  box-shadow: 0 0 0 3px rgba(46, 168, 212, 0.15) !important;
}

html.dl-bm-js body.dl-bli-medlem-redesign #signup-form .dl-bm-step.is-visible.editfield {
  display: block;
  width: 100%;
  margin-right: 0;
}

body.dl-bli-medlem-redesign #signup-form .datebox-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.375rem;
}

body.dl-bli-medlem-redesign #signup-form .datebox-selects label:nth-of-type(1),
body.dl-bli-medlem-redesign #signup-form .datebox-selects select:nth-of-type(1) {
  grid-column: 1;
}

body.dl-bli-medlem-redesign #signup-form .datebox-selects label:nth-of-type(1) {
  grid-row: 1;
}

body.dl-bli-medlem-redesign #signup-form .datebox-selects select:nth-of-type(1) {
  grid-row: 2;
}

body.dl-bli-medlem-redesign #signup-form .datebox-selects label:nth-of-type(2),
body.dl-bli-medlem-redesign #signup-form .datebox-selects select:nth-of-type(2) {
  grid-column: 2;
}

body.dl-bli-medlem-redesign #signup-form .datebox-selects label:nth-of-type(2) {
  grid-row: 1;
}

body.dl-bli-medlem-redesign #signup-form .datebox-selects select:nth-of-type(2) {
  grid-row: 2;
}

body.dl-bli-medlem-redesign #signup-form .datebox-selects label:nth-of-type(3),
body.dl-bli-medlem-redesign #signup-form .datebox-selects select:nth-of-type(3) {
  grid-column: 3;
}

body.dl-bli-medlem-redesign #signup-form .datebox-selects label:nth-of-type(3) {
  grid-row: 1;
}

body.dl-bli-medlem-redesign #signup-form .datebox-selects select:nth-of-type(3) {
  grid-row: 2;
}

body.dl-bli-medlem-redesign #signup-form .datebox-selects label {
  display: block;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

body.dl-bli-medlem-redesign #signup-form .datebox-selects select {
  width: 100%;
  margin-bottom: 0;
  padding: 0.5rem 2rem 0.5rem 0.75rem !important;
  min-height: 2.75rem !important;
  height: auto !important;
  line-height: 1.4 !important;
}

body.dl-bli-medlem-redesign #signup-form .editfield fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

body.dl-bli-medlem-redesign #signup-form .field_15 fieldset legend {
  display: block;
  margin: 0 0 0.375rem;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

body.dl-bli-medlem-redesign #signup-form .field_15 .description {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--dl-bm-muted);
  line-height: 1.45;
}

body.dl-bli-medlem-redesign #signup-form .field_117 legend {
  display: none;
}

body.dl-bli-medlem-redesign #signup-form .field_117 .bp-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

body.dl-bli-medlem-redesign #signup-form .field_117 .option-label {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--dl-bm-text) !important;
}

body.dl-bli-medlem-redesign #signup-form .field_117.dl-bm-invalid .bp-checkbox-wrap {
  padding: 0.75rem;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

body.dl-bli-medlem-redesign #signup-form .field_117 {
  margin-top: 0.25rem;
}

body.dl-bli-medlem-redesign .register-privacy-info {
  display: none !important;
}

html.dl-bm-js body.dl-bli-medlem-redesign #signup-form .register-privacy-info {
  display: none !important;
}

body.dl-bli-medlem-redesign #signup-form .description {
  font-size: 0.8125rem;
  color: var(--dl-bm-muted);
}

.dl-bm-step-intro {
  margin: 0 0 1rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dl-bm-blue-700);
  background: var(--dl-bm-blue-50);
  border-left: 3px solid var(--dl-bm-blue-500);
  border-radius: 0 8px 8px 0;
}

body.dl-bli-medlem-redesign #buddypress .bp-feedback.error,
body.dl-bli-medlem-redesign #message.bp-feedback.error {
  margin: 0 0 1rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

body.dl-bm-signup-success .dl-bm-form-title {
  margin-bottom: 0.75rem;
}

.dl-bm-success-lead {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--dl-bm-muted);
}

body.dl-bm-signup-success #register-page aside.bp-feedback,
body.dl-bm-signup-success #register-page .bp-feedback.bp-messages,
body.dl-bm-signup-success #register-page #template-notices {
  display: none !important;
}

body.dl-bm-signup-success #buddypress .bp-feedback.error,
body.dl-bm-signup-success #message.bp-feedback.error,
body.dl-bm-signup-success #register-page .bp-feedback.error {
  display: none !important;
}

.dl-bm-step-error,
.dl-bm-server-notice {
  margin: 1rem 0 0;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  line-height: 1.45;
}

.dl-bm-server-notice p {
  margin: 0;
}

body.dl-bli-medlem-redesign #signup-form input.dl-bm-invalid,
body.dl-bli-medlem-redesign #signup-form select.dl-bm-invalid,
body.dl-bli-medlem-redesign #signup-form textarea.dl-bm-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.dl-bm-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

body.dl-bli-medlem-redesign .dl-bm-form-actions.is-solo .dl-bm-btn-primary {
  display: block !important;
  width: 100% !important;
}

.dl-bm-form-actions.is-solo #dl-bm-back,
#dl-bm-back[hidden] {
  display: none !important;
}

body.dl-bli-medlem-redesign .dl-bm-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 6px 20px !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 38px !important;
  border-radius: var(--dl-bm-btn-radius) !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  flex: 1;
}

body.dl-bli-medlem-redesign .dl-bm-btn-primary {
  background: var(--dl-bm-btn-bg) !important;
  background-color: var(--dl-bm-btn-bg) !important;
  border-color: var(--dl-bm-btn-border) !important;
  color: #fff !important;
}

body.dl-bli-medlem-redesign .dl-bm-btn-primary:hover,
body.dl-bli-medlem-redesign .dl-bm-btn-primary:focus {
  background: var(--dl-bm-btn-hover) !important;
  background-color: var(--dl-bm-btn-hover) !important;
  border-color: var(--dl-bm-btn-hover) !important;
  color: #fff !important;
}

body.dl-bli-medlem-redesign .dl-bm-btn-secondary {
  background: #fff !important;
  color: var(--dl-bm-text) !important;
  border: 1.5px solid var(--dl-bm-border) !important;
  flex: 0 0 auto;
}

body.dl-bli-medlem-redesign #signup-form .dl-bm-native-submit {
  display: none !important;
}

.dl-bm-form-footer {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--dl-bm-muted);
}

@media (max-width: 900px) {
  body.dl-bli-medlem-redesign.buddypress.register {
    --dl-bm-page-gutter: 16px;
  }

  body.dl-bli-medlem-redesign .dl-bm-header-inner {
    display: flex;
    justify-content: center;
  }

  body.dl-bli-medlem-redesign .dl-bm-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .dl-bm-form-panel {
    position: static;
    order: -1;
  }

  .dl-bm-pitch-intro {
    grid-template-columns: 1fr minmax(120px, 140px);
  }

  .dl-bm-course-teaser {
    max-width: none;
  }
}

@media (max-width: 480px) {
  body.dl-bli-medlem-redesign.buddypress.register {
    --dl-bm-page-gutter: 24px;
  }

  .dl-bm-form-card {
    padding: 1.25rem;
  }

  body.dl-bli-medlem-redesign #signup-form .datebox-selects {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  body.dl-bli-medlem-redesign #signup-form .datebox-selects label,
  body.dl-bli-medlem-redesign #signup-form .datebox-selects select {
    grid-column: auto;
    grid-row: auto;
  }
}
