﻿.early-access-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 4.25rem 1.75rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.early-access-header h1 {
  font-size: 2.6rem;
  line-height: 1.18;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.early-access-header p {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 640px;
}

.early-access-card {
  background: rgba(64, 171, 237, 0.08);
  border: 1px solid rgba(64, 171, 237, 0.28);
  border-radius: 22px;
  padding: 2.25rem 2rem;
  box-shadow: 0 32px 60px rgba(7, 28, 48, 0.28);
}

[data-theme="light"] .early-access-card {
  background: rgba(7, 28, 48, 0.05);
  border-color: rgba(7, 28, 48, 0.12);
  box-shadow: 0 24px 50px rgba(7, 28, 48, 0.15);
}

.early-access-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.75rem;
}

#early-access-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ea-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
}

.ea-field,
.ea-fieldset,
.ea-field--stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ea-field label,
.ea-field legend {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.ea-field input,
.ea-field select,
.ea-field textarea {
  width: 100%;
  padding: 0.82rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(64, 171, 237, 0.35);
  background: rgba(7, 28, 48, 0.4);
  color: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

[data-theme="light"] .ea-field input,
[data-theme="light"] .ea-field select,
[data-theme="light"] .ea-field textarea {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(7, 28, 48, 0.16);
}

.ea-field input:focus,
.ea-field select:focus,
.ea-field input:focus-visible,
.ea-field select:focus-visible,
.ea-field textarea:focus,
.ea-field textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent-start);
  box-shadow: 0 0 0 3px rgba(64, 171, 237, 0.25);
  background: rgba(7, 28, 48, 0.52);
}

[data-theme="light"] .ea-field input:focus,
[data-theme="light"] .ea-field select:focus,
[data-theme="light"] .ea-field textarea:focus {
  background: rgba(255, 255, 255, 1);
}

.ea-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.ea-field input[type="number"]::-webkit-outer-spin-button,
.ea-field input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.ea-field input[type="number"] {
  appearance: textfield;
}

.ea-field select {
  appearance: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="14" height="9" fill="%23ffffff"%3E%3Cpath d="M1.6 0 7 5.4 12.4 0 14 1.6 7 8.6 0 1.6z"/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 14px 9px;
}

[data-theme="light"] .ea-field select {
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="14" height="9" fill="%23071C30"%3E%3Cpath d="M1.6 0 7 5.4 12.4 0 14 1.6 7 8.6 0 1.6z"/%3E%3C/svg%3E');
}

.ea-hint {
  font-size: 0.84rem;
  opacity: 0.75;
  line-height: 1.45;
}

fieldset.ea-field {
  border: none;
  padding: 0;
  margin: 0;
}

.ea-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ea-options--row .ea-option {
  flex: 1 1 120px;
  min-width: 120px;
}

.ea-option {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(64, 171, 237, 0.35);
  background: rgba(7, 28, 48, 0.35);
  font-size: 0.94rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ea-option input[type="radio"] {
  accent-color: var(--color-accent-start);
  width: 1.05rem;
  height: 1.05rem;
}

.ea-option:hover {
  border-color: var(--color-accent-start);
}

[data-theme="light"] .ea-option {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(7, 28, 48, 0.16);
}

.ea-messages {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ea-message {
  font-size: 0.92rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
}

.ea-message--warning {
  background: rgba(255, 193, 7, 0.18);
  border-color: rgba(255, 193, 7, 0.32);
  color: #ffd66d;
}

.ea-message--success {
  background: rgba(46, 204, 113, 0.18);
  border-color: rgba(46, 204, 113, 0.32);
  color: #7ef4c2;
}

.ea-message--error {
  background: rgba(231, 76, 60, 0.18);
  border-color: rgba(231, 76, 60, 0.32);
  color: #ffb5ab;
}

[data-theme="light"] .ea-message--warning { color: #8a5a00; }
[data-theme="light"] .ea-message--success { color: #1f7a4c; }
[data-theme="light"] .ea-message--error { color: #8a1f14; }

.ea-actions {
  display: flex;
  justify-content: flex-end;
}

.ea-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.4rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(64, 171, 237, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ea-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(64, 171, 237, 0.32);
  opacity: 0.95;
}

.ea-actions .btn-primary.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

@media (max-width: 900px) {
  .ea-actions {
    justify-content: center;
  }

  .ea-actions .btn-primary {
    width: min(320px, 100%);
  }
}

@media (max-width: 720px) {
  .early-access-main {
    padding: 3.25rem 1.35rem 4rem;
    gap: 2.25rem;
  }

  .early-access-card {
    padding: 2rem 1.5rem;
  }

  .ea-grid {
    grid-template-columns: 1fr;
  }

  .ea-consent {
    flex-direction: column;
    gap: 0.75rem;
  }

  .ea-consent__wrapper {
    gap: 0.75rem;
  }
}

.ea-option.is-selected {
  border-color: var(--color-accent-start);
  background: linear-gradient(135deg, rgba(64, 171, 237, 0.22), rgba(44, 116, 179, 0.3));
  color: var(--color-text);
}

[data-theme="light"] .ea-option.is-selected {
  background: linear-gradient(135deg, rgba(64, 171, 237, 0.18), rgba(44, 116, 179, 0.2));
  border-color: rgba(44, 116, 179, 0.55);
}

.ea-option input[type="radio"]:focus-visible {
  outline: 2px solid var(--color-accent-start);
  outline-offset: 2px;
}


.ea-consent {
  border: 1px solid rgba(64, 171, 237, 0.35);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  background: rgba(7, 28, 48, 0.32);
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

[data-theme="light"] .ea-consent {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(7, 28, 48, 0.16);
}

.ea-consent__wrapper {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  cursor: pointer;
}

.ea-consent__wrapper input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--color-accent-start);
}

.ea-consent__wrapper strong {
  display: block;
  font-size: 0.97rem;
  margin-bottom: 0.25rem;
}

.ea-consent__text {
  display: block;
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0.85;
}
