/* Headstart — Book a Demo widget styles */

html,
body {
  padding: 0;
  margin: 2px;
  height: auto;
}

#box {
  width: 100%;
  height: auto;
  margin: auto;
  font-family: "Poppins", sans-serif;
  font-size: 10px;
}

.full-container {
  position: relative;
  /* A near-white card with the faintest blue cast, so the white fields inside
     still read as raised against it. */
  background: #f4f8fb;
  border-radius: 24px;
  padding: 8px 0 24px;
}

/* Header */
.div-reg-container {
  width: 100%;
}

.registration-title {
  margin: 0;
  padding: 18px 0 8px;
  text-align: center;
  /* The title is the one place the brand gradient appears as text. The
     background-clip pair is what paints the glyphs with it; the colour under
     it is the fallback wherever clipping is unsupported. */
  color: #1c9fe0;
  background: linear-gradient(90deg, #1b8fd6, #23b6e8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Form body */
.input-fields-container {
  padding: 8px 26px 0;
}

.input-group {
  display: flex;
  align-items: center;
  padding-top: 14px;
}

/*
 * Inputs don't inherit the widget font by default. Declaring family and weight
 * here keeps every field consistent once it holds a value.
 */
.input-group input {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #e3e9ef;
  border-radius: 14px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  /* Matches the card's own soft elevation rather than a hard drop shadow. */
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.04);
}

.input-group input:focus {
  border-color: #1c9fe0;
  box-shadow: 0 0 0 3px rgba(28, 159, 224, 0.12);
}

/*
 * Placeholder text — and only placeholder text — sits lighter and greyer, so
 * an empty field reads as a prompt and a filled one reads as an answer.
 */
.input-group input::placeholder {
  font-weight: 300;
  color: #9aa5b1;
  opacity: 1; /* Firefox dims ::placeholder by default. */
}

/* Hide number-input spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Submit button */
.button-box {
  display: block;
  text-align: center;
  padding-top: 22px;
}

.register-button,
.disable-button {
  position: relative;
  display: block;
  width: 100%;
  z-index: 1;
  padding: 15px 18px;
  color: white;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
}

.register-button {
  background: linear-gradient(90deg, #1b8fd6, #23b6e8);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(27, 143, 214, 0.32);
}

.register-button:hover {
  background: linear-gradient(90deg, #167cbc, #1ba4d6);
}

/*
 * The disabled state drops to grey: on a form this blue, colour is the only
 * thing separating "ready to submit" from "not yet".
 */
.disable-button {
  background: #c9d2da;
  color: #7c8892;
  pointer-events: none;
}

/* Error messages */
.error-message {
  margin: 6px 0 0 8px;
  color: rgb(173, 51, 51);
  font-size: 11px;
  display: none;
}

.api-response-error-div {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
}

#api-response-error-message,
#api-response-error-message-text {
  position: relative;
  z-index: 2;
  margin: 0;
  text-align: center;
  color: #ad3333;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  display: none;
}

#api-response-error-message-text {
  cursor: pointer;
}

/* Loading spinner overlay */
#spinner-container-div {
  position: absolute;
  display: none;
  z-index: 999;
  height: 100%;
  width: 100%;
  background-color: rgb(89, 85, 85);
  opacity: 75%;
  border-radius: 24px;
}

.spin::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  height: 40px;
  width: 40px;
  margin-top: 14vh;
  z-index: 999;
  border: solid 5px #cfd0d1;
  border-bottom-color: #1c87c9;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
  animation: 1.5s linear infinite spinner;
  animation-play-state: inherit;
}

@keyframes spinner {
  0% {
    transform: translate3d(-50%, -50%, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(-50%, -50%, 0) rotate(360deg);
  }
}

/* The spinner sits slightly higher on very tall/short viewports */
@media (max-width: 1240px) {
  .spin::before {
    margin-top: 15vh;
  }
}

@media (min-width: 1241px) {
  .spin::before {
    margin-top: 13vh;
  }
}

@media (max-width: 330px) {
  .error-message {
    font-size: 10px;
  }
}
