.atfr-wrap,
.atfr-wrap * {
  box-sizing: border-box;
}

.atfr-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 36px auto;
  padding: 0 18px;
  font-family: "Open Sans", Arial, sans-serif;
  color: #050505;
}

.atfr-title {
  margin: 0 0 26px;
  text-align: center;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.25;
  color: var(--atfr-primary, #ec4c78);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.atfr-intro {
  max-width: 760px;
  margin: -10px auto 24px;
  text-align: center;
  color: #555;
}

.atfr-alert {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.atfr-alert-success {
  background: #e9f8ef;
  border: 1px solid #a9e8bd;
  color: #106a31;
}

.atfr-alert-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.atfr-hp {
  position: absolute;
  left: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.atfr-section-title {
  margin: 22px 0 18px;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.2;
  color: #000;
  font-weight: 800;
}

.atfr-grid {
  display: grid;
  gap: 14px 28px;
  width: 100%;
}

.atfr-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.atfr-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.atfr-field-full {
  grid-column: 1 / -1;
}

.atfr-field {
  position: relative;
  width: 100%;
}

.atfr-field input,
.atfr-field textarea,
.atfr-field select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--atfr-primary, #ec4c78);
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.atfr-field input,
.atfr-field textarea {
  padding: 8px 12px 8px 32px;
}

.atfr-field input::placeholder,
.atfr-field textarea::placeholder {
  color: #697386;
  opacity: 1;
}

.atfr-field input:focus,
.atfr-field textarea:focus,
.atfr-field select:focus {
  border-color: #c92050;
  box-shadow: 0 0 0 3px rgba(236, 76, 120, .14);
}

.atfr-field-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 12px;
  color: #111;
  line-height: 1;
  pointer-events: none;
}

.atfr-choice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  margin: 18px 0 26px;
}

.atfr-choice-box {
  margin: 0;
  padding: 0;
  border: 0;
}

.atfr-choice-box legend {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  font-size: 17px;
  font-weight: 800;
  color: #000;
}

.atfr-choice-box label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 0 0 10px;
  color: #000;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
}

.atfr-choice-box input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin: 4px 0 0;
  border: 1px solid #8b8b8b;
  border-radius: 2px;
  background: #fff;
  display: inline-block;
  position: relative;
}

.atfr-choice-box input[type="radio"]:checked {
  border-color: #111;
  background: var(--atfr-primary, #ec4c78);
  box-shadow: inset 0 0 0 2px #fff;
}

.atfr-submit {
  appearance: none;
  border: 0;
  border-radius: 4px;
  background: #3f3f3f;
  color: #fff;
  padding: 12px 18px;
  min-width: 86px;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease;
  margin-top: 20px;
}

.atfr-submit:hover,
.atfr-submit:focus {
  background: #191919;
  transform: translateY(-1px);
}

.atfr-submit[disabled] {
  opacity: .72;
  cursor: wait;
  transform: none;
}

.atfr-important-note {
  margin: 32px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: #111;
}

.atfr-important-note h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
}

.atfr-important-note p {
  margin: 0 0 12px;
}

.atfr-important-note ul {
  margin: 0 0 16px 22px;
  padding: 0 0 0 20px;
}

.atfr-important-note li {
  margin: 3px 0;
}

@media (max-width: 900px) {
  .atfr-grid-3,
  .atfr-grid-2,
  .atfr-choice-grid {
    grid-template-columns: 1fr;
  }

  .atfr-section-title {
    margin-top: 20px;
  }
}

@media (max-width: 600px) {
  .atfr-wrap {
    margin: 26px auto;
    padding: 0 14px;
  }

  .atfr-title {
    margin-bottom: 22px;
    letter-spacing: 1px;
  }

  .atfr-grid {
    gap: 12px;
  }

  .atfr-field input,
  .atfr-field textarea,
  .atfr-field select {
    min-height: 42px;
    font-size: 14px;
  }

  .atfr-choice-box label {
    font-size: 14px;
  }

  .atfr-submit {
    width: 100%;
    padding: 14px 18px;
  }
}
