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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #1b1f23;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #333;
}

.container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(251, 183, 0, 0.1);
}

header {
  background: #1b1f23;
  color: white;
  padding: 30px 30px 40px;
  text-align: center;
}

header .logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
}

header h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

header .subtitle {
  font-size: 16px;
  opacity: 0.9;
}

.intro-text {
  padding: 30px 30px 15px 30px;
  margin: 0;
}

.intro-text p {
  color: #444;
  line-height: 1.7;
  font-size: 15px;
  margin: 0;
}

.welcome-section {
  background: #fffbf0;
  border-left: 4px solid #fbb700;
  padding: 25px 30px;
  margin: 0 0 25px 0;
  border-radius: 8px;
}

.welcome-intro {
  color: #444;
  line-height: 1.7;
  font-size: 15px;
  margin: 0;
}

main {
  padding: 20px 30px;
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

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

h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}

.description {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #555;
}

.form-group input[type='email'] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input[type='email']:focus {
  outline: none;
  border-color: #fbb700;
}

.code-inputs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 30px;
}

.code-input {
  width: 60px;
  height: 70px;
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: border-color 0.3s;
}

.code-input:focus {
  outline: none;
  border-color: #fbb700;
  background: #fffbf0;
}

.consents-form {
  margin-bottom: 30px;
}

.consent-item {
  margin-bottom: 20px;
  padding: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition:
    border-color 0.3s,
    background 0.3s;
}

.consent-item:hover {
  border-color: #fbb700;
  background: #fffbf0;
}

.consent-item label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
}

.consent-item input[type='checkbox'] {
  margin-right: 15px;
  margin-top: 3px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.consent-label strong {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
  color: #333;
}

.consent-label p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.privacy-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #999;
}

.privacy-footer a {
  color: #fbb700;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.privacy-footer a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.privacy-footer .separator {
  margin: 0 8px;
  color: #ddd;
}

.btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 10px;
}

.btn-primary {
  background: #fbb700;
  color: #1b1f23;
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(251, 183, 0, 0.4);
  background: #ffc933;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  background: #ccc;
  box-shadow: none;
}

.btn-secondary {
  background: #fbb700;
  color: #1b1f23;
  border: 2px solid transparent;
  font-weight: 700;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(251, 183, 0, 0.4);
  background: #ffc933;
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  background: #ccc;
  box-shadow: none;
}

.info-message {
  padding: 16px 20px;
  background: #fffaf0;
  border: 2px solid #f6ad55;
  border-radius: 8px;
  color: #744210;
  margin-top: 15px;
  display: none;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(246, 173, 85, 0.1);
}

.info-message::before {
  content: 'ℹ️ ';
  margin-right: 8px;
  font-size: 18px;
}

.info-message strong {
  display: inline;
  font-size: 16px;
}

.info-message p {
  margin-top: 10px;
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1.5;
}

.info-message.show {
  display: block;
  animation: fadeIn 0.3s;
}

.error-message {
  padding: 16px 20px;
  background: #fff5f5;
  border: 2px solid #fc8181;
  border-radius: 8px;
  color: #c53030;
  margin-top: 15px;
  display: none;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(252, 129, 129, 0.1);
}

.error-message::before {
  content: '⚠️ ';
  margin-right: 8px;
  font-size: 18px;
}

.error-message.show {
  display: block;
  animation:
    shake 0.5s,
    fadeIn 0.3s;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.success-message {
  padding: 16px 20px;
  background: #f0fff4;
  border: 2px solid #68d391;
  border-radius: 8px;
  color: #22543d;
  margin-top: 15px;
  display: none;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(104, 211, 145, 0.1);
}

.success-message::before {
  content: '✅ ';
  margin-right: 8px;
  font-size: 18px;
}

.success-message.show {
  display: block;
  animation:
    fadeIn 0.3s,
    slideDown 0.3s;
}

.loading {
  text-align: center;
  padding: 15px;
  color: #fbb700;
  font-weight: 600;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(251, 183, 0, 0.3);
  border-top-color: #fbb700;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
  }
  to {
    transform: translateY(0);
  }
}

footer {
  background: #1b1f23;
  padding: 20px 30px;
  text-align: center;
  font-size: 14px;
  color: #999;
  border-top: 1px solid rgba(251, 183, 0, 0.2);
}

footer p {
  margin-bottom: 10px;
}

footer a {
  color: #fbb700;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

footer .privacy-footer {
  margin-top: 10px;
  font-size: 12px;
  color: #777;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 24px;
  }

  .code-input {
    width: 50px;
    height: 60px;
    font-size: 28px;
  }

  .consent-item {
    padding: 15px;
  }
}
