/* C:EHKO Diamond registration component */
.cehko-diamond-form {
  position: relative;
}

.cehko-diamond-form.is-loading {
  pointer-events: none;
}

.cehko-diamond-form .diamond-form-field {
  display: block;
  position: relative;
  margin-bottom: 14px;
}

.cehko-diamond-form .diamond-form-field > span,
.cehko-diamond-form .diamond-field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

    .cehko-diamond-form .diamond-form-note {
        display: block;
        max-width: 500px;
        margin: 30px 0 30px;
        color: #f0a97a;
        font-size: 26px;
        line-height: 1.05;
        letter-spacing: .035em;
        text-transform: uppercase;
        font-weight: 750;
    }


.cehko-diamond-form .diamond-form-field input[type="text"],
.cehko-diamond-form .diamond-form-field input[type="tel"],
.cehko-diamond-form .diamond-form-field input[type="email"] {
  width: 100%;
  height: 60px;
  border: 1px solid #18191b;
  border-radius: 8px;
  background: transparent;
  color: #18191b;
  padding: 8px 18px;
  font-size: 22px;
  line-height: 1.2;
  outline: none;
  transition: border-color .22s ease, color .22s ease, box-shadow .22s ease;
}

.cehko-diamond-form .diamond-form-field input::placeholder {
  color: #acacac;
  opacity: 1;
}

.cehko-diamond-form .diamond-form-field.is-error input,
.cehko-diamond-form .diamond-form-field-select.is-error .diamond-select-toggle {
  border-color: #f0a97a;
  box-shadow: 0 0 0 1px rgba(240,169,122,.18);
}

.diamond-field-error {
  display: none;
  margin-top: 5px;
  color: #f0a97a;
  font-size: 14px;
  line-height: 1.2;
  font-style: normal;
}

.diamond-form-field.is-error .diamond-field-error,
.diamond-form-field-select.is-error .diamond-field-error {
  display: block;
}

.diamond-select {
  position: relative;
  width: 100%;
  z-index: 5;
}

.diamond-select-toggle {
  width: 100%;
  height: 60px;
  border: 1px solid #18191b;
  border-radius: 8px;
  background: transparent;
  color: #18191b;
  padding: 8px 18px;
  font-size: 22px;
  line-height: 1.2;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  transition: border-color .22s ease, color .22s ease, box-shadow .22s ease;
}

.diamond-select-toggle span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diamond-select-toggle i {
  flex: 0 0 21px;
  width: 21px;
  height: 14px;
  background: url('chevron.svg') center / contain no-repeat;
  transition: transform .22s ease;
}

.diamond-select.is-open .diamond-select-toggle {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #18191b;
}

.diamond-select.is-open .diamond-select-toggle i {
  transform: rotate(180deg);
}

.diamond-select.is-selected .diamond-select-toggle {
  border-color: #f0a97a;
  color: #f0a97a;
}

.diamond-select-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  background: #f0f0f0;
  border: 1px solid #18191b;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  padding: 10px 0 12px;
  z-index: 30;
  box-shadow: 0 14px 24px rgba(0,0,0,.08);
}

.diamond-select.is-open .diamond-select-dropdown {
  display: flex;
}

.diamond-select-dropdown button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #18191b;
  padding: 8px 18px;
  font-size: 22px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}

.diamond-select-dropdown button:hover,
.diamond-select-dropdown button:focus,
.diamond-select-dropdown button.is-selected {
  color: #f0a97a;
  background: rgba(240,169,122,.07);
}

.diamond-checkboxes {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.diamond-check-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 22px;
  line-height: 1.2;
}

.diamond-check-line input[type="checkbox"] {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin: 8px 0 0;
  border-radius: 2px;
  accent-color: #18191b;
}

.diamond-check-line.is-error span {
  color: #f0a97a;
}

.diamond-submit[disabled] {
  opacity: .65;
  cursor: wait;
}

.diamond-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility .24s ease;
}

.diamond-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.diamond-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24,25,27,.42);
}

.diamond-modal-dialog {
  position: relative;
  width: 800px;
  max-width: calc(100vw - 60px);
  height: 400px;
  max-height: calc(100vh - 60px);
  background: #f0a97a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translateY(16px) scale(.98);
  transition: transform .24s ease, background-color .24s ease;
  border-radius: 30px;
}

.diamond-modal.is-open .diamond-modal-dialog {
  transform: translateY(0) scale(1);
}

.diamond-modal.is-error .diamond-modal-dialog {
  background: rgba(172,172,172);
}

.diamond-modal-close {
  position: absolute;
  top: 26px;
  right: 28px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.diamond-modal-close::before,
.diamond-modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 2px;
  background: #fff;
  transform-origin: center;
}

.diamond-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.diamond-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.diamond-modal-title {
  margin: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 750;
}

.diamond-modal-text {
  margin: 34px 0 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-weight: 750;
}

@media (max-width: 1024px) {
  .diamond-modal-dialog {
    width: 700px;
    height: 350px;
  }

  .diamond-modal-title {
    font-size: 30px;
  }
}

.diamond-form-note {
/*  display: none;*/
}


/* Mobile styles for Figma node 23:56. Desktop styles above are untouched. */
@media (max-width: 767px) {
  .cehko-diamond-form .diamond-form-field {
    margin-bottom: 10px;
  }

  .cehko-diamond-form .diamond-form-field input[type="text"],
  .cehko-diamond-form .diamond-form-field input[type="tel"],
  .cehko-diamond-form .diamond-form-field input[type="email"],
  .cehko-diamond-form .diamond-select-toggle {
    width: 100%;
    height: 60px;
    min-height: 60px;
    border: 1px solid #18191b;
    border-radius: 8px;
    background: transparent;
    color: #18191b;
    padding: 8px 22px;
    font-size: 22px;
    line-height: 1.2;
  }

  .cehko-diamond-form .diamond-form-field input::placeholder {
    color: #acacac;
    opacity: 1;
  }

  .cehko-diamond-form .diamond-select-toggle {
    gap: 16px;
  }

  .cehko-diamond-form .diamond-select-toggle i {
    flex: 0 0 28px;
    width: 28px;
    height: 18px;
  }

  .cehko-diamond-form .diamond-select-dropdown {
    border-radius: 0 0 8px 8px;
    padding: 12px 0 14px;
    background: #eff0f0;
  }

  .cehko-diamond-form .diamond-select-dropdown button {
    padding: 10px 22px;
    font-size: 20px;
    line-height: 1.2;
  }

  .cehko-diamond-form .diamond-field-error {
    margin-top: 6px;
    font-size: 12px;
  }

    .cehko-diamond-form .diamond-form-note {
        display: block;
        max-width: 355px;
        margin: 30px 0 30px;
        color: #f0a97a;
        font-size: 22px;
        line-height: 1.05;
        letter-spacing: .035em;
        text-transform: uppercase;
        font-weight: 750;
    }

  .cehko-diamond-form .diamond-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 30px;
  }

  .cehko-diamond-form .diamond-check-line {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
    color: #18191b;
    font-size: 14px;
    line-height: 1.2;
  }

  .cehko-diamond-form .diamond-check-line input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin: 5px 0 0;
    border-radius: 2px;
  }

  .cehko-diamond-form .diamond-check-line span {
    display: block;
    min-width: 0;
  }

  .cehko-diamond-form .conditions-link {
    display: inline-flex;
    margin: 0 0 56px;
    color: #18191b;
    font-size: 14px;
    line-height: 1.2;
  }

  .cehko-diamond-form .diamond-submit,
  .cehko-diamond-form .diamond-submit.btn {
    width: 100%;
    height: 60px;
    min-height: 60px;
    border-radius: 8px;
    padding: 12px 22px;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: .03em;
  }

  .diamond-modal {
    padding: 18px;
  }

  .diamond-modal-backdrop {
    background: rgba(24,25,27,.28);
  }

  .diamond-modal-dialog {
    width: 340px;
    max-width: calc(100vw - 36px);
    height: 340px;
    max-height: calc(100vh - 36px);
    border-radius: 24px;
  }

  .diamond-modal-close {
    top: 23px;
    right: 23px;
    width: 28px;
    height: 28px;
  }

  .diamond-modal-close::before,
  .diamond-modal-close::after {
    width: 27px;
    height: 2px;
  }

  .diamond-modal-title {
    font-size: 22px;
    line-height: 1.12;
    letter-spacing: .03em;
  }

  .diamond-modal-text {
    margin-top: 28px;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: .02em;
    text-transform: none;
  }
}


.cehko-b24-form-container {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 800px;
  min-height: 400px;
  overflow: hidden;
  opacity: 0.01;
  pointer-events: none;
  z-index: -1;
}
