.volunteer-form,
.volunteer-form * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

h1 {
    margin-bottom: 0;
}

.welckom {
    text-align: center;
    margin: 8px auto 32px;
}

.team_add {
    text-align: center;
    margin: 0 auto 48px;
}

.container {
    margin: 0 auto;
    max-width: 100%;
}

@media (max-width: 1200px) {
    .container {
        max-width: 90%;
    }
}

@media (max-width: 760px) {
    .container {
        max-width: 95%;
    }
    
    .welckom {
        text-align: start;
        margin: 8px auto 24px;
    }
    
    .team_add {
        text-align: start;
        margin: 0 auto 16px;
    }
}

.volunteer-form {
  --font-family: "ONY One";

  --color-dark: #313332;
  --color-placeholder: #656973;
  --color-bg-input: #f2f2f2;
  --color-primary-button: #422223;
  --color-white: #ffffff;

  --fs-base: 16px;
  --lh-base: 1.15;
  --fs-agreements: 15px;
  --lh-agreements: 18px;
  --fs-btn-link: 18px;
  --lh-btn-link: 1.4;
  --fs-submit: 18px;
  --lh-submit: 2;

  --gap-section: 16px;
  --gap-title-content: 8px;

  width: 100%;
  max-width: 1130px;
  margin: 0 auto;
  font-family: var(--font-family);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-dark);
  display: flex;
  flex-direction: column;
  gap: var(--gap-section);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
    
  .volunteer-form {
    --fs-base: 18px;
    --lh-base: 1.15;
    --fs-agreements: 16px;
    --lh-agreements: 1.15;
    --fs-btn-link: 18px;
    --lh-btn-link: 1.15;

    --gap-section: 32px;
    --gap-title-content: 16px;
  }
}

.form-section {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-sector-highlightable.req_choise_not_selected{
    border: 2px solid red;
}

.section-title,
.field-label {
  font-family: inherit;
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-dark);
  margin-bottom: var(--gap-title-content);
  display: block;
}

.section-title--desktop {
  display: none;
}

.section-title--mobile {
  display: block;
}

.field-item {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.field-item .field-label {
  margin-bottom: var(--gap-title-content);
}

.volunteer-form input[type="text"],
.volunteer-form input[type="email"],
.volunteer-form input[type="tel"],
.volunteer-form input[type="url"],
.volunteer-form .form-textarea {
  width: 100%;
  background-color: var(--color-bg-input);
  border: 1px solid transparent;
  outline: none;
  font-family: inherit;
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-dark);
}

.volunteer-form input[type="text"],
.volunteer-form input[type="email"],
.volunteer-form input[type="tel"],
.volunteer-form input[type="url"] {
  height: 46px;
  padding: 13px 16px;
}

.volunteer-form .form-textarea {
  resize: none !important;
  padding: 16px;
}

.textarea--sm {
  height: 80px;
}

.textarea--superpower {
  height: 148px;
}

.textarea--conditions {
  height: 46px;
}

.volunteer-form input::placeholder,
.volunteer-form .form-textarea::placeholder {
  color: var(--color-placeholder);
  opacity: 1;
}

.custom-control {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  width: fit-content;
  max-width: 100%;
}

.column-group .custom-control,
.agreements-list .custom-control {
  width: 100%;
}

.custom-control input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.control-indicator {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-color: var(--color-bg-input);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.custom-control--radio .control-indicator {
  border-radius: 50%;
}

.custom-control input:checked + .control-indicator {
  background-color: #ad83ff;
}

.custom-control input[type="checkbox"]:checked + .control-indicator {
  background-image: url(/wp-content/themes/greenshift-child/assets/icons/check.svg);
  background-position: center;
  background-repeat: no-repeat;
}

.custom-control--checkbox input:checked + .control-indicator::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.custom-control--radio input:checked + .control-indicator::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-white);
}

.control-label {
  font-family: inherit;
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-dark);
  padding: 0;
  margin: 0;
}

.occupation-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.occupation-title {
  font-family: inherit;
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-dark);
  margin: 0;
  padding: 0;
}

.occupation-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.occupation-list .custom-control {
  height: 24px;
}

.volunteer-form a {
  color: #ad83ff;
  font-size: 16px;
  text-decoration: underline;
}

.volunteer-form a:hover {
  text-decoration: none;
}

.btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

.btn--add-link {
  height: 48px;
  background-color: var(--color-bg-input);
  color: var(--color-placeholder);
  font-size: var(--fs-btn-link);
  line-height: var(--lh-btn-link);
  padding: 9px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn--submit {
  width: 172px;
  height: 60px;
  background-color: var(--color-primary-button);
  color: var(--color-white);
  font-size: var(--fs-submit);
  font-weight: 500;
  line-height: var(--lh-submit);
  letter-spacing: -0.02em;
  font-variant: small-caps;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.grid-3-col,
.grid-2-col,
.grid-socials,
.column-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.radio-question-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.radio-question-row .field-label {
  margin-bottom: 0;
}

.options-inline {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.form-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 8px;
}

.agreements-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.agreements-list .control-label {
  font-size: var(--fs-agreements);
  line-height: var(--lh-agreements);
}

.form-feedback {
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  text-align: center;
  color: var(--color-dark);
}

.volunteer-form.is-success .form-feedback {
  color: #2e7d32;
}

@media (min-width: 744px) {
  .section-title--desktop {
    display: block;
  }

  .section-title--mobile {
    display: none;
  }

  .volunteer-form input[type="text"],
  .volunteer-form input[type="email"],
  .volunteer-form input[type="tel"],
  .volunteer-form input[type="url"] {
    height: 48px;
    padding: 13px 20px;
  }

  .textarea--superpower {
    height: 152px;
  }

  .textarea--conditions {
    height: 106px;
  }

  .grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .grid-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .occupation-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 619px;
  }

  .occupation-list {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 619px;
  }

  .radio-question-row {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .form-footer {
    gap: 24px;
  }

  .agreements-list {
    max-width: 664px;
  }
  
  .volunteer-form a {
    color: #ad83ff;
    font-size: 15px;
    text-decoration: underline;
  }
}

@media (min-width: 1200px) {
  .occupation-group {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: auto;
    height: 24px;
  }

  .occupation-title {
    width: auto;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .occupation-list {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: auto;
    height: 24px;
    flex-shrink: 0;
  }

  .grid-2-col {
    display: grid;
    grid-template-columns: 1fr 555px;
    gap: 86px;
    align-items: start;
  }

  .column-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .form-footer {
    gap: 32px;
  }

  .agreements-list {
    max-width: 558px;
  }
}

.btn-text {
    color: #fff;
}


.form-feedback {
  /* высота ровно под 2 строки текста при текущих --fs-base/--lh-base,
     то есть место всегда занято, независимо от видимости */
  min-height: calc(var(--fs-base) * var(--lh-base) * 2);
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}

.form-feedback.is-visible {
  opacity: 1;
  visibility: visible;
}

.form-feedback.is-error .form-feedback__text {
  color: #c62828;
}

/* состояние отправки формы */
.btn--submit {
  position: relative;
  transition: opacity .2s ease;
}

.btn--submit:disabled,
.btn--submit.is-loading {
  opacity: .6;
  cursor: not-allowed;
}


