@import "./reset.css";
@import "./fonts/fonts.css";

:root {
  --grey-100: #cdd1d4;
  --text-color: #000000;
  --orange-100: #fe9946;
  --blue-100: #0c8ce9;
  --white-100: #f1f5f8;
}

.loader {
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid white;
  animation: l20-1 0.8s infinite linear alternate, l20-2 1.6s infinite linear;
  display: none;
}

@keyframes l20-1 {
  0% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%);
  }
  12.5% {
    clip-path: polygon(
      50% 50%,
      0 0,
      50% 0%,
      100% 0%,
      100% 0%,
      100% 0%,
      100% 0%
    );
  }
  25% {
    clip-path: polygon(
      50% 50%,
      0 0,
      50% 0%,
      100% 0%,
      100% 100%,
      100% 100%,
      100% 100%
    );
  }
  50% {
    clip-path: polygon(
      50% 50%,
      0 0,
      50% 0%,
      100% 0%,
      100% 100%,
      50% 100%,
      0% 100%
    );
  }
  62.5% {
    clip-path: polygon(
      50% 50%,
      100% 0,
      100% 0%,
      100% 0%,
      100% 100%,
      50% 100%,
      0% 100%
    );
  }
  75% {
    clip-path: polygon(
      50% 50%,
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%,
      50% 100%,
      0% 100%
    );
  }
  100% {
    clip-path: polygon(
      50% 50%,
      50% 100%,
      50% 100%,
      50% 100%,
      50% 100%,
      50% 100%,
      0% 100%
    );
  }
}
@keyframes l20-2 {
  0% {
    transform: scaleY(1) rotate(0deg);
  }
  49.99% {
    transform: scaleY(1) rotate(135deg);
  }
  50% {
    transform: scaleY(-1) rotate(0deg);
  }
  100% {
    transform: scaleY(-1) rotate(-135deg);
  }
}

.visually-hidden {
  position: absolute;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 22px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

.container {
  max-width: 576px;
  margin: 0 auto;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
}

.subtitle {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-color);
}

.input {
  border: 1px solid var(--grey-100);
  border-left: 0;
  border-top: 0;
  border-right: 0;
  outline: 0;
  padding: 5px;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 18px;
  width: 100%;
  transition: all 0.2s ease-in;
}

.input::placeholder {
  color: var(--grey-100);
  font-weight: 400;
  font-size: 12px;
}

.input:focus {
  border-color: black;
}

.submitButton {
  font-weight: 500;
  font-size: 14px;
  text-align: center;
  background-color: var(--orange-100);
  border-radius: 100px;
  padding: 10px 24px;
  border: 0;
  cursor: pointer;
  color: white;
  margin-top: 20px;
  transition: opacity 0.1s;
  display: flex;
  gap: 10px;
}

.submitButton:focus {
  opacity: 0.7;
}

.submitButton:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.question {
  font-size: 12px;
  font-weight: 800;
}

.contacts {
  font-size: 12px;
  font-weight: 400;
}

.link {
  color: var(--blue-100);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  width: 34px;
  height: 34px;
}

dialog#successModal {
  border: 0;
  border-radius: 20px;
  max-width: 320px;
}

.successContent {
  background-color: white;
  max-width: 400px;
  padding: 32px;
  position: relative;
}

dialog#successModal::backdrop {
  background: #f1f5f8;
  padding: 0 24px;
}

.successIcon {
  display: block;
  margin: 0 auto;
  margin-bottom: 32px;
}

.successText {
  text-align: start;
  font-size: 12px;
  font-weight: 400;
}

.actions {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
