/* ============================================
   GLOBAL RED-NEON THEME FOR INPRINT
============================================ */

/* ---------- COLOR SYSTEM ---------- */
:root {
    --bg-dark: #05060a;
    --bg-light: #0f1118;
    --accent: #ff0000;
    --accent-soft: #ff1a1a;
    --text: #f5f5f5;
    --muted: #b6b6c7;
    --card: #171924;
}

/* ---------- RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #400000 0, #05060a 45%, #000 100%);
    color: var(--text);
    line-height: 1.5;
}

/* ---------- GLOBAL LAYOUT ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: 10px 16px 64px; }

/* ---------- LINKS ---------- */
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-soft); }

/* ============================================
   HEADER
============================================ */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0 30px;
    padding-top: 5px;/* <--- Add this */
}

.logo img { height: 80px; }

nav a {
    margin-left: 16px;
    font-size: 0.9rem;
    color: var(--muted);
}
nav a:hover { color: var(--accent-soft); }

@media (max-width: 768px) {
  header {
      flex-direction: column;
      gap: 10px;
      padding: 10px 20px;
  }
}

/* =========================================================
   2️⃣ Form Elements (used in index.php)
========================================================= */
form {
  display: grid;
  gap: 16px;
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 16px;
}

fieldset {
  border: 1px solid #222;
  border-radius: 10px;
  padding: 16px;
  margin: 0;
}

legend {
  padding: 0 8px;
  color: #ddd;
  font-weight: 600;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  background: #0e0e0e;
  color: #f5f5f5;
  font-size: 14px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #00a859;
}

/* Prevent overflow within fieldsets */
fieldset input,
fieldset select,
fieldset textarea {
  max-width: 100%;
}

/* Row layout for 2 columns */
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

/* Action buttons */
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

button {
  cursor: pointer;
  border: 1px solid #2a2a2a;
  background: #1a1a1a;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 500;
}

button:hover {
  background: #222;
}

/* MyMobi Button */
a.mymobi-btn {
  display: inline-block;
  background: #00a859;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  transition: 0.3s ease;
}

a.mymobi-btn:hover {
  background: #00914e;
}

/* =========================================================
   3️⃣ QR Results Cards
========================================================= */
.results {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.card {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.qr {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.qr img {
  max-width: 220px;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  background: #fff;
}

.small {
  color: #bbb;
  font-size: 12px;
  word-break: break-all;
}

/* Selected City Display */
.city-display {
  margin-top: 10px;
}
.city-display label {
  color: #ddd;
}
#selectedCityText {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  background: #0e0e0e;
  color: #00d26a;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* =========================================================
   4️⃣ QR Ad Page (qr-ad.php)
========================================================= */

/* Make qr-ad.php fill viewport perfectly */
body.qr-ad {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
}

/* Video or image */
body.qr-ad video,
body.qr-ad img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border: 2px solid #00a859;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,168,89,0.4);
  object-fit: contain;
  margin: 10px auto;
}

/* Call-to-action button */
.cta-wrap {
  margin-top: 10px;
  text-align: center;
}

.cta-btn {
  display: inline-block;
  background: #00a859;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover {
  background: #00914e;
  transform: scale(1.05);
}

/* Footer */
footer {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #777;
  text-align: center;
}

.qr-hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.qr-hero {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Equal columns */
    gap: 30px;
    align-items: center;
}

/* =========================================================
   QR RESULTS — 2 columns desktop | 1 column mobile
========================================================= */
.qr-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 25px;
}

.qr-item {
    background: #111;
    border: 1px solid #222;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 12px rgba(255,0,0,0.15);
}

.qr-item .thumb {
    width: 100%;
    background: #000;
    border-radius: 10px;
}

.qr-item img {
    width: 100%;
    max-width: 230px;
    height: auto;
    display: block;
    margin: 0 auto 12px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    background: #fff;
}

.qr-item h3 {
    margin: 10px 0 5px;
    font-size: 1.1rem;
    color: var(--accent-soft);
}

.qr-item p {
    font-size: 0.8rem;
    color: #bbb;
    word-break: break-all;
    margin: 5px 0 12px;
}

.qr-item .btn.btn-primary {
    display: inline-block;
    padding: 8px 14px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.25s ease;
}

.qr-item .btn.btn-primary:hover {
    background: var(--accent-soft);
}

/* ----- Mobile: stack vertically ----- */
@media (max-width: 768px) {
    .qr-results {
        grid-template-columns: 1fr;
    }
}

.quick-url-result {
    margin-top: 25px;
    padding: 25px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,0,0,0.25);
    border-radius: 10px;
    text-align: center;
}

.quick-url-result .thumb {
    width: 220px;
    height: 220px;
    margin: 0 auto 15px;
    background: #000;
    padding: 10px;
    border-radius: 12px;
}

.quick-url-result img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-video-wrap {
    width: 100%;
    max-width: 650px;       /* same width as your forms */
    margin: 0 auto 30px;    /* center + spacing below */
    display: flex;
    justify-content: center;
}

.qr-video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255,0,0,0.35); /* subtle red glow */
}
