/* === Reset i podstawowe style === */

#tutlo-quiz-vanilla-root {
  font-family: 'Lexend Deca', sans-serif;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  /* background-color: rgb(226, 232, 240); */
  position: relative;
  min-height: 500px;
}

.quiz-main-container {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 0;
  transition: opacity 0.3s ease-in-out;
}

@media (min-width: 760px) {
  #tutlo-quiz-vanilla-root {
    padding: 3rem 2rem;
  }
}

/* === Progress Bar === */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: rgba(253, 209, 0, 0.25);
  z-index: 1000;
}

.progress-bar-fill {
  height: 100%;
  width: 100%;
  background-color: rgb(253, 209, 0);
  transform-origin: left;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.progress-bar::before {
  content: attr(data-progres);
  position: absolute;
  left: var(--progress-percent);
  top: 0;
  padding: 0.625em 1.375em;
  background-color: rgb(30, 41, 59);
  color: rgb(249, 246, 241);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  border-radius: 100px;
  transform: translate(-50%, -10px) scale(0.98);
  opacity: 0;
  transition: opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  white-space: nowrap;
}

.progress-bar:hover::before {
  opacity: 1;
  transform: translate(-50%, 9px) scale(1);
}

.progress-bar::after {
  content: "";
  position: absolute;
  left: var(--progress-percent);
  top: 0;
  height: 0;
  width: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid rgb(30, 41, 59);
  transform: translate(-50%, -8px) scale(0.9);
  opacity: 0;
  transition: opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-bar:hover::after {
  opacity: 1;
  transform: translate(-50%, 5px) scale(1);
}

@media (prefers-reduced-motion: reduce) {

  .progress-bar-fill,
  .progress-bar::before,
  .progress-bar::after {
    transition: none !important;
    animation: none !important;
  }
}

/* === Start Page === */
.start-page-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  width: 100%;
  box-shadow: 0 0 21px rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  overflow: hidden;
}

.start-page-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2rem;
}

.start-page-logo {
  width: 216px;
  height: auto;
  margin-bottom: 1.25em;
}

.start-page-title {
  font-size: 2.75rem;
  margin-bottom: 0.6em;
  text-align: center;
  color: #000;
  font-weight: 600;
}

.start-page-info {
  font-size: 1.125rem;
  line-height: 1.5em;
  width: 75%;
  text-align: center;
  color: #000;
}

@media (min-width: 1024px) {
  .start-page-info {
    font-size: 2rem;
    line-height: 2.5rem;
  }
}

.start-page-btn {
  font-family: inherit;
  font-size: 1.75rem;
  background-color: #fdd100;
  padding: 0.875em 1.75em;
  margin-top: 1em;
  margin-bottom: 1em;
  border: none;
  border-radius: 0.65em;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 4px 0px;
  cursor: pointer;
  transition: padding 0.4s ease-in-out;
}

.start-page-btn:hover {
  padding: 0.875em 2.75em;
}

.start-page-time-info {
  font-size: 1.375rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0;
  color: #000;
}

.start-page-gray-bar {
  width: 100%;
  height: 85px;
  background-color: #f4f5f9;
}

@media (min-width: 760px) {
  .start-page-container {
    max-width: 840px;
  }

  .start-page-content {
    width: 85%;
  }
}

/* === Single Question === */
.tutlo-quiz-vanilla-container .single-question-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 21px rgba(0, 0, 0, 0.45);
  padding: 2rem;
}

.tutlo-quiz-vanilla-container .single-question-title {
  font-size: 14px;
  max-width: 600px;
  width: 100%;
  margin-top: 1em;
  margin-bottom: 2em;
  text-align: center;
  color: #000;
  font-weight: 600;
}

.tutlo-quiz-vanilla-container .single-question-options {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  gap: 1rem;
}

.tutlo-quiz-vanilla-container .single-question-option {
  position: relative;
}

.tutlo-quiz-vanilla-container .single-question-option:last-child {
  margin-bottom: 2em;
}

.tutlo-quiz-vanilla-container .single-question-option input {
  position: absolute;
  left: 50%;
  top: 50%;
  opacity: 0;
}

.tutlo-quiz-vanilla-container .single-question-option-label {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fdd100;
  width: 100%;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.375em 1.5em;
  border-radius: 10px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  color: #000;
  font-size: 12px;
}

@media (min-width: 1024px) {
  .tutlo-quiz-vanilla-container .single-question-option-label {
    font-size: 14px;
  }
}

.tutlo-quiz-vanilla-container .single-question-option-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3);
}

@media (min-width: 760px) {
  .tutlo-quiz-vanilla-container .single-question-container {
    max-width: 840px;
  }
}

@media (min-width: 664px) {
  .tutlo-quiz-vanilla-container .single-question-title {
    font-size: 16px;
  }

  .tutlo-quiz-vanilla-container .single-question-option-label {
    padding: 1.375em 2.25em;
  }
}

/* === HubSpot Form === */
.tutlo-quiz-vanilla-container .embed-form-super-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  width: 100%;
  box-shadow: 0 0 21px rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 2.5rem 1.25rem;
}

@media (min-width: 760px) {
  .tutlo-quiz-vanilla-container .embed-form-super-wrapper {
    max-width: 840px;
    padding: 3.75rem 2.5rem;
  }
}

.tutlo-quiz-vanilla-container .embed-form-super-wrapper .hs-form {
  width: 100%;
  max-width: 520px;
  margin: auto;
}

.tutlo-quiz-vanilla-container .embed-form-super-wrapper .hs-form .hs-form-field {
  margin-bottom: 15px;
  padding: 0 10px;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .tutlo-quiz-vanilla-container .hs-form .hs-form-field {
    width: 100%;
  }
}

.tutlo-quiz-vanilla-container .embed-form-super-wrapper .hs-form ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tutlo-quiz-vanilla-container .embed-form-super-wrapper .hs-form ul li {
  margin-top: 4px;
  width: 100%;
  line-height: 1;
}

.tutlo-quiz-vanilla-container .hs-form-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.tutlo-quiz-vanilla-container .hs-firstname label,
.tutlo-quiz-vanilla-container .hs-email label {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0, 0, 0, 0.5);
  font-weight: normal;
  font-size: 0.875rem;
  pointer-events: none;
  transition: all 0.3s ease;
  padding: 1em;
}

/* .tutlo-quiz-vanilla-container .hs_phone.hs-form-field {
  display: grid;
  grid-template-columns: 150px 1fr;

} */
.tutlo-quiz-vanilla-container .hs-phone:has(input:not(:placeholder-shown)) label {
  z-index: 0;
}

.tutlo-quiz-vanilla-container .hs-form .hs-input:not([type=checkbox]) {
  font-size: 0.8rem;
  flex-direction: row;
}

.tutlo-quiz-vanilla-container .hs-phone label {
  grid-column: 2 / -1;
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0, 0, 0, 0.5);
  font-weight: normal;
  font-size: 0.875rem;
  pointer-events: none;
  transition: all 0.3s ease;
  padding: 1em;
}

.tutlo-quiz-vanilla-container .hs_phone .input {
  grid-column: 1 / -1;
}

.tutlo-quiz-vanilla-container .hs-form-field .hs-error-msgs label {
  display: none;
}

.embed-form-super-wrapper .hs-form input[type="text"],
.embed-form-super-wrapper .hs-form input[type="email"],
.embed-form-super-wrapper .hs-form input[type="password"],
.embed-form-super-wrapper .hs-form input[type="number"],
.embed-form-super-wrapper .hs-form input[type="tel"],
.embed-form-super-wrapper .hs-form textarea {
  color: rgba(0, 0, 0, 0.8);
  background-color: rgb(255, 255, 255);
  font-size: 0.875rem;
  border: 1px solid rgb(253, 209, 0);
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 4px 0px inset;
  padding: 1.5em 1.125em 0.875em 1.125em;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.embed-form-super-wrapper .hs-form input[type="text"]:focus,
.embed-form-super-wrapper .hs-form input[type="email"]:focus,
.embed-form-super-wrapper .hs-form input[type="tel"]:focus,
.embed-form-super-wrapper .hs-form textarea:focus {
  outline: 2px solid #fdd100;
  outline-offset: 0px;
}

.hs-firstname:has(input:focus) label,
.hs-firstname:has(input:not(:placeholder-shown)) label,
.hs-email:has(input:focus) label,
.hs-email:has(input:not(:placeholder-shown)) label {
  top: 0px;
  transform: translateY(0);
  font-size: 0.625rem;
  left: 1.75em;
  color: rgba(0, 0, 0, 0.8);
  font-weight: 500;
}

.hs-phone:has(input:focus) label,
.hs-phone:has(input:not(:placeholder-shown)) label {
  top: 0px;
  transform: translateY(0);
  font-size: 0.625rem;
  left: 3.5em;
  color: rgba(0, 0, 0, 0.8);
  font-weight: 500;
  z-index: 100;
}

.embed-form-super-wrapper .hs-form input::placeholder,
.embed-form-super-wrapper .hs-form textarea::placeholder {
  opacity: 0;
  color: transparent;
}

.actions {
  display: flex;
  justify-content: center;
}

.embed-form-super-wrapper .hs-form input[type="submit"],
.embed-form-super-wrapper .hs-form input[type="reset"] {
  margin-top: 0.625em;
  padding: 0.75em 2em;
  background-color: #fdd100;
  color: rgba(0, 0, 0, 0.8);
  font-size: 1.25rem;
  font-weight: 500;
  border: 1px solid #fdd100;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.embed-form-super-wrapper .hs-form input[type="submit"]:hover,
.embed-form-super-wrapper .hs-form input[type="reset"]:hover {
  transform: translateY(-2px);
  padding: 0.75em 2.75em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.embed-form-super-wrapper .hs-form input[type="submit"]:active,
.embed-form-super-wrapper .hs-form input[type="reset"]:active {
  transform: translateY(0);
}

.hs-main-font-element {
  font-family: "Lato", Arial, sans-serif;
  font-size: 0.875rem;
  color: #ff7373;
  margin-left: 1em;
}

.submitted-message.hs-main-font-element {
  font-family: "Lato", Arial, sans-serif;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.8);
  margin-top: 1em;
  margin-bottom: 1em;
}

.grecaptcha-badge {
  box-shadow: none;
  width: auto;
  height: auto;
}

.fn-date-picker .pika-button {
  text-align: center;
}

.hs-richtext {
  font-size: 10px;
  line-height: 1.5;
  padding: 0.125em 2em;
  margin: 0;
}

.legal-consent-container a {
  text-decoration: none;
}

.legal-consent-container a span {
  font-size: 10px !important;
}

.legal-consent-container .hs-form-booleancheckbox-display>span {
  margin-left: 10px !important;
  font-size: 10px !important;
}

/* Checkboxy */
.embed-form-super-wrapper .hs-form-booleancheckbox-display {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.embed-form-super-wrapper .hs-form-booleancheckbox-display input[type="checkbox"] {
  appearance: none;
  width: 27px;
  height: 27px;
  min-width: 20px;
  min-height: 20px;
  border: 1px solid rgb(253, 209, 0);
  border-radius: 4px;
  background-color: rgb(255, 255, 255);
  box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 4px 0px inset;
  cursor: pointer;
  position: relative;
  margin-top: 0.125rem;
  transition: all 0.2s ease;
}

.embed-form-super-wrapper .hs-form-booleancheckbox-display input[type="checkbox"]:checked {
  background-color: rgb(253, 209, 0);
  border-color: rgb(253, 209, 0);
}

.embed-form-super-wrapper .hs-form-booleancheckbox-display input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(0, 0, 0, 0.8);
  font-size: 0.875rem;
  font-weight: bold;
}

.embed-form-super-wrapper .hs-form-booleancheckbox-display input[type="checkbox"]:focus {
  outline: 2px solid #fdd100;
  outline-offset: 2px;
}

.embed-form-super-wrapper .hs-form-booleancheckbox-display>span {
  flex: 1;
  font-size: 0.75rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.8);
  margin-left: 0;
}

@media (min-width: 1024px) {
  .embed-form-super-wrapper .hs-form-booleancheckbox-display>span {
    line-height: 1.5;
  }
}

.embed-form-super-wrapper .hs-form-booleancheckbox-display>span p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
}

.embed-form-super-wrapper .hs-form-booleancheckbox-display a {
  text-decoration: underline;
  color: inherit;
  word-wrap: break-word;
  white-space: pre-line;
  overflow-wrap: break-word;
}

.embed-form-super-wrapper .hs-form-booleancheckbox-display a:hover {
  color: rgba(0, 0, 0, 1);
}

.embed-form-super-wrapper .hs-form-booleancheckbox-display .hs-form-required {
  color: rgba(0, 0, 0, 0.8);
  margin-left: 0.25rem;
}

@media (min-width: 760px) {

  .embed-form-super-wrapper .hs-form-booleancheckbox-display>span,
  .embed-form-super-wrapper .hs-form-booleancheckbox-display>span p {
    font-size: 0.8125rem;
  }
}

/* Pole telefonu z selektorem kraju */
.embed-form-super-wrapper .hs-fieldtype-intl-phone {
  display: flex;
  align-items: stretch;
  position: relative;
  border: 1px solid rgb(253, 209, 0) !important;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 4px 0px inset;
  background-color: rgb(255, 255, 255);
  overflow: hidden;
}

.embed-form-super-wrapper .hs-fieldtype-intl-phone:focus-within {
  outline: 2px solid #fdd100;
  outline-offset: 0px;
}

.quiz-main-container .embed-form-super-wrapper .hs-fieldtype-intl-phone select {
  /* border: none; */
  border-right: 1px solid rgb(253, 209, 0);
  border-radius: 0 !important;
  box-shadow: none;
  background-color: transparent;
  padding: 1.625em 0.75em 0.875em 1.125em;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
  outline: none;
  position: relative;
  z-index: 10;
  transition: none;
  box-sizing: border-box;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

@media (max-width: 760px) {
  .quiz-main-container .embed-form-super-wrapper .hs-fieldtype-intl-phone select {
    min-width: 80px;
    width: 80px;
  }
}

.embed-form-super-wrapper .hs-fieldtype-intl-phone select:focus {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  min-width: unset !important;
  max-width: unset !important;
  height: auto;
  min-height: 50px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  border: 1px solid rgb(253, 209, 0);
  border-right: 1px solid rgb(253, 209, 0);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: white;
  padding: 0.5rem;
  outline: none;
  transition: none;
}

.embed-form-super-wrapper .hs-fieldtype-intl-phone select:not(:focus):hover {
  background-color: rgba(253, 209, 0, 0.05);
}

.embed-form-super-wrapper .hs-fieldtype-intl-phone select option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.8);
  background-color: white;
}

.embed-form-super-wrapper .hs-fieldtype-intl-phone select option:hover,
.embed-form-super-wrapper .hs-fieldtype-intl-phone select option:checked {
  background-color: #eef2f6;
}

.embed-form-super-wrapper .hs-fieldtype-intl-phone input[type="tel"] {
  flex: 1;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background-color: transparent;
  padding: 1.625em 1.125em 0.875em 1.125em;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.8);
  outline: none;
}

.embed-form-super-wrapper .hs-fieldtype-intl-phone input[type="tel"]:focus {
  outline: none;
  box-shadow: none;
}

.embed-form-super-wrapper .hs-phone label {
  display: inline;
}

@media (min-width: 760px) {

  .embed-form-super-wrapper .hs-fieldtype-intl-phone select,
  .embed-form-super-wrapper .hs-fieldtype-intl-phone input[type="tel"] {
    font-size: 0.875rem;
  }
}

/* Style błędów walidacji */
.embed-form-super-wrapper .hs-error-msgs {
  display: none;
}

.embed-form-super-wrapper.form-submitted .hs-form input.error,
.embed-form-super-wrapper.form-submitted .hs-form input.invalid,
.embed-form-super-wrapper.form-submitted .hs-form textarea.error,
.embed-form-super-wrapper.form-submitted .hs-form textarea.invalid,
.embed-form-super-wrapper.form-submitted .hs-form select.error,
.embed-form-super-wrapper.form-submitted .hs-form select.invalid {
  border-color: #ff7373 !important;
}

.embed-form-super-wrapper.form-submitted .hs-fieldtype-intl-phone.error,
.embed-form-super-wrapper.form-submitted .hs-fieldtype-intl-phone:has(input.error),
.embed-form-super-wrapper.form-submitted .hs-fieldtype-intl-phone:has(input.invalid) {
  border-color: #ff7373 !important;
}

.embed-form-super-wrapper.form-submitted .hs-fieldtype-intl-phone.error select,
.embed-form-super-wrapper.form-submitted .hs-fieldtype-intl-phone:has(input.error) select,
.embed-form-super-wrapper.form-submitted .hs-fieldtype-intl-phone:has(input.invalid) select {
  border-right: 1px solid #ff7373;
}

.embed-form-super-wrapper.form-submitted .hs-form-field.error label,
.embed-form-super-wrapper.form-submitted .hs-form-field:has(input.error) label,
.embed-form-super-wrapper.form-submitted .hs-form-field:has(input.invalid) label,
.embed-form-super-wrapper.form-submitted .hs-form-field:has(textarea.error) label,
.embed-form-super-wrapper.form-submitted .hs-form-field:has(textarea.invalid) label,
.embed-form-super-wrapper.form-submitted .hs-form-field:has(.hs-error-msgs) label {
  color: #ff7373 !important;
}

.embed-form-super-wrapper.form-submitted .hs-fieldtype-booleancheckbox:has(ul.hs-error-msgs) input[type="checkbox"] {
  border-color: #ff7373 !important;
}

.embed-form-super-wrapper.form-submitted .hs-fieldtype-booleancheckbox:has(ul.hs-error-msgs) .hs-form-booleancheckbox-display>span {
  color: #ff7373 !important;
}

@media screen and (max-width: 1023px) {
  .quiz-main-container .hs-form .hs-input:not([type=checkbox]) {
    padding: 1.5rem 1.4rem !important;
  }

  .quiz-main-container .hs-form .hs-richtext p {
    color: #000000cc;
    line-height: 12px;
  }
}

.quiz-main-container .hubspot-form-headline {
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: #000;
  font-weight: bold;
  /* padding-top: 30px; */
  padding-bottom: 30px;
}


@media screen and (min-width: 1024px) {
  .quiz-main-container .hubspot-form-headline {
    font-size: 24px;
    line-height: 28px;
  }
}

.quiz-main-container .hs-form .hs-input.hs-fieldtype-intl-phone {
  padding: 0 !important;
}

.quiz-main-container .embed-form-super-wrapper .hs-form-booleancheckbox-display input[type="checkbox"]:checked::after {
  color: transparent !important;
}

/* Kids Theme Styles */
.tutlo-quiz-vanilla-container.theme-kids .start-page-btn,
.tutlo-quiz-vanilla-container.theme-kids .single-question-option-label,
.tutlo-quiz-vanilla-container.theme-kids .embed-form-super-wrapper .hs-form input[type="submit"],
.tutlo-quiz-vanilla-container.theme-kids .embed-form-super-wrapper .hs-form input[type="reset"] {
  font-family: 'Inter', sans-serif;
  color: rgb(255, 255, 255);
  font-size: 14px;
  background-color: rgb(38, 143, 234);
  border-radius: 10px;
  border: 1px solid rgb(38, 143, 234);
  --outline-color: #268FEA;
  transition: all 0.3s ease;
}

.tutlo-quiz-vanilla-container.theme-kids .start-page-btn {
  font-size: 1.75rem;
  /* Restore default size for start button */
}

.tutlo-quiz-vanilla-container.theme-kids .start-page-btn:hover,
.tutlo-quiz-vanilla-container.theme-kids .single-question-option-label:hover,
.tutlo-quiz-vanilla-container.theme-kids .embed-form-super-wrapper .hs-form input[type="submit"]:hover,
.tutlo-quiz-vanilla-container.theme-kids .embed-form-super-wrapper .hs-form input[type="reset"]:hover {
  background-color: #1a7ac8;
  border-color: #1a7ac8;
  transform: translateY(-2px);
}

.tutlo-quiz-vanilla-container.theme-kids .single-question-option input:checked+.single-question-option-label {
  background-color: #1565c0;
  border-color: #1565c0;
}