@import url("https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700");

:root {
  --color-bg1: rgb(8, 10, 15);
  --color-bg2: rgb(0, 17, 32);
  --color1: 18, 113, 255;
  --color2: 107, 74, 255;
  --color3: 100, 100, 255;
  --color4: 50, 160, 220;
  --color5: 80, 47, 122;
  --color-interactive: 140, 100, 255;
  --circle-size: 80%;
  --blending: hard-light;

  --field-bg: rgb(52, 64, 116);
  --field-bg-hover: rgb(58, 71, 128);
  --field-bg-focus: rgb(64, 79, 140);
}

* {
  margin: 0;
  padding: 0;
  outline: none;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif !important;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: rgb(8, 10, 15);
  color: #ffffff;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  min-height: 100vh;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.page-shell {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 20px;
}

.card {
  position: relative;
  z-index: 10;
  width: min(760px, calc(100vw - 40px));
  padding: 30px 42px 30px;
  user-select: none;
  overflow: hidden;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.035)
  );

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;

  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);

  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 32px;
  right: 32px;
  height: 1px;

  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.75),
    rgba(255, 255, 255, 0)
  );

  opacity: 0.55;
  filter: blur(0.3px);
  pointer-events: none;
}

.card .noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  pointer-events: none;
}

.card .content {
  position: relative;
  z-index: 3;
}

.brand-link {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

.clara {
  width: auto;
  height: 68px;
  display: block;
  margin: 0 auto 8px;
  object-fit: contain;
}

.contact-form {
  width: 100%;
}

.form-header {
  text-align: center;
  margin-bottom: 22px;
}

.form-header h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.96);
}

.form-section {
  position: relative;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.form-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.section-header {
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-grid-two {
  grid-template-columns: 1fr 1fr;
}

.form-group {
  position: relative;
  min-width: 0;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;

  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;

  color: rgba(255, 255, 255, 0.86);
}

.form-group label span {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.52);
}

input,
textarea,
.dropdown-button {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;

  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;

  color: rgba(255, 255, 255, 0.94);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.94);

  background: var(--field-bg);

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.12);

  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.9);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.9);
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.9);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.9);
}

input::-moz-placeholder,
textarea::-moz-placeholder {
  color: rgba(255, 255, 255, 0.9);
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.9);
}

input:hover,
textarea:hover,
.dropdown-button:hover {
  color: rgba(255, 255, 255, 0.94);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.94);

  background: var(--field-bg-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

input:focus,
textarea:focus,
.dropdown-button:focus-visible {
  color: rgba(255, 255, 255, 0.94);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.94);

  background: var(--field-bg-focus);
  border-color: rgba(100, 150, 255, 0.72);

  box-shadow:
    0 0 0 4px rgba(80, 120, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 34px rgba(0, 0, 0, 0.18);
}

/* Autofill Chrome / Edge */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
input:autofill,
input:autofill:hover,
input:autofill:active {
  color: rgba(255, 255, 255, 0.94) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.94) !important;
  caret-color: rgba(255, 255, 255, 0.94);

  box-shadow:
    0 0 0 1000px var(--field-bg) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.12) !important;

  border-color: rgba(255, 255, 255, 0.12) !important;

  transition:
    background-color 9999s ease-in-out 0s,
    color 9999s ease-in-out 0s;
}

input:-webkit-autofill:focus,
input:autofill:focus {
  color: rgba(255, 255, 255, 0.94) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.94) !important;
  caret-color: rgba(255, 255, 255, 0.94);

  box-shadow:
    0 0 0 1000px var(--field-bg-focus) inset,
    0 0 0 4px rgba(80, 120, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 34px rgba(0, 0, 0, 0.18) !important;

  border-color: rgba(100, 150, 255, 0.72) !important;
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  padding-right: 54px;
}

.password-field input::-ms-reveal,
.password-field input::-ms-clear {
  display: none;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;

  width: 34px;
  height: 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;

  cursor: pointer;
  border-radius: 999px;

  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  border: 1px solid transparent;

  transition:
    opacity 160ms ease,
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.password-field.has-value .password-toggle,
.password-field:focus-within .password-toggle {
  opacity: 1;
  pointer-events: auto;
}

.password-toggle:hover {
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.08);
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.96);
}

.password-toggle:focus-visible {
  box-shadow: 0 0 0 4px rgba(80, 120, 255, 0.14);
}

.password-toggle-icon {
  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle.is-visible {
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

input.is-invalid,
textarea.is-invalid,
.dropdown.is-invalid .dropdown-button {
  border-color: rgba(255, 105, 105, 0.82);
  box-shadow:
    0 0 0 4px rgba(255, 80, 80, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

textarea {
  height: 142px;
  min-height: 142px;
  max-height: 142px;
  padding-top: 14px;
  padding-bottom: 14px;
  overflow-y: auto;
  resize: none;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.field-counter,
.field-help {
  display: block;
  margin-top: 7px;

  font-size: 11px;
  font-weight: 500;
  line-height: 1;

  color: rgba(255, 255, 255, 0.42);
}

.field-counter {
  margin-top: 6px;
  text-align: right;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.32);
}

.field-counter.is-warning {
  color: rgba(255, 210, 130, 0.92);
}

.field-help {
  text-align: left;
}

.dropdown {
  position: relative;
  width: 100%;
}

.dropdown.is-open {
  z-index: 50;
}

.dropdown-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.dropdown-button span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;

  font-size: 18px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.64);

  transition: transform 180ms ease;
}

.dropdown.is-open .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-content {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  left: 0;
  right: 0;

  display: none;
  width: 100%;
  height: 276px;
  max-height: 276px;
  padding: 12px 14px 12px 12px;

  overflow-y: auto;
  overflow-x: hidden;

  background: linear-gradient(
    180deg,
    rgba(10, 18, 36, 0.96),
    rgba(8, 14, 30, 0.94)
  );

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;

  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);

  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  box-sizing: border-box;
  background-clip: padding-box;
}

.dropdown-content::-webkit-scrollbar {
  width: 10px;
}

.dropdown-content::-webkit-scrollbar-track {
  margin: 10px 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.dropdown-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.dropdown.is-open .dropdown-content {
  display: grid;
  gap: 5px;
  align-content: start;
}

.dropdown-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-action-button {
  width: 100%;
  min-height: 36px;
  padding: 0 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.84);

  cursor: pointer;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);

  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.dropdown-action-button:hover {
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.dropdown-action-button:active {
  transform: scale(0.985);
}

.dropdown-note {
  padding: 9px 10px;
  margin-bottom: 6px;

  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.5);

  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.dropdown-content label {
  display: flex;
  align-items: center;
  gap: 12px;

  min-height: 42px;
  padding: 8px 10px;
  margin: 0;

  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);

  border-radius: 10px;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.dropdown-content label:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-content input[type="checkbox"] {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  min-height: auto;
  padding: 0;
  margin: 0;

  accent-color: #6b8cff;
  box-shadow: none;
}

.dropdown-content span {
  line-height: 1.25;
}

.submit-button {
  position: relative;
  z-index: 1;

  width: 100%;
  min-height: 50px;
  margin-top: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;

  cursor: pointer;
  border-radius: 16px;

  background: linear-gradient(
    135deg,
    rgba(115, 90, 255, 0.98),
    rgba(18, 145, 255, 0.98)
  );

  border: 1px solid rgba(255, 255, 255, 0.18);

  box-shadow:
    0 18px 42px rgba(18, 113, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    opacity 180ms ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);

  box-shadow:
    0 22px 54px rgba(18, 113, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
  filter: none;
}

.gradient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;

  width: 100vw;
  min-height: 100vh;
  overflow: hidden;

  background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
}

.gradient-bg .svgBlur {
  display: none;
}

.gradient-bg .noiseBg {
  position: absolute;
  inset: 0;
  z-index: 1;

  width: 100%;
  height: 100%;

  mix-blend-mode: soft-light;
  opacity: 0.18;
}

.gradient-bg .gradients-container {
  width: 100%;
  height: 100%;
  filter: url(#goo) blur(54px);
  opacity: 0.88;
}

.gradient-bg .g1,
.gradient-bg .g2,
.gradient-bg .g3,
.gradient-bg .g4,
.gradient-bg .g5,
.gradient-bg .interactive {
  position: absolute;
  mix-blend-mode: var(--blending);
}

.gradient-bg .g1 {
  background: radial-gradient(
      circle at center,
      rgba(var(--color1), 0.8) 0,
      rgba(var(--color1), 0) 50%
    )
    no-repeat;

  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  transform-origin: center center;
  animation: moveVertical 30s ease infinite;
  opacity: 1;
}

.gradient-bg .g2 {
  background: radial-gradient(
      circle at center,
      rgba(var(--color2), 0.8) 0,
      rgba(var(--color2), 0) 50%
    )
    no-repeat;

  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  transform-origin: calc(50% - 400px);
  animation: moveInCircle 20s reverse infinite;
  opacity: 1;
}

.gradient-bg .g3 {
  background: radial-gradient(
      circle at center,
      rgba(var(--color3), 0.8) 0,
      rgba(var(--color3), 0) 50%
    )
    no-repeat;

  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2 + 200px);
  left: calc(50% - var(--circle-size) / 2 - 500px);
  transform-origin: calc(50% + 400px);
  animation: moveInCircle 40s linear infinite;
  opacity: 1;
}

.gradient-bg .g4 {
  background: radial-gradient(
      circle at center,
      rgba(var(--color4), 0.8) 0,
      rgba(var(--color4), 0) 50%
    )
    no-repeat;

  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  transform-origin: calc(50% - 200px);
  animation: moveHorizontal 40s ease infinite;
  opacity: 0.7;
}

.gradient-bg .g5 {
  background: radial-gradient(
      circle at center,
      rgba(var(--color5), 0.8) 0,
      rgba(var(--color5), 0) 50%
    )
    no-repeat;

  width: calc(var(--circle-size) * 2);
  height: calc(var(--circle-size) * 2);
  top: calc(50% - var(--circle-size));
  left: calc(50% - var(--circle-size));
  transform-origin: calc(50% - 800px) calc(50% + 200px);
  animation: moveInCircle 20s ease infinite;
  opacity: 1;
}

.gradient-bg .interactive {
  background: radial-gradient(
      circle at center,
      rgba(var(--color-interactive), 0.8) 0,
      rgba(var(--color-interactive), 0) 50%
    )
    no-repeat;

  width: 100%;
  height: 100%;
  top: -50%;
  left: -50%;
  opacity: 0.7;
}

textarea::-webkit-scrollbar {
  width: 8px;
}

textarea::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

textarea::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.38);
}

@keyframes moveInCircle {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(180deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes moveVertical {
  0% {
    transform: translateY(-50%);
  }

  50% {
    transform: translateY(50%);
  }

  100% {
    transform: translateY(-50%);
  }
}

@keyframes moveHorizontal {
  0% {
    transform: translateX(-50%) translateY(-10%);
  }

  50% {
    transform: translateX(50%) translateY(10%);
  }

  100% {
    transform: translateX(-50%) translateY(-10%);
  }
}

@media (max-width: 680px) {
  .page-shell {
    align-items: flex-start;
    padding: 24px 14px;
  }

  .card {
    width: min(620px, calc(100vw - 40px));
    padding: 38px 42px 36px;
  }

  .form-grid-two {
    grid-template-columns: 1fr;
  }

  .clara {
    height: 72px;
  }

  .form-header h1 {
    font-size: 24px;
  }

  .dropdown-content {
    position: static;
    height: auto;
    max-height: 240px;
    margin-top: 10px;
  }
}
