/* Tabs */
.tab-links {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.tab-links .tab-name {
  width: 50%;
  text-align: center;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  padding: 2rem 0.5rem 1rem 0.5rem;
}

.tab-links .tab-name.active {
  color: #8cc63f;
}

.tab-links .tab-name:not(.active) {
  opacity: 0.5;
}

.tab-content:not(.active) {
  display: none;
}

.tab-content {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.tab-content form .row {
  display: flex;
  margin: 1.5rem -0.5rem 2rem -0.5rem;
}

/* Fields */
.field {
  position: relative;
  background-color: rgba(0, 0, 0, 0.1);
}

.field.focused {
  background-color: rgba(0, 0, 0, 0.9);
}

.field input,
.field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  padding: 1.2em 0.5em 0.3em 0.5em;
  z-index: 2;
}

.field label {
  position: absolute;
  top: 0.75rem;
  left: 0.5rem;
  z-index: -1;
}

.field select::-ms-expand {
  display: none;
}

.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23848484'%20transform%3D'rotate(90,27,10)'%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat, repeat;
  background-position: right 0.5em top 1.2em, 0 0;
  background-size: 1em auto, 100%;
  padding-right: 1.5em;
}

/* Fields: autofilled by browser */
@-webkit-keyframes autofill {
  to {
    color: #ffffff;
    background: transparent;
  }
}

input:-webkit-autofill {
  -webkit-animation-name: autofill;
  -webkit-animation-fill-mode: both;
}

/* Fields: focus status */
.field input:focus,
.field select:focus {
  box-shadow: 0 0 1px 0px #8bc63f;
  outline-color: #8bc63f;
}

.field.focused input,
.field.focused select {
  /* border-color: #ffffff; */
  background-color: rgba(0, 0, 0, 0.9);
}

.field.focused label {
  top: 0.2rem;
  font-size: 0.7rem;
  z-index: 2;
}

/* Fields: invalid status */
.field:not(.invalid) .error {
  display: none;
}

.field .error {
  position: absolute;
  top: 3rem;
  left: 0.5rem;
  font-size: 0.7rem;
  color: #c17d00;
}

.field.invalid input,
.field.invalid select {
  border-color: #c17d00 !important;
}

.field.invalid input:invalid,
.field.invalid select:invalid {
  border-color: #c17d00 !important;
}

.field.invalid input:focus,
.field.invalid select:focus {
  box-shadow: 0 0 1px 0px #c17d00;
  outline-color: #c17d00;
}

/* Fields specif positions by design */
.field {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.field.margin-zero {
  margin: 0;
}

.field.firstname,
.field.lastname {
  width: calc(25% - 1rem);
}

.field.email {
  width: calc(50% - 1rem);
}

.field.country {
  width: calc(50% - 1rem);
}

.field.currency {
  width: calc(35% - 1rem);
}

.field.turnover {
  width: calc(65% - 1rem);
}

.country-fields {
  width: 50%;
}

.turnover-fields {
  width: 50%;
  display: flex;
  position: relative;
}

.turnover-fields .field-title {
  position: absolute;
  top: -1.5rem;
  left: 0;
}

.field.molly-user,
.field.molly-agent,
.field.molly-passw {
  width: calc(50% - 1rem);
}

.form-end-buttons {
  display: flex;
  justify-content: center;
}

.form-end-buttons .button {
  font-size: 1em;
  width: 30%;
}

.button.hollow:disabled {
  color: #565656;
  border-color: #565656;
  background-color: transparent;
  cursor: unset;
}

.button.solid:disabled {
  background-color: #565656;
  border-color: #565656;
  cursor: unset;
}

/* Field password eye icon */
.field.password-eye {
  position: relative;
}

.field.password-eye .icon-eye {
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  right: 0.5rem;
  top: calc(50% - 0.6rem);
  cursor: pointer;
}

.field.password-eye .icon-eye.show .hide,
.field.password-eye .icon-eye:not(.show) .show {
  display: none;
}

/* Spefic mobile styles */
@media (max-width: 767px) {
  .tab-content form .row {
    flex-direction: column;
  }

  .field.firstname,
  .field.lastname,
  .field.email,
  .field.country,
  .field.molly-user,
  .field.molly-agent,
  .field.molly-passw {
    width: calc(100% - 1rem);
  }

  .field {
    margin-bottom: 1.5rem;
  }

  .country-fields,
  .turnover-fields {
    width: 100%;
  }

  .form-end-buttons {
    align-items: center;
  }

  .form-end-buttons .button {
    width: 60%;
  }


}