/* Multi Step Form */
.d-flex {
  display: flex;
}
.justify-between {
  justify-content: space-between;
}

.multi-step-form {
  .progress-bar-container {
    margin-bottom: 20px;
  }

  .progress-bar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    height: 8px;
    margin-bottom: 10px;
  }

  .progress {
    height: 8px;
    background-color: var(--ast-global-color-0);
    width: 0;
    transition: width 0.3s ease;
  }

  .progress-text {
    font-size: 14px;
    color: var(--ast-global-color-0);
  }

  .form-step input[type="text"],
  .form-step input[type="number"],
  .form-step input[type="date"],
  .form-step input[type="tel"],
  .form-step input[type="email"],
  .form-step select,
  .form-step textarea {
    background-clip: padding-box;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    color: #000;
    font-family: -apple-system, "system-ui", Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
    line-height: 1.4;
    width: 100%;
    margin-bottom: 0;
    max-width: 100%;
    padding: 11px 15px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }
  .form-step input:focus,
  .form-step select:focus,
  .form-step textarea:focus {
    background-color: #fff;
    border-color: var(--fluentform-primary);
    color: var(--fluentform-secondary);
    outline: none;
  }

  .form-step select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  }
  .form-step .wpcf7-select option[value=""] {
    color: #999;
  }
  .form-step .wpcf7-select:invalid {
    color: #999;
  }

  .wpcf7-list-item {
    display: inline-block;
    margin: 0 0 0;
  }

  input[type="checkbox"],
  input[type="radio"] {
    display: inline-block;
    margin: 0;
  }

  .error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
  }

  .text-center {
    text-align: center;
  }
  .mx-auto {
    margin-left: auto;
    margin-right: auto;
  }

  .form-step .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 15px;
    margin-top: 8px;
  }

  .form-step .prev-step {
    border: none;
    background: none;
    color: #55555e;
    padding: 0;
  }
  .form-step .submit-btn {
  }

  .form-head {
    margin-bottom: 24px;
  }
  .wpcf7-submit {
    margin: auto;
    display: block;
    max-width: 200px;
    font-size: 20px;
    background: var(--ast-global-color-0);
  }

  .next-step {
    cursor: pointer;
    max-width: 200px;
    font-size: 20px;
    background: var(--ast-global-color-0);
  }
  .action-button {
    background: var(--ast-global-color-0);
    border-radius: 5px;
  }

  .form-step .wpcf7-form-control.wpcf7-checkbox,
  .form-step input[type="checkbox"] {
    display: flex;
    gap: 20px;
  }

  .wpcf7-checkbox label,
  .wpcf7-acceptance label {
    display: flex;
    align-items: center;
  }

  .wpcf7-checkbox input[type="checkbox"],
  .wpcf7-form-control-wrap input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    width: 20px;
    height: 20px;
    margin: 0;
    background: #f0f0f0;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
  }

  .wpcf7-checkbox input[type="checkbox"]:checked,
  .wpcf7-form-control-wrap input[type="checkbox"]:checked {
    background: #f68712;
    border-color: #f68712;
  }

  .wpcf7-checkbox input[type="checkbox"]:checked::before,
  .wpcf7-form-control-wrap input[type="checkbox"]:checked::before {
    content: "✓";
    font-size: 16px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .wpcf7-form-control-wrap .wpcf7-list-item-label,
  .wpcf7-checkbox .wpcf7-list-item-label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
    user-select: none;
    padding-left: 8px;
    font-weight: 600;
  }
}
/* Datepicker Calendar */
.ui-datepicker .ui-datepicker-header {
  background: none !important;
  border: none !important;
}

.ui-widget.ui-widget-content {
  width: auto !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1) !important;
  padding: 0 !important;
}
.ui-datepicker table {
  border: none !important;
}
.ui-datepicker table thead {
  background: #f3f5fb !important;
  color: #333 !important;
  border: none !important;
}

.ui-datepicker td span,
.ui-datepicker td a {
  display: block !important;
  width: 45px !important;
  height: 45px !important;
  border: none !important;
  padding: 10px !important;
  text-align: center !important;
  text-decoration: none !important;
  color: #333 !important;
  background: none !important;
  border-radius: 10px !important;
}
.ui-state-default,
.ui-widget-content .ui-state-default {
  background: none !important;
  border: none !important;
}
.ui-state-default.ui-state-hover {
  background: #f0f0f0 !important;
  border: none !important;
}

.ui-datepicker-prev,
.ui-datepicker-next {
  width: 32px !important;
  height: 32px !important;
  cursor: pointer !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s ease !important;
  &:before {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
  }
}
  &.ui-state-hover {
    background: none!important;
    border: none!important;
  }
}

.ui-datepicker-prev::before {
  content: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15 18l-6-6 6-6" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

.ui-datepicker-next::before {
  content: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 18l6-6-6-6" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}
.ui-datepicker-prev {
  &.ui-state-hover {
    &:before {
      content: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15 18l-6-6 6-6" fill="none" stroke="%23f68712" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    }
  }
}

.ui-datepicker-next {
  &.ui-state-hover {
    &:before {
      content: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 18l6-6-6-6" fill="none" stroke="%23f68712" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    }
  }
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
  display: none!important;
}

.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
  background: #f68712!important;
  color: #fff!important;
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
  background: #f68712!important;
  color: #fff!important;
}
