:root {
  --2024-white: #FFF;
  --2024-grey-100: #D0D4DA;
  --2024-grey-200: #617384;
  --2024-grey-300: #536372;
  --2024-grey-500: #333A3D;
  --2024-primary-azure: #005CA9;
  --2024-primary-azure-hover: #1A76C3;
  --2024-validation-red: #D71C4F;
  --2024-notification-bg-error: #FBE9EE;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

.embed-body {
  min-height: 100vh;
  background: var(--2024-white);;
  font-family: Roboto, Arial, sans-serif;
  color: var(--2024-grey-500);
}

.embed-main {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 16px;
}

.lead-card {
  width: 100%;
  max-width: 906px;

  display: flex;
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;

  border-radius: 8px;
  border: 1px solid var(--2024-grey-100);
  background: var(--2024-white);
}

.lead-card__intro {
  width: 100%;
}

.eyebrow {
  margin: 0 0 8px 0;

  color: var(--2024-primary-azure);
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.title {
  margin: 0 0 8px 0;

  color: var(--2024-grey-500);
  font-family: Roboto, Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.lead-text {
  margin: 0;

  color: var(--2024-grey-300);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.lead-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.form-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.form-row {
  width: 100%;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  column-gap: 48px;
  align-items: flex-start;
}

.form-label {
  padding-top: 12px;

  color: var(--2024-grey-500);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

.field-wrapper {
  width: 100%;
}

.input-shell {
  display: flex;
  width: 100%;
  height: 46px;
  padding: 12px 16px;
  align-items: center;
  gap: 8px;

  border-radius: 8px;
  border: 1px solid var(--2024-grey-100);
  background: var(--2024-white);
}

.input-shell:focus-within {
  border-color: var(--2024-primary-azure);
}

.field-wrapper.invalid .input-shell {
  border-color: var(--2024-validation-red);
}

.form-control {
  flex: 1 0 0;
  min-width: 0;

  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;

  color: var(--2024-grey-500);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

.form-control::placeholder {
  color: var(--2024-grey-200);
  opacity: 1;
}

.input-clear {
  width: 24px;
  height: 24px;
  flex-shrink: 0;

  display: inline-flex;
  justify-content: center;
  align-items: center;

  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.input-clear[hidden] {
  display: none !important;
}

.field-error {
  display: none;
  width: 100%;
  min-height: 20px;
  margin: 4px 0 0 0;
  padding: 0 8px;
  align-items: center;

  border-radius: 8px;
  background: var(--2024-notification-bg-error);

  color: var(--2024-grey-300);
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.field-wrapper.invalid .field-error {
  display: flex;
}

.form-consents {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row--checkbox {
  display: block;
}

.checkbox-offset {
  max-width: 760px;
  margin-left: 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  color: var(--2024-grey-500);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  cursor: pointer;
}

.checkbox-label a {
  color: var(--2024-primary-azure);
  text-decoration: underline;
}

.checkbox-input {
  appearance: none;
  -webkit-appearance: none;

  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 1px 6px 0 0;

  border-radius: 4px;
  border: 1px solid var(--2024-grey-100);
  background: var(--2024-white);

  cursor: pointer;
}

.checkbox-input:checked {
  border-color: var(--2024-primary-azure);
  background-color: var(--2024-primary-azure);
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.45 10.15L2.25 6.95L3.2 6L5.45 8.25L10.8 2.9L11.75 3.85L5.45 10.15Z' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.checkbox-input:focus-visible {
  outline: 2px solid var(--2024-primary-azure);
  outline-offset: 2px;
}

.field-wrapper.invalid .checkbox-input {
  border-color: var(--2024-validation-red);
}

.checkbox-error {
  width: auto;
  max-width: 100%;
  margin-left: 38px;
}

.form-actions {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  display: inline-flex;
  padding: 10px 24px;
  justify-content: center;
  align-items: center;
  gap: 10px;

  border-radius: 4px;
  background: var(--2024-primary-azure);

  color: var(--2024-white);
  text-align: center;
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

.btn-primary:hover {
  background: var(--2024-primary-azure-hover);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--2024-primary-azure);
  outline-offset: 2px;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.success-box {
  width: 100%;
  padding: 24px;

  border-radius: 8px;
  background: #EEF7F1;
  color: var(--2024-grey-500);
}

.success-box h3 {
  margin: 0 0 8px 0;
  font-family: Roboto, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.success-box p {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 22px;
}

.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;

  display: none;
  justify-content: center;
  align-items: center;

  background: rgba(255, 255, 255, 0.75);
}

.loader-circle {
  width: 40px;
  height: 40px;

  border-radius: 50%;
  border: 4px solid var(--2024-grey-100);
  border-top-color: var(--2024-primary-azure);

  animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.event-notification {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;

  max-width: 420px;
  padding: 16px;
  gap: 12px;
  align-items: flex-start;

  border-radius: 8px;
  border: 1px solid var(--2024-validation-red);
  background: var(--2024-notification-bg-error);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.error-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;

  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 50%;
  background: var(--2024-validation-red);
  color: #fff;
  font-weight: 700;
}

.error-content {
  flex: 1;
}

.error-title {
  margin: 0 0 4px 0;
  font-size: 16px;
  line-height: 22px;
}

.error-message {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}

.close-btn {
  border: 0;
  background: transparent;
  cursor: pointer;

  color: var(--2024-grey-500);
  font-size: 24px;
  line-height: 24px;
}

.lead-card--state {
  gap: 0;
}

.lead-card--state .lead-card__intro {
  display: none;
}

@media (max-width: 768px) {
  .embed-main {
    padding: 16px;
  }

  .lead-card {
    padding: 16px;
    gap: 28px;
  }

  .lead-form {
    gap: 28px;
  }

  .form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .form-label {
    padding-top: 0;
  }

  .field-wrapper {
    max-width: none;
  }

  .checkbox-offset {
    max-width: none;
  }

  .form-actions {
    justify-content: stretch;
  }

  .btn-primary {
    width: 100%;
  }
}