/* state */
.text--center {
  text-align: center;
}
.text--uppercase {
  text-transform: uppercase;
}


/* Page */
.page-f88 {
  display: flex;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  align-items: center;
  justify-content: center;
  background-color: #289b5c;
  min-height: 100vh;
  background-image: url('./images/bg-desktop.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  padding: 30px 0;
}
.container  {
  width: 1230px;
  padding: 0 15px;
}
.form-wrap {
  width: 100%;
  display: flex;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 4px 13px 0px #00000040;
  min-height: 800px;
}

.form__right {
  width: 50%;
  flex-shrink: 0;
  background-image: url('./images/form-right.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
}

/* Header */
.header {
  padding: 16px 0;
  width: 100%;
  display: flex;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 16px;
  border-bottom: solid 1px #EFEFEF;
}
.header__title {
  font-size: 42px;
  color: #EA0004;
  font-weight: bold;
  margin-bottom: 5px;
}
.header__text {
  font-size: 22px;
  color: #000;
  font-weight: bold;
}

/* Form */
.form {
  background-color: #fff;
  padding: 30px;
  position: relative;
}
.form__title {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.form__heading {
  text-transform: uppercase;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}
.form__row {
  display: flex;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  gap: 20px;
}
.form__item {
  flex: 1;
  margin-bottom: 15px;
}
.input, .select {
  height: 40px;
  border-radius: 6px;
  border: solid 1px #e6e6e6;
  padding: 0 10px;
  font-size: 16px;
}
.input {
  width: calc(100% - 20px);
}
.select {
  width: 100%;
  -moz-appearance:none; /* Firefox */
  -webkit-appearance:none; /* Safari and Chrome */
  appearance:none;
  background-image: url("./images/arrow.svg");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) center;
  border: 1px solid #dfdfdf;
  border-radius: 6px;
}
select option[value=""][disabled] {
  display: none;
}
/* Style select element when placeholder is selected */
.select:has(option[value=""]:checked) {
  color: #888;
}

/* Alternative approach - style select when it has empty value */
.select option[value=""] {
  color: #888 !important;
}

/* Force placeholder color for disabled options */
.select option[disabled] {
  color: #888 !important;
}
select option {
  font-size: 14px;
  color: #222;
}
.custom-checkbox {
  line-height: 18px;
}
input[type="checkbox"] {
  accent-color: #21A400;
  -ms-transform: scale(1.3); /* IE */
  -moz-transform: scale(1.3); /* FF */
  -webkit-transform: scale(1.3); /* Safari and Chrome */
  -o-transform: scale(1.3); /* Opera */
  transform: scale(1.3);
  padding: 10px;
  margin: 0;
  position: relative;
}
.validate-check-error input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 3px;
  border: solid 1px red;
}
.checkbox-wrap {
  display: inline-block;
  margin-right: 10px;
}
.label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
}
.required {
  color: #d31510;
}
.validate-error .select,
.validate-error .input  {
  border-color: #d31510;
}
.validate-error .error {
  color: #d31510;
  font-size: 14px;
  font-style: italic;
  margin-top: 5px;
}
.validate-check-error {
  position: relative;
}

/* Form tabs */
.session:not(:last-child) {
  margin-bottom: 16px;
}
.confirm {
  margin-bottom: 16px;
}
.form__taps {
  display: flex;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.form__taps-item {
  flex: 1;
  display: flex;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  align-items: center;
  border: 2px solid #E1E1E1;
  border-radius: 12px;
  background-color: #F9F9F9;
  padding: 12px 16px;
  gap: 16px;
  font-weight: 600;
  cursor: pointer;
  line-height: 18px;
}
.form__taps-item.active {
  border-color: #029353;
  color: #029353;
}
.img-item-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #F2F3F5;
  display: flex;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  align-items: center;
  justify-content: center;
}
.policy {
  font-size: 14px;
}
.link {
  color: #0265dc;
  text-decoration: none;
  font-style: italic;
}
.actions {
  display: flex;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  justify-content: center;
  margin-top: 25px;
}
.btn {
  height: 48px;
  color: #fff;
  text-transform: uppercase;
  border-radius: 12px;
  font-size: 16px;
  border: solid 1px #029D57;
  width: 250px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(90deg, #029353 0%, #30C273 100%);
}

/* Slider */
.slider-container {
  background: linear-gradient(to right, #0aa863, #1cb07f);
  padding: 50px 20px 20px;
  border-radius: 16px;
  position: relative;
}

input[type="range"] {
  width: 100%;
  margin: 20px 0 0 0;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 5px;
  background: #eee;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  background: #FEDD05;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  position: relative;
  z-index: 2;
}

.min-thumb {
  position: absolute;
  top: 11px;
  width: 26px;
  height: 26px;
  background: #FEDD05;
  border-radius: 50%;
  border: solid 2px #fff;
  z-index: 1;
}

.tooltip {
  position: absolute;
  background: white;
  color: black;
  padding: 10px 12px;
  border-radius: 8px;
  top: -30px;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: solid 1px #e6e6e6;
}

.tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

.money-box {
  background: white;
  color: black;
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  margin-top: 15px;
}

.money-box span {
  margin-left: 10px;
  color: #888;
}

.range-fill {
  height: 8px;
  position: absolute;
  top: 20px;
  background-color: #FEDD05;
  border-radius: 12px;
}

.ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
  user-select: none;
}

.ticks div {
  color: rgba(255,255,255,0.6);
  min-width: 30px;
  text-align: center;
}

.ticks .active {
  color: #FEDD05;
  font-size: 16px;
}
.doted {
  position: absolute;
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 8px;
  top: 20px;
  z-index: 0;
}
.doted__item {
  min-width: 30px;
  position: relative;
}
.doted__item::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #00844A;
}

.loading {
  display: none;
}

.note {
  font-size: 14px;
  color: #D31510;
  margin-bottom: 16px;
}
.note__label {
  font-weight: 700;
}

.form-result {
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 30px;
  flex: 1;
}
.form-result-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.result {
  width: 100%;
}
.processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.form-result .processing-loading {
  position: relative;
  height: 50px;
  width: 50px;
}
.form-processing__title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}
.form-processing__text {
  font-size: 16px;
  color: #333;
}
.form-processing__text-italic {
  font-style: italic;
  color: #5F5F5F;
}

.success {
  color: #333;
}
.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.error,
.success,
.warning {
  width: 100%;
}

.error .actions {
  padding-top: 16px;
  border-top: solid 1px #E4E4E4;
}

.success-title,
.error-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}
.success .success-text {
  margin-bottom: 12px;
  line-height: 1.5;
}
.office-list {
  list-style: disc;
  padding-left: 30px;
}
.office-item {
  margin-bottom: 12px;
}
.text-red {
  color: #D31510;
}
.button-icon {
  margin-right: 10px;
}

.warning .map{
  border-top: solid 1px #E4E4E4;
}

.map {
  border-bottom: solid 1px #E4E4E4;
  /* border-top: solid 1px #E4E4E4; */
  padding: 30px 0;
  margin-top: 16px;
}
.map-text {
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.map-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.btn-map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  color: #0265DC;
  font-style: italic;
  border: 0;
  cursor: pointer;
  height: 32px;
  background-color: #fff;
}
.btn-map > img:first-of-type {
  width: 32px;
  height: 32px;
}
.btn-end-icon {
  margin-left: auto;
}

.policy-checkbox {
  display: flex;
  align-items: center;
}

@supports (-moz-appearance: none) {
  input[type="range"] {
    position: relative;
    z-index: 2;
  }
  .doted {
    z-index: 2;
    pointer-events: inherit;
  }
  .range-fill {
    z-index: 2;
  }
  input[type="range"]::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    background: #FEDD05;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    position: absolute;
    box-sizing: border-box;
    pointer-events: all;
    z-index: 3;
  }
  .validate-check-error::after {
    content: "";
    display: block;
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 5px;
    border-radius: 3px;
    border: solid 1px red;
    -ms-transform: scale(1.3); /* IE */
    -moz-transform: scale(1.3); /* FF */
    -webkit-transform: scale(1.3); /* Safari and Chrome */
    -o-transform: scale(1.3); /* Opera */
    transform: scale(1.3);
  }
}

@media screen and (max-width: 1280px) {
  .container {
    width: 100%;
  }
  .page-f88 {
    background: linear-gradient(270deg, #029151 0%, #029151 80.55%, #038248 100%);
  }
}
@media screen and (max-width: 768px) {
  .page-f88 {
    padding: 50px 0 100px 0;
  }
  .form__title {
    text-align: center;
  }
  .form-wrap {
    flex-direction: column;
  }
  .header {
    flex-direction: column;
  }
  .form__right {
    /* display: none; */
    height: 600px;
    width: 100%;
  }
  .form__row {
    flex-direction: column;
    gap: 0;
  }
  .container  {
    max-width: 100%;
  }
  .form {
    padding: 20px 12px;
  }
  .form__taps-item {
    flex-direction: column;
    align-items: flex-start
  }
  .f88-logo {
    display: block;
    margin: 0 auto;
  }
}

@media screen and (max-width: 600px) {
  .ticks div {
    min-width: 20px;
    font-size: 12px;
  }
  .doted__item {
    min-width: 20px;
  }
  input[type="checkbox"] {
    -ms-transform: scale(1.1); /* IE */
    -moz-transform: scale(1.1); /* FF */
    -webkit-transform: scale(1.1); /* Safari and Chrome */
    -o-transform: scale(1.1); /* Opera */
    transform: scale(1.1);
  }
  .map-actions {
    flex-direction: column;
  }
  .btn-map {
    width: 100%;
    flex: unset;
  }
}

@media screen and (max-width:400px) {
  .ticks div {
    min-width: 15px;
    transform: rotate(45deg);
  }
  .doted__item {
    min-width: 15px;
  }
}


/* Css Preloader */
.lds-dual-ring {
  background: #fff;
  position: absolute;
  opacity: 0.8;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: inherit;
}
.lds-dual-ring::after {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  padding: 7px;
  background: #038E4F;
  /* the color */
  z-index: 10;
  aspect-ratio: 1;
  border-radius: 50%;
  --_m: conic-gradient(#0000, #000), linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
  mask: var(--_m);
  -webkit-mask-composite: source-out;
  mask-composite: subtract;
  box-sizing: border-box;
  animation: load 1s linear infinite;
}

@keyframes load {
  to {
    transform: rotate(1turn);
  }
}
