/* Embedded upload flow: visible in the page and resilient at narrow widths. */
.modal.modal--embedded {
  position: relative;
  inset: auto;
  z-index: auto;
  display: flex;
  width: 100%;
  height: auto;
  overflow: visible;
  align-items: stretch;
  background: transparent;
}

.modal--embedded .modal__container {
  width: 100%;
  max-width: 1060px;
  height: auto;
  min-height: 510px;
  margin: 0 auto;
  padding: 30px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 24px 64px rgba(20, 39, 57, 0.22);
}

.modal--embedded .modal__header {
  display: none;
}

.modal--embedded .step__modal-wrapper {
  flex: 1;
  width: 100%;
  max-width: 820px;
  min-height: 0;
  margin-top: 22px;
}

.modal--embedded .modal__steps,
.modal--embedded .step,
.modal--embedded .form {
  min-width: 0;
}

.modal--embedded .modal__footer {
  width: 100%;
  margin-top: auto;
  padding-top: 24px;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.modal--embedded .form--progressive {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 720px;
}

.modal--embedded .step--1,
.modal--embedded .step--2 {
  width: 100%;
  max-width: 760px;
}

.modal--embedded .step--1 {
  margin-bottom: 0;
}

.modal--embedded .checkbox-group {
  width: 100%;
  max-width: 720px;
  gap: 14px;
}

.modal--embedded .download__button--has-files {
  width: 100%;
  max-width: 720px;
  margin-bottom: 12px;
  padding: 12px 18px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border: 1px solid rgba(200, 242, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  text-align: left;
}

.modal--embedded .download__button--has-files > div {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal--embedded .download__button--has-files .button__download-img {
  width: 20px;
  margin: 0;
}

.modal--embedded .download__button--has-files .download__button-text,
.modal--embedded .download__button--has-files .download__button-additional-text {
  margin: 0;
}

.modal--embedded .filelist-panel {
  width: 100%;
  max-width: 720px;
  margin: 0 0 8px;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(200, 242, 255, 0.22);
  border-radius: 14px;
  background: rgba(17, 49, 72, 0.28);
}

.modal--embedded .filelist-panel[hidden] {
  display: none;
}

.modal--embedded .filelist__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(200, 242, 255, 0.13);
}

.modal--embedded .filelist__heading {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.modal--embedded .filelist__count {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(95, 187, 214, 0.2);
  color: #ddf7ff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.modal--embedded .filelist {
  display: flex;
  max-height: 174px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex-direction: column;
  list-style: none;
  scrollbar-color: rgba(200, 242, 255, 0.35) transparent;
  scrollbar-width: thin;
}

.modal--embedded .filelist__item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 10px 11px 10px 13px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.modal--embedded .filelist__item + .filelist__item {
  border-top: 1px solid rgba(200, 242, 255, 0.1);
}

.modal--embedded .filelist__item--invalid {
  background: rgba(153, 34, 48, 0.32);
}

.modal--embedded .filelist__icon {
  display: flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(95, 187, 214, 0.16);
  color: #c8f2ff;
}

.modal--embedded .filelist__content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.modal--embedded .filelist__name {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal--embedded .filelist__meta {
  color: rgba(200, 242, 255, 0.76);
  font-size: 11px;
  line-height: 1.25;
}

.modal--embedded .filelist__item--invalid .filelist__meta {
  color: #ffd4d8;
}

.modal--embedded .filelist__remove {
  display: flex;
  width: 40px;
  height: 40px;
  padding: 0;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(221, 247, 255, 0.76);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.modal--embedded .filelist__remove:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal--embedded .filelist__remove:active {
  transform: scale(0.94);
}

.modal--embedded .filelist__status {
  width: 100%;
  max-width: 720px;
  min-height: 18px;
  margin: 0 0 12px;
  color: rgba(200, 242, 255, 0.82);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.modal--embedded .filelist__status--error {
  color: #ffb5bd;
}

.modal--embedded .checkbox {
  align-items: flex-start;
  gap: 12px;
}

.modal--embedded .checkbox__circle {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 18px;
}

.modal--embedded .checkbox__input:checked + .checkbox__circle::after {
  width: 9px;
  height: 9px;
}

.modal--embedded .form__group--email {
  width: 100%;
}

.modal--embedded .form__required {
  display: inline-flex;
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #34425d;
  background: #c8f2ff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  vertical-align: 2px;
}

.optional-details {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(200, 242, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.optional-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
}

.optional-details summary::-webkit-details-marker {
  display: none;
}

.optional-details summary small {
  margin-left: 6px;
  color: #c8f2ff;
  font-size: 12px;
  font-weight: 400;
}

.optional-details__chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 1.5px solid #c8f2ff;
  border-bottom: 1.5px solid #c8f2ff;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.optional-details[open] .optional-details__chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.optional-details__hint {
  max-width: 55ch;
  margin: 0;
  padding: 0 15px 14px;
  color: #d8edf4;
  font-size: 13px;
  line-height: 1.45;
}

.optional-details__fields {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0 15px 16px;
}

.optional-details .form__group--wrapper {
  gap: 15px;
}

.optional-details .form__group--wrapper > div {
  width: 50%;
}

.optional-details summary:focus-visible,
.modal--embedded button:focus-visible,
.modal--embedded input:focus-visible,
.modal--embedded textarea:focus-visible {
  outline: 3px solid rgba(200, 242, 255, 0.75);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .modal--embedded .modal__container {
    width: 100%;
    min-height: 520px;
    padding: 26px clamp(18px, 5vw, 32px);
    border-radius: 28px;
  }

  .modal--embedded .step__modal-wrapper {
    margin-top: 16px;
  }

  .modal--embedded .step__title {
    margin-top: 0;
    margin-bottom: 22px !important;
    font-size: clamp(28px, 8vw, 38px);
    letter-spacing: -0.035em;
  }

  .modal--embedded .step--1,
  .modal--embedded .step--2 {
    width: 100%;
    max-width: 500px;
    margin-bottom: 0;
  }

  .modal--embedded .form {
    gap: 18px;
  }

  .modal--embedded .form__input,
  .modal--embedded .form__textarea {
    font-size: 16px;
  }

  .modal--embedded .modal__footer--left {
    width: auto;
  }

  .modal--embedded .modal__footer--right {
    width: auto;
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .modal--embedded .modal__container {
    min-height: 540px;
    padding: 24px 16px;
    border-radius: 24px;
  }

  .modal--embedded .download__button--primary {
    width: 100%;
    max-width: 310px;
    padding: 16px 20px;
    box-sizing: border-box;
  }

  .modal--embedded .download__button--has-files {
    max-width: 100%;
    padding: 11px 14px;
  }

  .modal--embedded .download__button--has-files > div {
    display: block;
  }

  .modal--embedded .download__button--has-files .download__button-additional-text {
    margin-top: 2px;
  }

  .modal--embedded .filelist__item {
    padding: 8px 8px 8px 10px;
  }

  .modal--embedded .filelist__remove {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .modal--embedded .filelist__status {
    text-align: left;
  }

  .modal--embedded .checkbox-group {
    width: 100%;
    max-width: 100%;
    gap: 16px;
  }

  .modal--embedded .checkbox {
    gap: 11px;
  }

  .modal--embedded .checkbox__text {
    font-size: 12px;
  }

  .modal--embedded .modal__footer {
    gap: 14px;
    padding-top: 20px;
  }

  .modal--embedded .modal__footer--left,
  .modal--embedded .modal__footer--right {
    width: 100%;
    margin-left: 0;
  }

  .modal--embedded .modal__footer--right {
    justify-content: stretch;
  }

  .modal--embedded .modal__footer .button--left,
  .modal--embedded .modal__footer .button--right {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 44px;
  }

  .modal--embedded .progress {
    width: min(160px, 70%);
  }

  .optional-details .form__group--wrapper {
    flex-direction: column;
  }

  .optional-details .form__group--wrapper > div {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal--embedded .modal__container {
    animation: none;
  }

  .optional-details__chevron {
    transition: none;
  }
}

/* Keep navigation labels optically centered at every inherited breakpoint. */
.modal--embedded .modal__footer .button--left,
.modal--embedded .modal__footer .button--right {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 44px;
  padding-block: 0;
  line-height: 1;
  text-align: center;
  transform: none;
}

/* Keep the embedded form on the same readable type scale as the landing page. */
.modal--embedded {
  font-family: "Rubik", Arial, sans-serif;
  font-size: 16px;
}

.modal--embedded .header__step,
.modal--embedded .modal__step {
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.modal--embedded .form__label {
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.modal--embedded .form__required {
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
}

.modal--embedded .form__input,
.modal--embedded .form__textarea,
.modal--embedded input::placeholder,
.modal--embedded textarea::placeholder {
  font-family: "Rubik", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
}

.modal--embedded .form__input,
.modal--embedded .form__textarea {
  min-height: 46px;
}

.modal--embedded .form__textarea {
  height: auto;
  min-height: 84px;
}

.modal--embedded .form__radio-text {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
}

.modal--embedded .form__error {
  position: static;
  margin-top: -4px;
  font-size: 13px;
  line-height: 1.4;
}

.modal--embedded .optional-details summary {
  font-size: 15px;
  line-height: 1.4;
}

.modal--embedded .optional-details summary small {
  font-size: 12px;
  line-height: 1.3;
}

.modal--embedded .optional-details__hint {
  font-size: 13px;
  line-height: 1.5;
}

.modal--embedded .download__button-text {
  font-size: 15px;
  line-height: 1.35;
}

.modal--embedded .download__button-additional-text {
  font-size: 13px;
  line-height: 1.35;
}

.modal--embedded .checkbox__text {
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0;
}

.modal--embedded .modal__footer .button--left,
.modal--embedded .modal__footer .button--right {
  font-size: 14px;
}

.modal--embedded .modal__footer .button--payment {
  width: auto;
  min-width: 174px;
  padding-inline: 22px;
}

.modal--embedded .payment__guarantee-title {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  white-space: normal;
  text-wrap: wrap;
}

.modal--embedded .payment__guarantee-desc,
.modal--embedded .payment__description {
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0;
}

.modal--embedded .payment__subscription-text,
.modal--embedded .payment__bot-button {
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0;
}

.modal--embedded .payment__pay-button,
.modal--embedded .payment .button__text {
  font-size: 14px;
}

.modal--embedded .loader__text,
.modal--embedded .download-block__hint,
.modal--embedded .status-error__text,
.modal--embedded .pay-overlay__desc {
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .modal--embedded .form__label,
  .modal--embedded .optional-details summary {
    font-size: 14px;
  }

  .modal--embedded .optional-details summary {
    gap: 10px;
  }

  .modal--embedded .payment__guarantee {
    gap: 9px;
  }

  .modal--embedded .modal__footer .button--left {
    flex: 0 0 84px;
  }

  .modal--embedded .modal__footer .button--right {
    flex: 1 1 auto;
  }

  .modal--embedded .modal__footer .button--payment {
    min-width: 0;
    padding-inline: 12px;
  }
}
