@font-face {
  font-family: FrutigerLTStd;
  src: url('/font/FrutigerLTStd-Roman.otf') format('opentype');
}

@font-face {
  font-family: FrutigerLTStd;
  font-weight: bold;
  src: url('/font/FrutigerLTStd-Bold.otf') format('opentype');
}

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 32px;
  display: flex;
}

section {
  text-align: center;
  flex-grow: 1;
  flex-basis: 0;
}

span, label, a, input, select, button, h1, h2 {
  font-family: FrutigerLTStd;
  line-height: 125%;
}

input, select {
  box-sizing: border-box;
  width: 100%;
}

a {
  color: #009FDA;
}

p, li {
  font-family: FrutigerLTStd;
  line-height: 150%;
  font-size: 16px;
}

p, li, label {
  color: #666666;
}

input, select, button, .dropdown, .modal-content, #registration-success, #registration-error {
  border-radius: 5px;
}

#image-section-container {
  margin: 0 auto;
  margin-top: 32px;
  width: 100%;
  height: 100%;
  max-width: 690px;
  max-height: 748px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image: url('img/left-image.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

#image-section-container p {
  z-index: 1;
  margin: 0;
}

#badges {
  display: flex;
  justify-content: center;
  flex-grow: 0;
  margin: 30px 0;
  z-index: 1;
}

#badges img {
  margin: 0 12px;
  height: 32px;
}

#gradient {
  position: absolute;
  bottom: 0;
  height: 260px;
  width: 100%;
  background: linear-gradient(360deg, #DFE9CB 100px, rgba(190, 203, 207, 0) 100%, rgba(223, 233, 203, 0) 100%);
}

#logo {
  margin: 32px 0;
}

#intro {
  margin-bottom: 40px;
}

#description, #intro, #registration-success, #registration-error, .input-group {
  width: 346px;
}

#registration-success, #registration-error {
  box-sizing: border-box;
  padding: 16px;
}

#registration-success {
  background-color: #A8EDA1;
}

#registration-error {
  background-color: #ED6C63;
}

.has-error {
  border-color: #ED6C63!important;
}

#form-section .hide-before-country {
  visibility: hidden;
}

#form-section.has-country .hide-before-country {
  visibility: visible;
}

#select-country-text {
  font-weight: bold;
}

#form-section.has-country #select-country-text {
  display: none;
}

#form-section p, .input-group {
  margin-left: auto;
  margin-right: auto;
}

.input-group {
  margin-bottom: 24px;
}

label {
  text-align: left;
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
}

input, select {
  padding: 12px 16px;
  border: 0.5px solid rgba(0, 0, 0, 0.22);
  font-size: 16px;
}

.flex {
  display: flex;
}

#phone-number-prefix {
  width: initial;
}

#id-dropdown {
  margin-right: 8px;
}

#specify-specialty {
  margin-top: 8px;
}

#phone-number {
  margin-left: 8px;
  flex-grow: 1;
}

#terms-group {
  text-align: left;
}

#accept-terms {
  width: initial;
  margin-right: 16px;
  transform: scale(1.5);
}

#accept-terms-wrapper {
  display: inline-block;
}

#terms {
  text-decoration: underline;
}

#submit {
  padding: 18px;
  border: none;
  background-color: #009FDA;
  font-size: 18px;
  color: #FFFFFF;
  width: 100%;
}

#submit:disabled {
  background: #AAA;
  opacity: 0.7;
}

.dropdown {
  position: relative;
  text-align: left;
  border: 0.5px solid rgba(0, 0, 0, 0.22);
}

.dropdown.open {
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.dropdown-field {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
}

.dropdown-options {
  position: absolute;
  left: -1px;
  display: none;
  background-color: #FFFFFF;
  width: 100%;
  border: 0.5px solid rgba(0, 0, 0, 0.22);
  border-top: none;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  z-index: 1;
  max-height: 200px;
  overflow-y: auto;
}

.dropdown.open .dropdown-options {
  display: block;
}

.dropdown-option {
  color: black;
  margin: 0;
  padding: 12px 16px;
}

.dropdown-option:hover {
  color: white;
  background-color: #009FDA;
}

.arrow {
  position: relative;
  width: 16px;
  height: 16px;
}

.arrow::after {
  display: inline-block;
  content: url('img/arrow.svg');
  transition: transform 0.15s linear;
}

.dropdown.open .arrow::after {
  transform: rotate(180deg);
}

.dropdown-selected-data {
  padding-right: 16px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.44);
  z-index: 2;
}

.modal-content {
  position: fixed;
  background-color: #FFFFFF;
  width: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 24px;
  max-height: 70%;
  overflow: auto;
}

.modal-title-bar {
  display: flex;
  justify-content: flex-end;
}

.modal-close-button {
  background: none;
  font-size: 22px;
  border: 0;
  cursor: pointer;
}

.hidden {
  display: none;
}
