@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-Bold.woff2") format("woff2"),
    url("../fonts/HankenGrotesk-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

/* BL Add gradient background for create account page */
#page.show-gradient {
  background: white;
  min-height: 100vh;
}

/* BL Hide the default registration banner logo */
body.buddypress.register .register-section-logo {
  display: none !important;
}

/* BL Hide progress bar and header by default */
#progress-bar,
.register-header {
  display: none !important;
}

/* BL Only show progress bar and header when needed */
body:not(.step-1) #progress-bar {
  display: flex !important;
}

body:not(.step-1) .register-header {
  display: block !important;
}

#page.show-gradient #step-1 h2,
#page.show-gradient #step-1 label {
  color: #ffffff !important;
}

#progress-bar {
  width: 100%;
  height: 5px;
  background: white;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  overflow: visible; /* Allow segments to be visible */
}

/* Individual progress segments */
.progress-segment {
  width: 24.9%; /* Each segment takes exactly 1/4 of the space */
  height: 100%;
  background: #e4e8f0;
  transition: all 0.3s ease-in-out;
  border-radius: 2.5px;
}

/* Active state for progress segments */
.progress-segment.active {
  opacity: 1;
  background: #189302;
}

/* Completed state for progress segments */
.progress-segment.completed {
  opacity: 1;
  background: #189302;
}

/* Progress text styles */
.progress-text {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 14px;
  color: #4d5669;
  margin-bottom: 8px;
}

/* Create the transparent edges */
.progress-segment::before,
.progress-segment::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0%;
  height: 100%;
  background: #ffffff; /* Same as progress-bar background */
}

.progress-segment::before {
  left: -0.25%;
}

.progress-segment::after {
  right: -0.25%;
}

.register-step {
  display: none; /* Hide steps by default */
  flex-direction: column;
  align-items: stretch;
}

/* Style the button container to use Flexbox */
.register-step .button-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

/* Make the buttons fill the available space */
.register-step .button-container button {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 700;
  margin: 16px 0px;
}

.register-step .button-container button:hover {
  background-color: #153a83 !important;
}

.interest-tags {
  display: flex;
  flex-wrap: wrap; /* Allow chips to wrap to the next line */
  gap: 8px; /* Add space between chips */
  height: 312px; /* Adjust height to fit content */
  overflow-y: auto; /* Allow vertical scrolling if needed */
  margin-bottom: 20px;
}

.interest-chip {
  background-color: #f5f7fa;
  color: #333;
  padding: 10px 16px;
  border-radius: 24px;
  border: 1px solid #e4e8f0;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interest-chip.selected {
  background-color: #1a263d; /* Green background for selected chips */
  color: #ffffff; /* White text color for contrast */
}

/* Registration Header Styles */
.bb-registration-header {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 20px;
}

.registration-logo {
  max-width: 200px;
  height: auto;
}

/* Hide default BuddyPress registration title */
body.register .entry-header h1.entry-title,
body.register .entry-header span {
  display: none;
}

/* Form Container Styles */
#register-page {
  max-width: 410px;
}

.register-step h2 {
  font-family: "Hanken Grotesk", sans-serif !important;
  font-weight: 700 !important;
  font-size: 32px !important;
  line-height: 48px !important;
  letter-spacing: 0 !important;
  color: #1a263d !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  width: 410px !important;
  height: 48px !important;
}

.register-step h3 {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  color: #4d5669;
  margin-top: 8px !important;
  margin-bottom: 24px !important;
  vertical-align: middle;
}

.register-step input,
.register-step select {
  background-color: #f5f7fa !important;
  border: 1px solid #808ca6 !important;
  box-shadow: 0 1px 2px 0 rgba(228, 229, 231, 0.24) !important;
  width: 100% !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  font-family: "Hanken Grotesk", sans-serif !important;
  font-size: 16px !important;
  line-height: 24px !important;
  color: #4d5669 !important;
  box-sizing: border-box !important;
  margin-top: 0px !important;
  margin-bottom: 8px !important;
}

.register-step select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23808CA6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  padding-right: 36px !important;
}

.register-step label {
  font-family: "Hanken Grotesk", sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 24px !important;
  letter-spacing: 0 !important;
  color: #1a263d !important;
  display: block !important;
  margin-bottom: 8px !important;
  margin-top: 8px !important;
}

.register-step label span.required {
  font-family: "Hanken Grotesk", sans-serif !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 20px !important;
  letter-spacing: 0 !important;
  color: #4d5669 !important;
  margin-left: 4px !important;
  display: inline-block !important;
}

.profile-upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.profile-image-placeholder {
  width: 173px;
  height: 173px;
  border-radius: 50%;
  background-color: #c3cbcd;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden; /* Ensure content does not overflow the circle */
}

svg {
  display: block; /* Remove any default inline spacing */
  margin: auto; /* Center the SVG within its container */
}

.upload-size-info {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 14px;
  color: #4d5669;
  margin-top: -8px;
}

.hidden-file-input {
  display: none;
}

.upload-button {
  width: 410px !important;
  height: 48px !important;
  padding: 10px 16px !important;
  border-radius: 4px !important;
  background-color: #1b459c !important;
  color: white !important;
  border: none !important;
  font-family: "Hanken Grotesk", sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: background-color 0.2s ease !important;
}

.next-bt {
  width: 410px !important;
  height: 48px !important;
  padding: 10px 16px !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #1b459c !important;
  border: 1px solid #1b459c !important;
  font-family: "Hanken Grotesk", sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.upload-button:hover {
  background-color: #153a83 !important;
}

.next-bt:hover {
  text-decoration: underline !important;
}

/* Register Header Styles */
.register-header {
  margin-bottom: 4px;
  display: none; /* Hidden by default, shown from step 2 onwards */
}

.register-header h1 {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  color: #1a263d;
  width: 410px;
  margin: 0px;
}

.register-header .progress-text {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0;
  color: #4d5669;
  width: 410px;
  height: 18px;
}

/* Error states */
.error-field {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
}

.error-field:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.custom-error {
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #dc2626;
  font-size: 14px;
  line-height: 1.5;
  font-family: "Hanken Grotesk", sans-serif;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.custom-error::before {
  content: "⚠️";
  margin-right: 8px;
}

/*BL Hide default error messages */
/*BL Not the best solution, but it works for now */
.error:empty,
.error {
  display: none !important;
}

/*BL Create Account Styles */
.signup-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.signup-logo img {
  height: auto;
  width: 410px;
}

.signup-header {
  text-align: left;
}

.signup-header h2 {
  color: #ffffff;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  margin-bottom: 8px;
}

.signup-header p {
  color: #4d5669;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin-bottom: 24px;
}

.signup-form__input {
  margin-bottom: 8px;
}

.signup-form__input label {
  color: #ffffff;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  display: block;
  margin-bottom: 8px;
  margin-top: 0px;
}

.signup-form__input input {
  width: 100%;
  height: 48px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #ffffff;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 16px;
  margin: 0px;
}

.signup-form__input input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.signup-form__input p {
  color: #4d5669;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 12px;
  line-height: 14px;
  margin: 0px;
  opacity: 0.7;
}

.signup-submit {
  width: 100%;
  height: 48px;
  background: #ffffff;
  border-radius: 4px;
  border: none;
  color: #1b459c;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
  margin-bottom: 32px;
}

.signup-submit:hover {
  background: rgba(255, 255, 255, 0.9);
}

.social-login-container {
  text-align: center;
  margin-bottom: 16px;
}

.hr-lines {
  color: #4d5669;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 14px;
  line-height: 20px;
  position: relative;
  margin: 0px;
}

.hr-lines:before,
.hr-lines:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: #4d5669;
}

.hr-lines:before {
  left: 0;
}

.hr-lines:after {
  right: 0;
}

.social-login-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.social-login-button {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 2px solid #e4e8f0;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.social-login-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.signin-p1,
.signin-p2 {
  text-align: center;
  color: #4d5669;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 24px;
}

.signin-p1 {
  margin-bottom: 16px;
}

.signin-p1 p a,
.signin-p2 p a {
  color: #4d5669;
  text-decoration: underline;
}

.signin-p1 p,
.signin-p2 p {
  margin: 0px;
}

.signin-p1 p a:hover,
.signin-p2 p a:hover {
  text-decoration: none;
  color: #4d5669;
}

button.next-step button.prev-step {
  background-color: #1b459c !important;
  font-weight: bold !important;
  margin-top: 0px !important;
  max-height: 48px !important;
}

button.next-step:hover button.prev-step:hover {
  background-color: #0048dc !important;
}

/* Step 3 Top Navigation Links */
.back-and-skip {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 24px; /* Adjust spacing as needed */
}

.step-nav-link {
  font-family: "Hanken Grotesk", sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important; /* Make them bold like other nav buttons */
  color: #1b459c !important; /* Blue color from Figma */
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
}

.step-nav-link:hover {
  text-decoration: underline !important;
}

/* Override specific skip-button styles when it's a step-nav-link */
.step-nav-link.skip-button {
  border: none !important;
  width: auto !important; /* Let it size naturally */
  height: auto !important;
  display: inline !important; /* Override flex */
  justify-content: initial !important;
  align-items: initial !important;
}
