/* ═══════════════════════════════════════════
   Beta Banner & Feedback Modal
   ═══════════════════════════════════════════ */

/* ── Banner ─────────────────────────────── */
.beta-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  background: #2C1810;
  color: #E8E0D4;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
}

.beta-banner-text {
  flex: 1;
}

.beta-banner-link {
  color: #B8943E;
  text-decoration: underline;
  cursor: pointer;
}

.beta-banner-link:hover {
  color: #d4ab4a;
}

.beta-banner-dismiss {
  background: none;
  border: none;
  color: #E8E0D4;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.7;
}

.beta-banner-dismiss:hover {
  opacity: 1;
}

/* Push content down when banner is visible */
.beta-banner ~ .topnav,
.beta-banner ~ header.topnav {
  top: 36px !important;
}

.beta-banner ~ #main-content,
.beta-banner ~ main {
  margin-top: 36px;
}

/* ── Modal Overlay ──────────────────────── */
.beta-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.beta-modal {
  position: relative;
  background: #FAF7F2;
  color: #2C1810;
  border-radius: 12px;
  padding: 32px 28px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  font-family: var(--font-body);
}

.beta-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #2C1810;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.beta-modal-title {
  font-family: var(--font-subhead);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 20px;
  color: #2C1810;
}

/* ── Form Elements ──────────────────────── */
.beta-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 14px 0 6px;
  color: #2C1810;
}

.beta-required {
  font-weight: 400;
  color: #6B6B6B;
  font-size: 0.75rem;
}

.beta-select,
.beta-input,
.beta-textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(44, 24, 16, 0.2);
  border-radius: 8px;
  background: #fff;
  color: #2C1810;
  font-family: var(--font-body);
  font-size: 0.9rem;
  box-sizing: border-box;
}

.beta-select:focus,
.beta-input:focus,
.beta-textarea:focus {
  outline: none;
  border-color: #722F37;
  box-shadow: 0 0 0 2px rgba(114, 47, 55, 0.15);
}

.beta-textarea {
  resize: vertical;
  min-height: 100px;
}

.beta-submit {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: #722F37;
  color: #FAF7F2;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
}

.beta-submit:hover {
  background: #8a3a44;
}

/* ── Dark mode ──────────────────────────── */
@media (prefers-color-scheme: dark) {
  .beta-modal {
    background: #1C1917;
    color: #E8E0D4;
  }

  .beta-modal-close,
  .beta-modal-title,
  .beta-label {
    color: #E8E0D4;
  }

  .beta-select,
  .beta-input,
  .beta-textarea {
    background: #2a2725;
    color: #E8E0D4;
    border-color: rgba(232, 224, 212, 0.15);
  }
}
