.epd-fos {
  padding: 40px 0 90px;
}

.epd-fos .container {
  position: relative;
}

.epd-fos__shell {
  position: relative;
  margin: 0 auto;
}

.epd-fos__glow {
  position: absolute;
  right: 98px;
  bottom: -6px;
  left: 98px;
  height: 160px;
  border-radius: 25px;
  background: linear-gradient(83.59deg, #632b47 -0.22%, #220c2c 48.07%, #664479 89.82%);
  filter: blur(39.55px);
  opacity: 0.75;
}

.epd-fos__card {
  position: relative;
  z-index: 1;
  padding: 70px 70px 44px;
  border-radius: 25px;
  background: linear-gradient(83.59deg, #632b47 -0.22%, #220c2c 48.07%, #664479 89.82%);
  color: #fdfbfa;
}

.epd-fos__head {
  margin-bottom: 44px;
  text-align: center;
}

.epd-fos__title {
  margin: 0;
  color: #fdfbfa;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.epd-fos__subtitle {
  margin: 14px 0 0;
  color: rgba(253, 251, 250, 0.6);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.epd-fos__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.epd-fos__field {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.epd-fos__field--full {
  grid-column: 1 / -1;
}

.epd-fos__label {
  margin-bottom: 8px;
  color: rgba(253, 251, 250, 0.88);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.epd-fos__control {
  width: 100%;
  min-height: 48px;
  padding: 14px 20px;
  border: 1px solid rgba(253, 251, 250, 0.38);
  border-radius: 24px;
  color: #fdfbfa;
  font-size: 14px;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.epd-fos__control::placeholder {
  color: rgba(253, 251, 250, 0.88);
}

.epd-fos__control:focus {
  border-color: rgba(253, 251, 250, 0.75);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(253, 251, 250, 0.08);
}

.epd-fos__control:disabled {
  color: rgba(253, 251, 250, 0.45);
  cursor: not-allowed;
  opacity: 1;
}

.epd-fos__select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(253, 251, 250, 0.88) 50%),
    linear-gradient(135deg, rgba(253, 251, 250, 0.88) 50%, transparent 50%);
  background-position:
    calc(100% - 24px) calc(50% - 2px),
    calc(100% - 18px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.epd-fos__select option {
  color: #442357;
}

.epd-fos__meta {
  display: flex;
  margin-top: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.epd-fos__agree {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.epd-fos__agree-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.epd-fos__agree-box {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid #fdfbfa;
  border-radius: 4px;
  background: rgba(253, 251, 250, 0.15);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.epd-fos__agree-box::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #2b1138;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg);
  transition: opacity 0.2s ease;
}

.epd-fos__agree-input:checked + .epd-fos__agree-box {
  border-color: #fdfbfa;
  background: #fdfbfa;
}

.epd-fos__agree-input:checked + .epd-fos__agree-box::after {
  opacity: 1;
}

.epd-fos__agree-text {
  color: #fdfbfa;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.epd-fos__actions {
  flex: 0 0 auto;
}

.epd-fos__button {
  min-width: 220px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(101.64deg, #d083f5 33.29%, #ae27d0 115.35%);
  box-shadow: 0 11px 22px rgba(191, 59, 224, 0.2);
}

.epd-fos__button:hover,
.epd-fos__button:focus {
  color: #ae27d0;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(101.64deg, #d083f5 33.29%, #ae27d0 115.35%) border-box;
}

.epd-fos__hint {
  margin: 18px 0 0;
  color: rgba(253, 251, 250, 0.7);
  font-size: 12px;
  line-height: 1.5;
}

.epd-fos__status {
  min-height: 22px;
  margin-top: 12px;
  color: #fdfbfa;
  font-size: 12px;
  line-height: 1.5;
}

.epd-fos__status.is-error {
  color: #ffd7cf;
}

.epd-fos__status.is-success {
  color: #d8ffd9;
}

@media (max-width: 991.98px) {
  .epd-fos {
    padding: 32px 0 72px;
  }

  .epd-fos__card {
    padding: 52px 32px 36px;
  }

  .epd-fos__title {
    font-size: 36px;
  }

  .epd-fos__subtitle {
    font-size: 18px;
  }

  .epd-fos__meta {
    flex-direction: column;
    align-items: stretch;
  }

  .epd-fos__actions {
    width: 100%;
  }

  .epd-fos__button {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .epd-fos__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .epd-fos__field--full {
    grid-column: auto;
  }
}

@media (max-width: 575.98px) {
  .epd-fos {
    padding: 24px 0 56px;
  }

  .epd-fos__glow {
    right: 28px;
    left: 28px;
    bottom: -18px;
    height: 120px;
    filter: blur(26px);
  }

  .epd-fos__card {
    padding: 36px 18px 28px;
    border-radius: 24px;
  }

  .epd-fos__head {
    margin-bottom: 28px;
  }

  .epd-fos__title {
    font-size: 30px;
  }

  .epd-fos__subtitle {
    font-size: 16px;
  }

  .epd-fos__grid {
    gap: 14px;
  }

  .epd-fos__agree-text {
    font-size: 10px;
  }
}
