@font-face {
  font-family: 'Nunito Sans';
  src: url('../fonts/Nunito_Sans.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #d12b57;
  --primary-hover: #b02046;
  --bg-main: #f7f6fb;
  --bg-card: #ffffff;
  --bg-input: #f1f3f7;
  --text-main: #1a1a1a;
  --text-muted: #666666;
  --radius: 32px;
  --radius-sm: 30px;
}

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

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

.submit-btn:focus-visible,
.social-link:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 1412px;
  gap: 16px;
  border-radius: var(--radius);
  display: flex;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.left-side {
  flex: 1;
  padding: 40px;
  display: flex;
  background-color: #fff;
  flex-direction: column;
}

.logo-wrapper {
  margin-bottom: 32px;
}

.logo-wrapper-mobile {
  display: none;
}

.logo {
  display: block;
  height: 40px;
  width: auto;
}

.form-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.input-group {
  flex: 1;
}

.input-field {
  width: 100%;
  padding: 16px 20px;
  background-color: var(--bg-input);
  border: 1px solid rgba(206, 206, 206, 1);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
  font-family: inherit;
}

.input-field:focus {
  border-color: var(--primary);
  background-color: var(--bg-card);
}

.turnstile-container {
  margin-bottom: 16px;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 32px;
  font-family: inherit;
}

.submit-btn:hover {
  background-color: var(--primary-hover);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.social-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 20px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background-color: rgba(248, 248, 248, 1);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 700;
  transition: background-color 0.2s;
  gap: 4px;
}

.social-link:hover {
  background-color: #e8ebf0;
}

.social-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-info svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.arrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 26px;
  border-radius: 30px;
  border: 1px solid #000;
}

.arrow-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--text-main);
  stroke-width: 2;
}

.right-side {
  flex: 1;
  background-color: var(--primary);
  padding: 40px 40px 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.promo-info {
  color: #fff;
}

.promo-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}

.promo-subtitle {
  font-size: 18px;
}

.promo-subtitle span {
  font-weight: 700;
}

.car-image-wrapper {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.car-image {
  display: block;
  width: 115%;
  height: auto;
  max-width: none;
  margin-right: -15%;
  pointer-events: none;
}

.footer {
  margin-top: 24px;
  font-size: 11px;
  color: #6e6e6e;
  text-align: center;
}

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

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
}

.modal.success .modal-icon {
  background: #1f9d55;
}

.modal.success .modal-icon::before {
  content: '✓';
}

.modal.error .modal-icon {
  background: var(--primary);
}

.modal.error .modal-icon::before {
  content: '!';
}

.modal-title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
}

.modal-text {
  font-size: 15px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  body {
    padding: 24px 20px;
  }

  .container {
    flex-direction: column;
    border-radius: 0;
    box-shadow: none;
    gap: 12px;
  }

  .logo-wrapper {
    display: none;
  }

  .logo-wrapper-mobile {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
  }

  .right-side {
    border-radius: 40px 40px 0 0;
    padding: 30px 0 30px 18px;
    order: -1;
  }

  .form-subtitle {
    font-size: 16px;
  }

  .form-title {
    font-size: 18px;
  }

  .promo-title {
    text-align: center;
    font-size: 20px;
    padding-right: 18px;
  }

  .promo-subtitle {
    text-align: center;
    font-size: 16px;
    padding-right: 18px;
    margin-bottom: 24px;
  }

  .car-image {
    width: 100%;
    margin-right: 0;
  }

  .left-side {
    padding: 26px 20px;
    border-radius: 0 0 40px 40px;
  }

  .form-title,
  .form-subtitle {
    text-align: center;
    padding: 0 40px;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  .social-title {
    text-align: center;
  }

  .social-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
