/* ============================================================
   signup-gate.css — Signup wall overlay for lesson pages
   ============================================================ */

.sg-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(22,23,29,0.96);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.sg-card {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  animation: sgFadeUp 0.5s ease forwards;
}

.sg-logo {
  height: 54px;
  margin-bottom: 28px;
}

.sg-title {
  font-family: "Lora", serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.sg-desc {
  font-size: 0.92rem;
  color: var(--white-dim);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ---------- FORM ---------- */
.sg-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.sg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sg-field label {
  display: block;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}

.sg-req {
  color: var(--orange);
}

.sg-field input,
.sg-field select {
  width: 100%;
  padding: 13px 16px;
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.sg-field input::placeholder {
  color: rgba(255,255,255,0.28);
}

.sg-field input:focus,
.sg-field select:focus {
  outline: none;
  border-color: var(--blue-light);
}

.sg-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.sg-field select option {
  background: var(--navy-mid);
  color: var(--white);
}

/* ---------- HONEYPOT (hidden) ---------- */
.sg-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

/* ---------- ERROR ---------- */
.sg-error {
  color: var(--orange);
  font-size: 0.84rem;
  min-height: 1.2em;
  margin: 0;
  text-align: center;
}

/* ---------- SUBMIT ---------- */
.sg-submit {
  width: 100%;
  padding: 15px 32px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.sg-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(3,136,166,0.3);
}

.sg-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- LEGAL ---------- */
.sg-legal {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* ---------- ANIMATION ---------- */
@keyframes sgFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 520px) {
  .sg-card {
    padding: 36px 24px;
  }
  .sg-row {
    grid-template-columns: 1fr;
  }
  .sg-title {
    font-size: 1.3rem;
  }
}
