
  nav {
  background: linear-gradient(90deg, #11ff35, #0a7500);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 16px;       /* 🔹 padding कमी केली (10px → 6px) */
  height: 50px;            /* 🔹 Navbar ची height कमी केली */
  padding-top: 1px !important;
  position: fixed;
  margin-top: 0 !important; 
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.logo-spin {
  width: var(--logo-size, 120px);
  height: auto;
  animation: spin3D 10s linear infinite;
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 30px rgb(2, 255, 18));
  transition: width 0.3s ease;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #064b00;   /* Dark green patch */
  padding: 3px 10px;           /* 🔹 कमी केलेलं padding */
  border-radius: 8px;
  height: 46px;                /* 🔹 navbarच्या आत बसण्यासाठी height adjust */
  box-shadow: inset 0 0 4px rgba(0,0,0,0.3);
}


/* 🟢 Home Page Logo मोठा आणि नीट केंद्रात */
#homeLogo {
  width: 150px;       /* 🔹 लोगोचा आकार — मोठा */
  height: auto;
  margin-bottom: 12px;
  animation: spin3D 10s linear infinite;
  filter: drop-shadow(0 0 40px rgb(17, 255, 33));
  transform-style: preserve-3d;
}
/* Smooth 3D spin */
@keyframes spin3D {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}


/* 🔹 Navbar Title Text */
.nav-title {
  font-size: 1.2em;
  font-weight: 700;
  color: #fff;
  margin-top: 6px;            /* 🔹 text पण वर */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 🔹 Navbar Menu (ul/li) */
nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  margin-top: 6px;           /* 🔹 menu थोडं वर सरकलं */
}
nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: 0.3s;
}
nav ul li a:hover { color: #c8e6c9; }

/* 🌾 Smart Farmer — Animated Golden Border Text */
.nav-title-3d {
  font-size: 1.5em;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #258611; /* text color white */
  
  /* ✨ Moving gradient inside the stroke */
  background: linear-gradient(
    90deg,
    #b8860b,
    #ffd700,
    #ffef9f,
    #ffd700,
    #b8860b
  );

}
/* 🌟 Border movement animation */
@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}



/* General reset & body */
*{box-sizing:border-box;margin:0;padding:0;font-family:"Poppins",sans-serif;}
body {
  background: url('images/farmer.jpeg') no-repeat center center/cover;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Navbar */
nav {
  background: linear-gradient(90deg, #11ff35, #0a7500);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;

  /* ही तीन ओळी जोडा 👇 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* Navbar नंतरचा भाग content खाली दिसण्यासाठी */
body {
  background: url('images/farmer.jpeg') no-repeat center center/cover;
  background-attachment: fixed;
  overflow-x: hidden;

  /* ही एक ओळ जोडा 👇 (navbarच्या उंचीइतकी जागा देईल) */
  padding-top: 70px;
}

nav .logo { font-size:1.5em; font-weight:bold; }
nav ul { list-style:none; display:flex; gap:18px; margin:0; padding:0; }
nav ul li { position:relative; }
nav ul li a { color:white; text-decoration:none; font-weight:600; transition:0.3s; }
nav ul li a:hover { color:#c8e6c9; }
nav ul li ul.dropdown { display:none; position:absolute; background:#388e3c; top:30px; left:0; padding:10px 0; min-width:200px; border-radius:4px; }
nav ul li:hover ul.dropdown { display:block; }
nav ul li ul.dropdown li { padding:8px 12px; }
nav ul li ul.dropdown li a:hover { background:#1b5e20; display:block; }
.menu-toggle { display:none; font-size:1.8em; cursor:pointer; }
@media(max-width:768px){ nav ul{ display:none; width:100%; flex-direction:column; background:#2e7d32;} nav ul.show{display:flex;} .menu-toggle{display:block;} }

/* Sections */
section {
  display: none;
  min-height: calc(100vh - 60px);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  margin-top: 10px;
  color: #fff;
  text-align: center;
  background: transparent;
}

/* Overlay shading */
{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 0;
}

/* Page1 Heading */
#page1 h1 {
  position: relative;
  z-index:1;
  font-size:4rem;
  margin-bottom:24px;
  text-shadow:2px 2px 6px #000;
}
#page1 button {
  position: relative;
  z-index:1;
  padding:12px 30px;
  font-size:1.1rem;
  border-radius:8px;
  border:none;
  background:#00b300;
  color:#fff;
  cursor:pointer;
}
#page1 button:hover{background:#195a06;}

/* Page content box */
.page-content{position:relative;z-index:1;background:rgba(255,255,255,0.95);color:#111;padding:22px;border-radius:14px;box-shadow:0 6px 20px rgba(0,0,0,0.25);max-width:720px;width:90%;}
h2{margin-bottom:14px;color:#222;}
.field{display:flex;flex-direction:column;margin-bottom:12px;align-items:flex-start;}
.field label{font-size:14px;margin-bottom:6px;color:#333;}
.field input,.field textarea{width:100%;max-width:480px;padding:10px;border:1px solid #bbb;border-radius:6px;font-size:15px;}
textarea{height:72px;resize:none;}
.row {display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:8px;}
.btn {padding:10px 18px;border-radius:8px;border:none;background:#00b300;color:#fff;cursor:pointer;font-size:15px;}
.btn:hover{background:#009900;}
.btn-muted {background:#777;}

/* Card Preview */
.card-wrap{display:flex;gap:20px;flex-wrap:wrap;align-items:flex-start;justify-content:center;}
.card{
    width:340px;
    height:220px;
    border-radius:12px;
    background: linear-gradient(135deg, #f0f4c3, #aed581);
    border:1px solid #9ccc65;
    box-shadow:0 6px 18px rgba(0,0,0,0.28);
    position:relative;
    padding:12px;
    transition:0.3s;
}
.card:hover{transform:translateY(-4px);box-shadow:0 12px 24px rgba(0,0,0,0.32);}
.photo{
    width:80px;height:100px;
    background:#fff;
    border:2px solid #009900;
    position:absolute;
    top:18px;
    left:12px;
    border-radius:6px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 2px 6px rgba(0,0,0,0.3);
    color:#666;
}
.qr{
    width:70px;height:70px;
    background:#fff;
    border:2px solid #009900;
    position:absolute;
    bottom:12px;
    right:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 2px 6px rgba(0,0,0,0.3);
    color:#666;
}
.front-text{position:absolute;top:16px;left:110px;right:18px;font-size:14px;line-height:1.2;color:#111;}
.back-text{position:absolute;top:14px;left:12px;right:12px;font-size:14px;line-height:1.18;color:#111;}
.controls{text-align:center;margin-top:16px;}


/* 🌿 Home Page Content Top ला नेण्यासाठी */
#page1 .page-content {
  position: relative;
  top: -60px;       /* 🔹 सगळं वर सरकवलं (तू हे -80px पर्यंत करू शकतोस) */
  text-align: center;
}



/* 🧱 Browser Reset - Chrome & Edge uniform */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: #f0fff0; /* किंवा तुझा original background */
  font-family: "Poppins", "Noto Sans Devanagari", sans-serif !important;
}

/* ✅ Force Edge to use same scaling & font hinting as Chrome */
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-smooth: always;
  zoom: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ✅ Image & card rendering identical */
img {
  image-rendering: -webkit-optimize-contrast;
  -webkit-user-drag: none;
  user-select: none;
}

/* ✅ Shadow & Glow uniform fix */
.card, .logo, .photo, .preview {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}



/* About section styled like Schemes/Services */
.about-box {
  display: flex;
  align-items: center;
  background: rgba(240, 255, 240, 0.9);
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  color: #1a3c1a;
  font-size: 16px;
  font-weight: 600;
}
.about-box span {
  text-align: left;
}
@media (max-width: 600px) {
  .about-box {
    text-align: center;
    font-size: 15px;
  }
}



/* Services section styling (same as schemes) */
.service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(240, 255, 240, 0.9);
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
.service-row span {
  font-size: 16px;
  font-weight: 600;
  color: #1a3c1a;
}
.service-row .btn {
  background: #00b300;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 6px;
}
.service-row .btn:hover {
  background: #009900;
}
@media (max-width: 600px) {
  .service-row {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}



/* Schemes section styling */
.scheme-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(240, 255, 240, 0.9);
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
.scheme-row span {
  font-size: 16px;
  font-weight: 600;
  color: #1a3c1a;
}
.scheme-row .btn {
  background: #00b300;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 6px;
}
.scheme-row .btn:hover {
  background: #009900;
}
@media (max-width: 600px) {
  .scheme-row {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}



.feedback-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(240, 255, 240, 0.9);
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  color: #1a3c1a;
  font-weight: 600;
  width: 100%;
}
.feedback-box label { font-size: 15px; margin-bottom: 5px; }
.feedback-box input, .feedback-box textarea {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #bbb;
  font-size: 14px;
}
.feedback-box textarea { resize: none; height: 70px; }
@media (max-width: 600px) {
  .feedback-box { text-align: center; align-items: center; }
}



/* Help / FAQ section styling */
.faq-box {
  background: rgba(240, 255, 240, 0.9);
  color: #1a3c1a;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 10px 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  font-weight: 600;
}
.faq-box span {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}
.faq-box p {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  margin: 0;
}
.faq-box a {
  color: #006400;
  text-decoration: none;
  font-weight: 600;
}
.faq-box a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .faq-box {
    text-align: center;
    font-size: 15px;
  }
  .faq-box p {
    text-align: center;
  }
}



.contact-box {
  display: flex;
  align-items: center;
  background: rgba(240, 255, 240, 0.9);
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  color: #1a3c1a;
  font-size: 16px;
  font-weight: 600;
}
.contact-box span { text-align: left; }
@media (max-width: 600px) {
  .contact-box {
    text-align: center;
    font-size: 15px;
  }
}



.language-box {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.lang-card {
  background: rgba(240,255,240,0.95);
  color: #1a3c1a;
  padding: 16px 25px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.lang-card:hover {
  transform: scale(1.07);
  background: #00b300;
  color: white;
  box-shadow: 0 6px 18px rgba(0,150,0,0.4);
}

.lang-card span {
  font-size: 18px;
}

@media (max-width:600px) {
  .lang-card {
    font-size: 16px;
    padding: 14px 20px;
  }
}



/* बाकीच्या input प्रमाणेच look */
input, select {
  width: 71%;
  padding: 10px 12px;        /* उंची योग्य ठेवण्यासाठी */
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 15px;
  background-color: #fff;
  box-sizing: border-box;
}

/* फोकस झाल्यावर हलका effect */
input:focus, select:focus {
  border-color: #4CAF50;
  outline: none;
  box-shadow: 0 0 4px rgba(76,175,80,0.5);
}



input, select, textarea {
  width: 71%;
  padding: 10px 12px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 15px;
  background-color: #fff;
  box-sizing: border-box;
  text-transform: capitalize; /* फक्त visual capital effect */
}

input:focus, select:focus, textarea:focus {
  border-color: #4CAF50;
  outline: none;
  box-shadow: 0 0 4px rgba(76,175,80,0.5);
}



#page3 .field-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
#page3 .same-box {
  flex: 1 1 30%;
  min-width: 250px;
  background: rgba(255,255,255,0.9);
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
#page3 .same-box input {
  width: 100%;
  height: 45px;
  font-size: 15px;
}
#errorMsg {
  text-align: center;
}
@media (max-width: 768px) {
  #page3 .field-group {
    flex-direction: column;
    align-items: center;
  }
  #page3 .same-box {
    width: 100%;
    max-width: 480px;
  }
}



/* ✅ PVC Card Order बटणासाठी हिरवा रंग (#009900) */
.pvc-btn {
  background: #009900;
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
}
.pvc-btn:hover {
  background: #007a00;
}
#page4 .controls {
  display: flex;
  justify-content: center;   /* केंद्रात आणतो */
  align-items: center;
  gap: 12px;                 /* बटणांमध्ये अंतर */
  margin-top: 30px;
  flex-wrap: wrap;           /* मोबाईलवर खाली सरकण्यासाठी */
}

#page4 .controls .btn {
  min-width: 130px;          /* सगळ्या बटणांचा आकार एकसारखा */
  text-align: center;
}



/* ✅ Card Row Layout */
.card-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 35px;
  margin-top: 20px;
  margin-bottom: 30px;
}

/* ✅ Move Front Card Details Up/Down */
.front-bg .details {
  position: relative;
  top: var(--front-details-y, -28px);
  transition: top 0.3s ease;
}

/* ✅ Move Back Card Details Up/Down */
.back-bg .details {
  position: relative;
  top: var(--back-details-y, -30px);
  transition: top 0.3s ease;
}

/* ✅ Front Card Instruction Control */
.bottom-yellow {
  position: relative;
  top: var(--front-instr-y, -33px);
  transition: top 0.3s ease;
}

/* ✅ Farmer ID — मोठं आणि थोडं वर */
.bottom-yellow .farmer-id {
  font-size: 22px;
  font-weight: 1000;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
  text-align: center;
  margin-top: -14px;
  margin-bottom: 4px;
}

/* ✅ Back Card Instruction Control */
.bottom-green {
  position: relative;
  top: var(--back-instr-y, -40px);
  transition: top 0.3s ease;
}

/* ✅ FRONT CARD PHOTO CONTROL */
.front-bg .photo {
  position: relative;
  top: var(--front-photo-y, -14px);
  transition: top 0.3s ease;
}

/* ✅ BACK CARD QR CODE CONTROL */
.back-bg .qr-box {
  position: relative;
  top: var(--back-qr-y, -28px);
  transition: top 0.3s ease;
}

/* ✅ BACK CARD FULL DETAILS LAYOUT - CLEAN, PRINT-FRIENDLY & NEAT */
.back-bg {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 18px 20px;
  gap: 16px;
  background: none;
}

/* 🔹 Details container neatly left-aligned */
.back-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  color: #000;
  line-height: 1.6;
  margin-right: 130px; /* QR box साठी space */
}

/* 🔹 प्रत्येक field section neatly spaced */
.back-text .info-block {
  margin-bottom: 10px;
}

/* 🔹 Heading like “Address”, “Mobile No.” */
.back-text .info-block strong {
  display: block;
  font-weight: 700;
  color: #045c00;
  font-size: 14px;
  margin-bottom: 2px;
  text-transform: capitalize;
}

/* 🔹 Details under each heading (Address lines etc.) */
.back-text .info-block span {
  display: block;
  margin-left: 10px;
  font-weight: 500;
  color: #111;
  font-size: 13px;
  line-height: 1.4;
}


/* 🌾 FRONT CARD वर — Photo च्या मागे Paddy Crop */
.front-bg::after {
  content: "";
  position: absolute;
  bottom: var(--front-rop-y, -70px);
  left: var(--front-rop-x, -100px);
  width: var(--front-rop-size, 300px);
  height: var(--front-rop-size, 300px);
  background: url('images/bhat_rop.png') center/contain no-repeat;
  transform: rotate(var(--front-rop-rotate, 0deg));
  z-index: 0;
}

/* 🌾 BACK CARD वर — QR च्या मागे Paddy Crop */
.back-bg::after {
  content: "";
  position: absolute;
  bottom: var(--back-rop-y, -20px);
  right: var(--back-rop-x, -70px);
  width: var(--back-rop-size, 260px);
  height: var(--back-rop-size, 260px);
  background: url('images/bhat_rop.png') center/contain no-repeat;
  transform: rotate(var(--back-rop-rotate, 0deg));
  z-index: 0;
}

/* ✅ FRONT CARD SIZE */
.card-front {
  width: 370px;
  height: 235px;
  border: 2px solid #000;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  position: relative;
}

/* ✅ BACK CARD SIZE */
.card-back {
  width: 370px;
  height: 235px;
  border: 2px solid #000;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  position: relative;
}

/* ✅ Front Background — फक्त background: none केले */
.front-bg {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 16px;
  background: none;
  position: relative;
  margin-top: 20px;
  height: 150px;
}
.front-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.65);
  z-index: 0;
}
.front-bg * { position: relative; z-index: 1; }

/* ✅ Back Background — फक्त background: none केले */
.back-bg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: none;
  position: relative;
  margin-top: 20px;
  height: 150px;
}
.back-bg::before {
  content: "";
  position: relative;
  inset: 0;
  background: rgba(255,255,255,0.65);
  z-index: 2;
}
.back-bg * { position: relative; z-index: 1; }

/* ✅ Photo */
.photo {
  width: 90px;
  height: 110px;
  background: #fff;
  border: 2px solid #0a6f0a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #666;
  position: relative;
  left: var(--front-rop-x, -5px);
  top: 0;
}

/* ✅ Details */
.details { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  justify-content: center;
  gap: 5px; 
}
.dline { 
  font-weight: 900; 
  font-size: 13px; 
  color: #000; 
}

/* ✅ FRONT CARD instructions — पांढऱ्या रंगात */
.bottom-yellow .instr {
  color: #efff3998 !important;
  font-weight: 700;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* ✅ BACK CARD instructions — पांढऱ्या रंगात */
.bottom-green .instr {
  color: #ffffff !important;
  font-weight: 700;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* 🌿 Instruction text position adjust (Back card) */
.bottom-green .instr {
  position: relative;
  top: 0px;        /* 🔹 ही value बदलून वर-खाली हलवता येईल */
  color: #ffffff !important;
  font-weight: 700;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  line-height: 1.3;
}

/* ✅ SMART FARMER ID CARD Title — फक्त मोठं */
.title {
  font-size: 19px !important;   /* 🔹 फक्त साइज मोठी केली */
  font-weight: 1000;            /* ठळक ठेवलेलं */
  text-align: center;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
  color: #ffffff;
}
/* ✅ SMART FARMER ID CARD Title */
.title {
  position: absolute;
  top: var(--title-top, 44px);
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 30px;
  font-weight: 1000;
  color: #ffffff;
  text-shadow: 2px 2px 6px #00000099;
  letter-spacing: 1px;
  z-index: 20;
}

/* ✅ Light Green Background Cards */
.card-front {
  background-color: #a1ffa1 !important;
}
.card-back {
  background-color: #a1ffa1 !important;
}

/* ✅ FRONT CARD - खालची पट्टी */
.bottom-yellow {
  position: relative;
  background: none !important;
  overflow: visible;
}
.bottom-yellow::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 53px;
  background: linear-gradient(90deg, #005c20, #007a00);
  z-index: 0;
  border-top: 1px solid #004d18;
  border-radius: 0 0 14px 14px;
}
.bottom-yellow * {
  position: relative;
  z-index: 2;
}

/* ✅ Photo वर नेलेलं */
.front-bg .photo {
  position: relative;
  top: -28px !important;
}

/* ✅ FRONT CARD - Top Line */
.card-front .stripe-darkgreen {
  background: linear-gradient(90deg, #005c20, #00a82a) !important;
}

/* ✅ BACK CARD - Top & Bottom Lines */
.card-back .stripe-darkgreen {
  background: linear-gradient(90deg, #005c20, #43a800) !important;
}
.bottom-green {
  background: linear-gradient(90deg, #005c20, #387106) !important;
  border-top: 2px solid #004d18;
}

/* ✅ BACK CARD TOP STRIPE - 1 ट्रॅक्टर */
.card-back .stripe-darkgreen {
  position: relative;
  overflow: visible;
}
.card-back .stripe-darkgreen::after {
  content: "";
  position: absolute;
  top: var(--tractor2-top, -20px);      /* 🔹 वर-खाली हलवण्यासाठी */
  right: var(--tractor2-right, 275px);  /* 🔹 उजवीकडे-डावीकडे हलवण्यासाठी */
  width: var(--tractor2-size, 80px);    /* 🔹 ट्रॅक्टरचा आकार बदलण्यासाठी */
  height: auto;
  aspect-ratio: 1 / 1;
  background: url('images/tractor2.png') center/contain no-repeat;  /* ✅ Fix केलेलं */
  z-index: 10;
}


/* ✅ Farmer ID No. — खाली हलवलेला */
.bottom-yellow .farmer-id {
  position: relative;
  top: var(--farmer-id-down, 4px);
}

/* ✅ PRINT FIX — रंग आणि background दिसण्यासाठी */
@media print {
  body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    background: inherit !important;
  }
  .card-front, .card-back {
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
  }
  .controls, #footer, #backToTop {
    display: none !important; /* print वेळी बटणं, footer hide */
  }
}


/* ✅ QR BOX - White Touch Border Fix */
.qr-box {
  width: 120px !important;
  height: 120px !important;
  background: linear-gradient(145deg, #00992e, #00c23d);  /* बाहेरचा हिरवा border look */
  border: 3px solid #004d18;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3),
              inset 0 0 6px rgba(255, 255, 255, 0.4);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  position: relative;
  transition: all 0.3s ease;
}

/* ✅ White layer that completely hides background green */
.qr-box::before {
  content: "";
  position: absolute;
  inset: 0;                /* 🔹 आता full inside area कव्हर होईल */
  background: #ffffff;     /* pure white */
  border-radius: 6px;      /* थोडासा गोलपणा ठेवला */
  z-index: 1;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.12);
}

/* ✅ Actual QR Image perfectly centered */
.qr-box canvas, 
.qr-box img {
  position: relative;
  z-index: 2;
  width: 96% !important;      /* border touch जवळजवळ white fill */
  height: 96% !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 4px !important;
  filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.25));
  transition: transform 0.25s ease;
}

/* Hover effect — optional */
.qr-box:hover img,
.qr-box:hover canvas {
  transform: scale(1.05);
}


.card-front, .card-back {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ✅ PRINT FIX — फक्त कार्डच print होईल आणि रंग कायम राहतील */
@media print {
  body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    background: none !important;
  }

  /* 🔹 फक्त कार्ड सेक्शन दाखवायचा */
  body * {
    visibility: hidden !important;
  }

  #page6, #page6 * {
    visibility: visible !important;
  }

  #page6 {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: none !important;
  }

  /* 🔹 Buttons, Footer, इतर hide */
  .controls, #footer, #backToTop, .page-title {
    display: none !important;
  }

  
  /* ✅ CARD LAYOUT — एक खाली एक */
.card-row {
  display: flex;
  flex-direction: column;  /* 🔹 एकाखाली एक कार्ड */
  justify-content: center;
  align-items: center;
  gap: 30px;               /* दोन कार्डमध्ये थोडं अंतर */
  margin-top: 25px;
  margin-bottom: 40px;
}


  /* 🔹 Card shadows हटवले पण रंग ठेवले */
  .card-front, .card-back {
    box-shadow: none !important;
    background: inherit !important;
    border: 2px solid #000 !important;
  }

  /* 🔹 Color preserve fix */
  .stripe-darkgreen,
  .stripe-yellow,
  .bottom-yellow::before,
  .bottom-green {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
/* ✅ Full Card Light Background - gap auto भरतो */
.card-front, 
.card-back {
  background: linear-gradient(180deg, #b2fcb2, #b2fcb2) !important; /* हलका हिरवा रंग */
  position: relative;
  overflow: hidden;
}




/* 🌾 SMART FARMERS FOOTER STYLE */
#footer {
  background: linear-gradient(90deg, #0a7500, #11ff35);
  color: white;
  text-align: center;
  padding: 35px 10px;
  margin-top: 40px;
  border-top: 3px solid #007a00;
  box-shadow: 0 -4px 20px rgba(0, 128, 0, 0.3);
  font-family: "Poppins", sans-serif;
}

.footer-container h3 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-container p {
  font-size: 15px;
  margin: 4px 0;
}

/* Social icons */
.social-links {
  margin: 12px 0;
}
.social-links a {
  color: white;
  font-size: 24px;
  margin: 0 8px;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}
.social-links a:hover {
  transform: scale(1.2);
  color: #ff69b4; /* Pink hover */
}

/* Legal Links (Gold text, Pink hover, No glow) */
.footer-links {
  margin-top: 15px;
  font-size: 15px;
  font-weight: 500;
}
.footer-links a {
  color: #ffd700; /* Gold text */
  text-decoration: none;
  margin: 0 6px;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: #ff69b4; /* Pink hover */
}
.footer-links span {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 4px;
  font-weight: 600;
}

/* Disclaimer text */
.disclaimer {
  font-size: 13px;
  color: #fff;
  opacity: 0.9;
  margin-top: 15px;
  line-height: 1.5;
  font-style: italic;
}

/* Footer bottom text */
.copy {
  font-size: 13px;
  margin-top: 12px;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 600px) {
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1.8;
  }
  .footer-links span {
    display: none; /* remove | on small screens */
  }
}

/* 🔙 Back Button Style */
.back-btn {
  display: inline-block;
  margin: 20px;
  padding: 8px 18px;
  background: linear-gradient(90deg, #0a7500, #11ff35); /* green gradient */
  color: white;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 128, 0, 0.3);
  transition: background 0.3s ease, transform 0.2s ease;
}
.back-btn:hover {
  background: #007a00; /* darker green hover */
  transform: scale(1.05);
}




/* Back to top button */
#backToTop {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99;
  background: #009900;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}
#backToTop:hover {
  background: #007a00;
  transform: scale(1.1);
}
/* Page6 setup */

.page-title {
  color: #005c20;
  font-weight: 800;
  margin-bottom: 16px;
  text-align: center;
}

/* FRONT CARD */
.sf-front-only, .sf-back-only { display:flex; justify-content:center; padding:10px; }
.card-front, .card-back {
  width:360px; border-radius:14px; overflow:hidden;
  background:#fff; box-shadow:0 10px 30px rgba(0,0,0,0.18);
  font-family:'Noto Sans Devanagari',sans-serif;
  border:2px solid #000;
}
.stripe { width:100%; display:block; }
.stripe-yellow { height:8px; background:#79fb4a; }
.stripe-darkgreen { height: 40px; background: linear-gradient(90deg,#005c20); } /* dark */

.title {
  text-align:center; color:#fff; font-weight:800;
  font-size:14px; margin-top:-30px;
  text-shadow:0 1px 1px rgba(0,0,0,0.35);
}
.separator-white { height:2px; background:#fff; opacity:0.7; }

/* FRONT CARD */
.sf-front-only, .sf-back-only { display:flex; justify-content:center; padding:10px; }
.card-front, .card-back {
  width:360px; border-radius:14px; overflow:hidden;
  background:#fff; box-shadow:0 10px 30px rgba(0,0,0,0.18);
  font-family:'Noto Sans Devanagari',sans-serif;
  border:2px solid #000;
}
.stripe { width:100%; display:block; }
.stripe-yellow { height:8px; background:#79fb4a; }
.stripe-darkgreen { height:40px; background:linear-gradient(90deg,#005c20); }

.title {
  text-align:center; color:#fff; font-weight:800;
  font-size:14px; margin-top:-30px;
  text-shadow:0 1px 1px rgba(0,0,0,0.35);
}
.separator-white { height:2px; background:#fff; opacity:0.7; }

/* FRONT BACKG — sheti_front.jpg काढले */
.front-bg {
  display:flex; gap:12px; align-items:center; padding:14px;
  background-color:#d8ffd8;   /* हलका हिरवा background ठेवला */
  background-size:cover; background-position:center;
  position:relative;
}
.front-bg::before {
  content:""; position:absolute; inset:0;
  background:rgba(255,255,255,0.6); z-index:0;
}
.front-bg * { position:relative; z-index:1; }

.photo {
  width:96px; height:116px; background:#fff;
  border:2px solid #0a6f0a; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; color:#666;
}
.details { flex:1; display:flex; flex-direction:column; gap:6px; }
.dline { font-weight:900; font-size:13px; color:#000; }

.bottom-yellow {
  background:linear-gradient(90deg,#005c20,#005c20);
  text-align:center; color:#fff; padding:8px;
}
.bottom-yellow .instr { font-size:10px; color:#79fb4a; }

/* BACK BACKGROUND — sheti_back.jpg काढले */
.back-bg {
  display:flex; justify-content:space-between; align-items:center;
  padding:14px;
  background-color:#d8ffd8;  /* हलका हिरवा background ठेवला */
  background-size:cover; background-position:center;
}
.qr-box {
  width:90px; height:90px; border:2px solid #0a6f0a;
  background:#fff; display:flex; align-items:center;
  justify-content:center; font-weight:700; border-radius:8px;
}
.bottom-green {
  background:linear-gradient(90deg,#005c20,#005c20);
  text-align:center; color:#fff; padding:8px;
}
.bottom-green .instr { font-size:10px; color:#79fb4a; }

/* Buttons */
.controls {
  text-align:center;
  margin-top:25px;
}
.btn {
  background:#009900; color:#fff;
  border:none; padding:8px 14px;
  border-radius:6px; cursor:pointer;
  font-weight:600; margin:0 6px;
}
.btn:hover { background:#007a00; }
.btn-muted { background:#555; }
.btn-muted:hover { background:#333; }



/* 🌿 Smart Farmer Stylish QR Box */
.qr-box {
  width: 120px !important;
  height: 120px !important;
  background: linear-gradient(145deg, #00992e, #00c23d);
  border: 3px solid #004d18;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3),
              inset 0 0 6px rgba(255, 255, 255, 0.4);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  position: relative;
  transition: all 0.3s ease;
}

/* ✨ White inner layer — breathing space */
.qr-box::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: #ffffff;
  border-radius: 8px;
  z-index: 1;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 🌀 Animated highlight border (shine effect) */
.qr-box::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: linear-gradient(130deg, #00ff73 0%, #00991e 40%, #00ff73 100%);
  opacity: 0.6;
  filter: blur(6px);
  animation: glow 3s linear infinite;
  z-index: 0;
}
@keyframes glow {
  0% {opacity: 0.4;}
  50% {opacity: 0.8;}
  100% {opacity: 0.4;}
}

/* 🧭 QR image */
.qr-box img {
  position: relative;
  z-index: 2;
  width: 120% !important;
  height: 120% !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 4px !important;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.25));
  transition: transform 0.25s ease;
}

/* Hover effect — subtle zoom */
.qr-box:hover img {
  transform: scale(1.08);
}


.qr-box:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.4));
}
.qr-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(135deg, #00ff73, #00991e, #00ff73);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}


/* ✅ Back Card Details — same layout as Front Card (fixed for QR overlap) */
.back-bg .details {
  position: absolute;
  top: 7px;               /* वरून spacing ठेवलेलं */
  left: 16px;              /* डावीकडे align */
  right: 135px;            /* 🔹 QR box साठी थोडी जास्त जागा ठेवली (110 → 130px) */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-wrap: wrap;         /* 🔹 text QR मागे गेल्यास तो पुढच्या ओळीत जाईल */
  gap: 6px;
  font-size: 14px;
  line-height: 1.25;
  color: #111;
  font-weight: 550;
  z-index: 5;              /* text नेहमी वर दिसेल */
  word-wrap: break-word;   /* लांब address असेल तर पुढच्या ओळीत */
  white-space: normal;     /* text QR मागे न जाता पुढच्या ओळीत जाईल */
}

.back-bg .dline {
  font-weight: 800;
  font-size: 13px;
  color: #000;
  letter-spacing: 0.1px;
  text-align: left;
  line-height: 1.3;        /* 🔹 text थोडं हवेशीर झालं */
}


/* ✅ Full-Screen Loading Overlay */
#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, #001a00, #000); /* हलका cinematic green-black */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  backdrop-filter: blur(3px);
}

/* ✅ Rotating Logo — मोठा + Glow + Smooth spin */
#loaderLogo {
  width: 220px;              /* 🔹 Size वाढवण्यासाठी (200–250px पर्यंत करू शकतोस) */
  height: auto;
  animation: spin3D 2.2s linear infinite;
  filter: drop-shadow(0 0 50px #00ff44); /* 🔹 Glow effect */
  transform-style: preserve-3d;
  transform-origin: center;
}

/* ✅ 3D Coin-like Spin Animation */
@keyframes spin3D {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* ✅ Fade-out Effect */
#loader.hidden {
  opacity: 0;
  visibility: hidden;
}



/* ✅ BACKGROUND OVERLAY */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  height: 194%;
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  pointer-events: none; /* background scroll चालू ठेवतो */
}

/* ✅ POPUP BOX */
.popup-box {
  background: #eaffea;
  border: 3px solid #00a000;
  border-radius: 18px;
  padding: 50px 70px;
  text-align: center;
  color: #004d00;
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.3);
  animation: zoomIn 0.6s ease forwards;
  position: fixed;
  top: 56%;
  left: 50%;
  transform: translateY(60px);
  pointer-events: auto;
}

/* ✅ TICK ANIMATION */
.circle-tick {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.tick-mark {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 6px solid #00a000;
  position: relative;
  background: #e8ffe8;
  box-shadow: 0 0 20px rgba(0, 160, 0, 0.4);
  animation: popIn 0.4s ease;
}

.tick-mark::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 8px;
  width: 28px;
  height: 55px;
  border-right: 6px solid #00a000;
  border-bottom: 6px solid #00a000;
  transform: rotate(45deg) scale(0);
  animation: tickAnim 0.5s ease 0.2s forwards;
}

/* ✅ TEXT STYLE */
.popup-box h3 {
  font-size: 26px;
  color: #008000;
  margin-bottom: 10px;
}

.popup-box p {
  font-size: 17px;
  color: #222;
  margin-bottom: 4px;
}

.popup-box .thank {
  font-weight: 600;
  color: #007000;
}

/* ✅ ANIMATIONS */
@keyframes zoomIn {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes tickAnim {
  from { transform: rotate(45deg) scale(0); }
  to { transform: rotate(45deg) scale(1); }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

#page5 {
  transition: opacity 0.8s ease; /* smooth fade-out */
}


/* ✅ Image clarity fix (tractor2.png blur टाळण्यासाठी) */
.card-row img, 
.card-front img, 
.card-back img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  filter: none !important;
}

/* ✅ PDF / Print clarity */
canvas {
  image-rendering: pixelated;
}

/* ✅ फक्त English Name साठी single-line fix */
#p_english {
  white-space: nowrap !important;     /* नाव एका ओळीत ठेवतो */
  word-break: keep-all !important;    /* शब्द मध्ये तुटू देत नाही */
  overflow: hidden !important;        /* लांब नावामुळे layout बिघडू नये म्हणून */
  text-overflow: ellipsis !important; /* खूप मोठं नाव असेल तर ... दाखवेल */
  line-height: 1.2 !important;
}

