/* =========================================================
   QRGen.africa — Generator Page Styles
   ========================================================= */

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f9fbfd;
  color: #111827;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Header ---------- */
header {
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  padding: 16px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 22px;
}

.logo span {
  color: #22C55E;
}

.back-home {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.back-home i {
  margin-right: 6px;
  font-size: 16px;
}

/* ---------- Step Bar ---------- */
.steps-bar {
  background: #f1f5f9;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  color: #6b7280;
}

.steps-bar span.active {
  color: #22C55E;
  font-weight: 600;
}

/* ---------- Main Layout ---------- */
main {
  flex: 1;
  display: flex;
  align-items: center;           /* Vertically centers phone + grid */
  justify-content: center;       /* Centers horizontally */
  gap: 60px;                     /* Balanced gap between panels */
  padding: 60px 40px;
  max-width: 1400px;             /* Prevent stretch on large screens */
  margin: 0 auto;
  flex-wrap: nowrap;
}

/* ---------- Left Panel ---------- */
.left {
  flex: 1;
  max-width: 850px;
}

.left h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

.left p.sub {
  color: #22C55E;
  font-weight: 500;
  margin-bottom: 25px;
}

.qr-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 950px;
}

.qr-type {
  background: #fff;
  border-radius: 16px;
  text-align: center;
  padding: 28px 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 3px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  cursor: pointer;
}

.qr-type:hover {
  transform: translateY(-4px);
  border-color: #22C55E;
  box-shadow: 0 6px 14px rgba(34,197,94,0.12);
}

.qr-type.active {
  border: 2px solid #22C55E;
  background: #ecfdf5;
}

.qr-type img {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    transition: transform 0.3s ease;
    background-color: #f3faf5;
    border-radius: 50%;
    padding: 13px;
    align-items: center;
}

.qr-type:hover img {
  transform: scale(1.05);
}

.qr-type h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.qr-type p {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}



/* ---------- RIGHT PANEL ---------- */
.right {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
  margin-top: 80px;
}

.phone {
    width: 336px;
    height: 695px;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
/* ---------- Right Panel ---------- */
.right {
  flex: 0 0 300px;
  display: flex;
  justify-content: flex-start;
  margin-top: 80px;
}

.phone {
  width: 336px;
  height: 695px;
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  padding: 35px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.phone img {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px #22C55E30;
}

.phone p {
  font-size: 13px;
  color: #555;
  margin: 12px 0 18px;
}

.phone input {
  width: 85%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 10px;
}

.phone button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22C55E;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.3s;
}

.phone button:hover {
  background: #16a34a;
}

.phone button i {
  margin-right: 6px;
  font-size: 18px;
}

/* ---------- Footer ---------- */
footer {
  background: #fff;
  box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #6b7280;
  margin-top: auto;
}

/* ---------- Responsive ---------- */
/* Tablet Screens (2 columns per row) */
@media (max-width: 1100px) {
  main {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    padding: 40px 20px;
  }

  .left {
    max-width: 100%;
  }

  .qr-type-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    max-width: 600px;
  }

  .right {
    justify-content: center;
  }

  .phone {
    width: 240px;
    height: 480px;
  }
}

/* Mobile (1 column per row) */
@media (max-width: 700px) {
  main {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 20px;
    gap: 30px;
  }

  .qr-type-grid {
    grid-template-columns: repeat(1, 1fr); /* Stack vertically */
    max-width: 350px;
  }

  .phone {
    width: 220px;
    height: 440px;
    border-radius: 35px;
  }

  .qr-type {
    padding: 20px 0;
  }

  .qr-type i {
    font-size: 22px;
  }
}

/* Very Small Devices (Phones under 400px) */
@media (max-width: 400px) {
  .qr-type-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .phone {
    width: 200px;
    height: 400px;
    padding: 25px 15px;
  }

  .phone input {
    width: 90%;
  }

  .phone button {
    width: 90%;
  }
}


.phone-frame {
  position: relative;
  width: 380px;
  margin: auto;
}

.phone-bg {
  width: 100%;
  display: block;
}

.phone-screen {
  position: absolute;
  top: 7.5%;
  left: 9%;
  width: 82%;
  height: 85%;
  background: #f9fbfd;
  border-radius: 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.qr-display {
  width: 180px;
  height: 180px;
  margin-bottom: 15px;
}

.download-link {
  color: #22C55E;
  font-weight: 600;
  text-decoration: none;
}

.hint-text {
  color: #6b7280;
  font-size: 14px;
  text-align: center;
  margin-bottom: 12px;
}

.generate-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.generate-form input {
  width: 90%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  outline: none;
  font-size: 14px;
  text-align: center;
}

.generate-form button {
  background-color: #22C55E;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.generate-form button:hover {
  background-color: #16a34a;
}

@media (max-width: 768px) {
  .phone-frame {
    width: 90%;
  }
  .phone-screen {
    top: 6%;
    left: 8%;
    width: 84%;
    height: 86%;
  }
}
