
@font-face {
  font-family: 'EuclidCircularB';
  src: url('./fonts/Euclid Circular B Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'EuclidCircularB';
  src: url('./fonts/Euclid Circular B Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'EuclidCircularB';
  src: url('./fonts/Euclid Circular B Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'EuclidCircularB';
  src: url('./fonts/Euclid Circular B SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'EuclidCircularB';
  src: url('./fonts/Euclid Circular B Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

* {
  box-sizing: border-box;
  font-family: 'EuclidCircularB', sans-serif;
}

body {
  margin: 0;
  background: #ffffff;
  color: #333333;
}

.container {
  max-width: 480px;
  margin: auto;
  padding: 16px;
}

.main-title {
  font-weight: 500;
  font-size: 24px;
  line-height: 24px;
  color: #333333;
}

.subtext {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
}

.field {
  margin-bottom: 16px;
}

.text-input {
  width: 100%;
  height: 40px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #DDE0E8;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #333333;
  margin-top: 4px;
}

label {
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: #333333;
  margin-bottom: 4px;
}

input.error-input {
  border-color: #ff4d4f;
}

.error {
  margin-top: 4px;
  font-size: 12px;
  color: #ff4d4f;
  min-height: 14px;
}

.optional-title {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #333333;
}

.checkbox {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.check-mark {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid #B0B0B0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  position: relative;
  flex-shrink: 0;
}

.check-mark::after {
  content: "";
  width: 4px;
  height: 6px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.1s ease;
}

input:checked + .check-mark {
  background: #2DBE64;
  border-color: #2DBE64;
}

input:checked + .check-mark::after {
  opacity: 1;
}

.check-mark.error {
  border-color: red;
}

input:checked + .check-mark.error {
  background: #ff4d4f;
}

button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: 16px;
  border: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: #FFFFFF;
  background: #2DBE64;
  margin-top: 24px;
}