:root {
  --bg: rgba(18, 18, 18, 0.95);
  --panel: rgba(36, 36, 36, 0.55);
  --panel-strong: rgba(36, 36, 36, 0.7);
  --border: #3b3b3b;
  --muted: #a3a3a3;
  --gold: #f0a500;
  --gold-soft: #ffdb7f;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

/* Popup Styles */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
}

.popup.active {
  display: flex;
}

.popup-card {
  background: #111;
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--border);
}

.popup-card h4 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #fff;
}

.popup-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.popup-card input,
.popup-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 10px;
  background: #0b0b0b;
  color: var(--white);
  box-sizing: border-box;
}

.popup-card textarea {
  resize: vertical;
  min-height: 90px;
}

.popup-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}

.btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.btn.primary {
  background: var(--gold) !important;
  color: #fff !important;
  border-color: transparent;
}

.note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* Standalone form styles (No background) */
.visa-card-standalone {
  width: 100%;
  max-width: 420px;
  padding: 20px 0;
  /* Vertical padding, no horizontal as no border */
  margin: 0 auto;
  background: transparent;
}

.visa-card-standalone h3 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 600;
  background: linear-gradient(to right, var(--gold), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
}

.visa-field {
  margin-bottom: 16px;
}

.visa-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: inherit;
  /* Adapt to parent text color */
}

/* Default to light/dark compatible inputs but keeping the 'gold' tint design */
.visa-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(240, 165, 0, 0.4);
  /* Subtle glassy background */
  background: rgba(240, 165, 0, 0.1);
  color: inherit;
  box-sizing: border-box;
}

.visa-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(240, 165, 0, 0.2);
  background: transparent;
  color: inherit;
  /* Adapt */
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  font-weight: 500;
}

/* Ensure button text is visible if color inherits weirdly */
.visa-btn {
  color: #fff;
  /* Force white for button text usually looks best on dark/gold buttons, but if background is white... */
  color: inherit;
}

/* If background is light, we might want button text to be dark? 
   Let's force a color that works with the border. */
.visa-btn {
  color: var(--gold);
}

.visa-btn:hover {
  background: var(--gold);
  color: #111;
}

@media (max-width: 900px) {
  .visa-card-standalone {
    margin: 24px auto 0;
    max-width: 100%;
    padding: 20px;
  }
}