form label {
  display: block;
  margin-bottom: 6px;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  outline: none;
  resize: vertical;
  transition: all 0.3s ease;
  border: 1px solid var(--bgMain);
  color: var(--bgMain);
  padding: 14px 14px;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.5;
  min-width: 200px;
}

@media only screen and (max-width: 599px) {
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select {
    padding: 12px 14px;
    font-size: 16px;
  }
}

input.input-light,
textarea.input-light,
select.input-light {
  background: none !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

input.input-light::placeholder,
textarea.input-light::placeholder,
select.input-light::placeholder {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Убираем стандартную стрелку у select */
select.input-light {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.75)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px !important;
  padding-right: 40px !important;
}

/* Стили для опций в выпадающем списке */
select.input-light option {
  background-color: #fff;
  color: #000;
}

/* Стили для выбранной опции в выпадающем списке */
select.input-light option:checked {
  background-color: #f0f0f0;
  color: #000;
}

/* Стили для hover эффекта на опциях */
select.input-light option:hover {
  background-color: #e0e0e0;
  color: #000;
}

textarea {
  min-height: 125px;
}

@media only screen and (max-width: 599px) {
  textarea {
    min-height: 100px;
  }
}

input[disabled],
textarea[disabled],
select[disabled] {
  border-color: #c8c8c8;
  background: #f2f2f2;
  box-shadow: none;
  cursor: not-allowed;
  color: #0d0d0d;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}

input.input-light:focus,
textarea.input-light:focus,
select.input-light:focus {
  border-color: rgba(255, 255, 255, 0.75) !important;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
  color: #232323;
  opacity: 1;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  opacity: 1;
}

input::placeholder,
textarea::placeholder {
  color: #232323;
  opacity: 1;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: #232323;
}

input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
  color: #232323;
}

.btn,
.boost-space-forms .input-wrap button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  box-sizing: border-box;
  width: auto;
  margin: 0;
  outline: none;
  resize: vertical;
  -webkit-transition: all 200ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
  -moz-transition: all 200ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
  -o-transition: all 200ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
  transition: all 200ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 400;
  text-align: center;
  display: inline-block;
  min-width: 250px;
  color: var(--bgMain);
  padding: 25px 40px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 1px;
  text-decoration: none;
}

@media (max-width: 899px) {
  .btn,
  .boost-space-forms .input-wrap button {
    min-width: 0;
    font-size: 18px;
    padding: 14px 25px 12px;
  }
}

@media (max-width: 399px) {
  .btn,
  .boost-space-forms .input-wrap button {
    min-width: 0;
    font-size: 16px;
    padding: 12px 18px 10px;
  }
}

.btn:hover,
.boost-space-forms .input-wrap button:hover,
input[type="submit"]:hover {
  color: var(--accent);
  background: var(--bgMain);
  text-decoration: none;
  border-color: var(--accent);
  cursor: pointer;
}

.btn.input-light,
.boost-space-forms .input-wrap button.input-light,
input[type="submit"].input-light {
  background: none;
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
}

.btn.input-light:hover,
.boost-space-forms .input-wrap button.input-light:hover,
input[type="submit"].input-light:hover {
  background: none;
  border-color: rgba(255, 255, 255, 0.95);
  color: rgba(255, 255, 255, 0.95);
}

.btn-phat {
  min-width: 0;
  padding: 16px 41px;
  font-size: 30px;
  font-weight: 700;
}

@media (max-width: 1199px) {
  .btn-phat {
    padding: 11px 28px;
    font-size: 19px;
  }
}

@media (max-width: 399px) {
  .btn-phat {
    padding: 10px 22px;
    font-size: 17px;
  }
}

.btn-bigger,
input[type="submit"] {
  min-width: 0;
  padding-left: 42px;
  padding-right: 42px;
  font-size: 17px;
  font-weight: 500;
}

.btn-border {
  background: none;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-border:hover {
  background-color: var(--accent);
  color: var(--bgMain);
}

.btn-border-dark {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.5);
}

.btn-border-dark.active {
  background: none;
  color: var(--accent);
  border-color: var(--accent);
  pointer-events: none;
}

.btn-tab-flex > .btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-tab-flex > .btn:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/**
 * Checkboxes
 */

/* Style the custom checkbox */
input[type="checkbox"] {
  display: inline-block;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 30px;
  min-width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  cursor: pointer;
  position: relative;
}

/* Style the checkmark */
input[type="checkbox"]:before {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  content: "";
  display: inline-block;
  width: 25%;
  height: 45%;
  border: solid var(--accent);
  border-width: 0px 2px 2px 0px;
  transform: rotate(45deg);
  visibility: hidden;
}

/* Show the checkmark when checked */
input[type="checkbox"]:checked:before {
  visibility: visible;
}

/**
 * BS Forms
 */

.boost-space-forms {
  width: 100%;
}

.boost-space-forms legend {
  display: none;
}

.boost-space-forms > form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

.input-wrap,
.boost-space-forms .input-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.boost-space-forms .input-wrap.input-type-gdpr_accept {
  flex-direction: row;
  align-items: center;
  gap: 0;
}

.boost-space-forms .input-wrap.input-type-gdpr_accept > label {
  padding-left: 12px;
  line-height: 1.25;
}

@media only screen and (max-width: 599px) {
  .boost-space-forms .input-wrap.input-type-gdpr_accept > label {
    font-size: 14px;
    padding-left: 16px;
  }
}

.boost-space-forms .input-wrap a {
  text-decoration: underline;
}

.boost-space-forms .input-wrap a:hover {
  text-decoration: none;
}

.boost-space-forms label {
  position: relative;
  display: inline-block;
  margin: 0;
}

.boost-space-forms fieldset {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 14px;
  row-gap: 28px;
  width: 100%;
}

@media only screen and (max-width: 599px) {
  .boost-space-forms fieldset {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 20px;
  }
}

.boost-space-forms fieldset > .input-wrap.required-input label {
  margin-left: 10px;
}

.form-required-data::before,
.boost-space-forms fieldset > .input-wrap.required-input label::before {
  display: block;
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 100%;
  position: absolute;
  left: -10px;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #9c8668;
  transform: translateY(1px);
}

.boost-space-forms .input-wrap.required-input.input-type-gdpr_accept label {
  margin-left: 0;
}

.boost-space-forms
  .input-wrap.required-input.input-type-gdpr_accept
  label::before {
  left: auto;
  right: -10px;
}

.form-required-data {
  position: relative;
  width: auto;
  height: auto;
  top: 0;
  right: 0;
}

.boost-space-forms fieldset .col-md-12,
.input-type-gdpr_accept,
.input-type-file {
  grid-column: 1/-1;
}

.boost-space-forms .submit-field {
  width: 100%;
}

.boost-space-forms .submit-field > input[type="submit"],
.boost-space-forms .input-wrap button {
  width: 100%;
}

.submit-disabled,
.submit-disabled:hover {
  color: #888 !important;
  border-color: #222 !important;
  background: #222 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/**
 * Newsletter Form Styles
 */

.newsletter-form {
  width: 100%;
}

.newsletter-form .flex {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.newsletter-form .flex-1 {
  flex: 1;
  min-width: 200px;
}

.newsletter-form .input-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.newsletter-form label {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.newsletter-form .form-required-data::before {
  display: block;
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 100%;
  position: absolute;
  left: -10px;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #9c8668;
  transform: translateY(1px);
}

.newsletter-form .submit-field {
  display: flex;
  align-items: flex-end;
}

.newsletter-form .submit-field input[type="submit"] {
  min-width: 120px;
  padding: 14px 25px;
  font-size: 16px;
  font-weight: 500;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bgMain);
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form .submit-field input[type="submit"].input-light {
  background: none !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

.newsletter-form .submit-field input[type="submit"]:hover {
  background: var(--bgMain);
  border-color: var(--accent);
  color: var(--accent);
}

.newsletter-form .submit-field input[type="submit"].input-light:hover {
  background: none !important;
  border-color: rgba(255, 255, 255, 0.95) !important;
  color: rgba(255, 255, 255, 0.95) !important;
}

.newsletter-form .form-response {
  margin-top: 1rem;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
}

.newsletter-form .form-response.alert-success {
  background-color: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4caf50;
}

.newsletter-form .form-response.alert-danger {
  background-color: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #f44336;
}

@media only screen and (max-width: 599px) {
  .newsletter-form .flex {
    flex-direction: column;
    align-items: stretch;
  }
  
  .newsletter-form .flex-1 {
    min-width: auto;
  }
  
  .newsletter-form .submit-field {
    align-items: stretch;
  }
  
  .newsletter-form .submit-field input[type="submit"] {
    width: 100%;
  }
}

.boost-space-forms .input-note-full {
  grid-column: 1/-1;
}