/* =========================================================
   QR Code Generator – Custom Styles
   Matches the shared design (sec-1 form & sec-2 QR result)
   ========================================================= */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- Section wrapper ---------- */
.qr-section {
  /* background: #f4f5fb; */
  /* min-height: 100vh; */
  padding: 60px 0 40px;
  font-family: 'Urbanist', sans-serif;
}

/* ---------- Left column – hero text ---------- */
.qr-hero h1 {
  font-family: 'Urbanist', sans-serif !important;
}

    .qr-hero .qr-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: #979797;
    line-height: normal;
    margin-bottom: 46px;
    /* max-width: 380px; */
    }

/* ---------- Steps list ---------- */
.qr-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 64px;
}

.qr-steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.qr-step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ede9fe;
    color: #6c35de;
    font-size: 16px;
    line-height: normal;
    font-weight: 500;
    font-family: 'Inter';
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-step-text h4 {
    font-size: 18px;
    line-height: normal;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    color: #192839;
    margin: 0 0 4px;
}

.qr-step-text p {
    font-size: 12px;
    line-height: normal;
    font-family: 'DM Sans';
    color: #979797;
    margin: 0;
}

/* ---------- Signup prompt ---------- */
.qr-signup-text {
    font-size: 20px;
    line-height: normal;
    font-family: 'DM Sans', sans-serif;
    color: #000000;
    /* margin-top: 8px; */
}

.qr-signup-text a {
    font-size: 20px;
    line-height: normal;
    font-family: 'DM Sans', sans-serif;
    color: #6D44E5;
    font-weight: 700;
    text-decoration: none;
}

.qr-signup-text a:hover {
  text-decoration: underline;
  color: #6D44E5;
}

/* =========================================================
   Right column – card flip container
   ========================================================= */
.qr-card-wrap {
  perspective: 1200px;
}

/* The flipping card */
.qr-flip-card {
  position: relative;
  width: 100%;
  min-height: 518px;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.45, 0, 0.55, 1);
}

.qr-flip-card.is-flipped {
  transform: rotateY(180deg);
}

/* Front and back share these */
.qr-card-front,
.qr-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* background: #F5F7FF; */
  background: var(--BG-Grey, #F5F7FF);
  border-radius: 16px;
  /* box-shadow: 0 4px 24px rgba(108, 53, 222, 0.08); */
  padding: 26px;
  display: flex;
  flex-direction: column;
}

/* Back face is rotated 180deg */
.qr-card-back {
  transform: rotateY(180deg);
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---------- Form labels ---------- */
.qr-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    font-family: DM sans, sans-serif;
    color: #374151;
    margin-bottom: 5px;
}

.qr-form label span.req {
  color: #ef4444;
  margin-left: 2px;
}

/* ---------- Inputs ---------- */
.qr-form .qr-input {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: normal;
    font-family: 'DM Sans';
    font-weight: 400;
    color: #2a2a2a;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.qr-form .qr-input::placeholder {
  color: #757575;
  font-size: 14px;
  font-family: 'DM Sans';
}

.qr-form .qr-input:focus {
  border-color: #6c35de;
}

.qr-form .form-group {
  margin-bottom: 16px;
}

/* ---------- Generate QR button ---------- */
.btn-generate-qr {
  display: block;
  width: 100%;
  padding: 14px;
  background: #6c35de;
  color: #fff;
  font-size: 16px;
  font-family: 'DM Sans';
  font-weight: 500;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 26px;
  transition: background 0.2s, transform 0.15s;
}

.btn-generate-qr:hover {
  background: #5a28c0;
  transform: translateY(-1px);
}

.btn-generate-qr:active {
  transform: translateY(0);
}

.btn-generate-qr:focus{
    outline: none;
}

/* ---------- UPI badges row (below card) ---------- */
.qr-upi-badges {
  text-align: center;
  margin-top: 18px;
}

.qr-upi-badges p {
    font-size: 14px;
    font-family: 'DM Sans';
    font-weight: 500;
    color: #979797;
    margin-bottom: 10px;
}

.qr-upi-badges .badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.qr-upi-badges .badge-row img {
  height: 30px;
  width: 30px;
  object-fit: contain;
}

/* =========================================================
   Back face – QR result
   ========================================================= */
.qr-result-title {
    font-size: 17px;
    line-height: normal;
    font-family: 'Inter';
    font-weight: 700;
    color: #111827;
    margin-bottom: 18px;
}

.qr-code-img-wrap {
  width: 220px;
  height: 220px;
  margin: 0 auto 14px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-img-wrap canvas,
.qr-code-img-wrap img {
  width: 100% !important;
  height: 100% !important;
}

.qr-scan-hint {
    font-size: 14px;
    font-family: 'Inter';
    font-weight: 400;
    color: #979797;
    margin-bottom: 24px;
}

/* ---------- Download button ---------- */
.btn-download-qr {
  display: block;
  width: 100%;
  padding: 13px;
  background: #6c35de;
  color: #fff;
  font-size: 16px;
  line-height: normal;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
  text-decoration: none;
}

.btn-download-qr:hover {
  background: #5a28c0;
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.btn-download-qr:focus{
    outline: none;
}

/* ---------- Generate again link ---------- */
.qr-again-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.83rem;
  color: #6c35de;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
}

.qr-again-link:hover {
  text-decoration: underline;
  color: #5a28c0;
}

.qr-again-link:focus {
  outline: none;
}

/* =========================================================
   Responsive tweaks
   ========================================================= */
@media (max-width: 991px) {
  .qr-hero h1 {
    font-size: 2rem;
  }

  .qr-flip-card {
    min-height: 524px;
    margin-top: 32px;
  }

  .qr-card-wrap {
    padding: 0 10px;
  }
}

@media (max-width: 767px) {
  .qr-hero h1 {
    font-size: 1.7rem;
  }

.qr-hero .qr-subtitle {
    font-size: 20px;
    line-height: normal;
}

.qr-signup-text {
    font-size: 14px;
    line-height: normal;
    text-align: center;
}

.qr-signup-text a {
    font-size: 14px;
    line-height: normal;
    }

  .qr-card-front,
  .qr-card-back {
    padding: 24px 18px 20px;
  }

  .qr-code-img-wrap {
    width: 180px;
    height: 180px;
  }
}
