*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #fafafa 0%, #ffebee 100%);
  min-height: 100vh;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input, select, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.top-bar {
  height: 4px;
  background: linear-gradient(90deg, #b71c1c, #d32f2f, #ef5350);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.container {
  width: 100%;
  max-width: 460px;
}

.hero {
  text-align: center;
  margin-bottom: 32px;
}

.hero__title {
  font-size: 32px;
  font-weight: 700;
  color: #b71c1c;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.hero__subtitle {
  font-size: 15px;
  color: #666;
  font-weight: 400;
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 8px 40px rgba(179, 28, 28, 0.08);
  animation: fadeUp 0.6s ease-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card__title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 28px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form__input,
.form__select {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #fafafa;
  color: #1a1a1a;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form__input:focus,
.form__select:focus {
  border-color: #d32f2f;
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
  background: #fff;
}

.form__input::placeholder {
  color: #bbb;
}

.form__input--error,
.form__select--error {
  border-color: #d32f2f !important;
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1) !important;
}

.form__error {
  font-size: 12px;
  color: #d32f2f;
  display: none;
  margin-top: 2px;
}

.form__error--visible {
  display: block;
}

.form__consent {
  font-size: 11px;
  color: #999;
  line-height: 1.5;
  text-align: center;
  margin-top: -8px;
}

.form__consent-link {
  color: #999;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__consent-link:hover {
  color: #666;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  padding: 20px;
  align-items: center;
  justify-content: center;
}

.modal-overlay--visible {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: fadeUp 0.3s ease-out;
}

.modal__close {
  position: sticky;
  top: 0;
  float: right;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0 0 0 8px;
  z-index: 1;
}

.modal__close:hover {
  color: #1a1a1a;
}

.modal__content h2 {
  font-size: 18px;
  color: #1a1a1a;
  margin-bottom: 8px;
  padding-right: 32px;
}

.modal__content h3 {
  font-size: 14px;
  color: #b71c1c;
  margin: 20px 0 8px;
}

.modal__content p {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 8px;
}

.modal__content ul {
  margin: 4px 0 12px;
  padding-left: 20px;
}

.modal__content li {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 4px;
}

.modal__content em {
  font-size: 12px;
  color: #888;
}

.form__btn-wrapper {
  text-align: center;
}

.form__btn {
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 4px;
  letter-spacing: 0.3px;
  min-width: 240px;
}

.form__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(179, 28, 28, 0.35);
}

.form__btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(179, 28, 28, 0.25);
}

.form__btn:focus-visible {
  outline: 3px solid #ef5350;
  outline-offset: 2px;
}

.form__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form--hidden {
  display: none;
}

.form__result {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
  animation: fadeUp 0.5s ease-out;
}

.form__result--visible {
  display: flex;
}

.form__result-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #43a047;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  line-height: 1;
}

.form__result-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.form__result-text {
  font-size: 14px;
  color: #888;
}

.footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer p {
  font-size: 13px;
  color: #aaa;
}

.footer__disclaimer {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.5;
  color: #bbb;
}

@media (max-width: 768px) {
  .card {
    padding: 32px 28px;
  }

  .hero__title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .main {
    padding: 20px 16px;
    align-items: flex-start;
    padding-top: 60px;
  }

  .card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .hero__title {
    font-size: 26px;
  }

  .hero__subtitle {
    font-size: 14px;
  }

  .card__title {
    font-size: 20px;
  }
}
