/* ============================================================
   BJP Vadodara Mahanagar – Selfie Campaign Stylesheet
   Theme: National Saffron, BJP Green, White
   ============================================================ */

:root {
  --saffron: #ff6600;
  --saffron-deep: #e05500;
  --saffron-light: #ff8c42;
  --green: #138808;
  --green-light: #1aa80a;
  --white: #ffffff;
  --dark: #1a1a2e;
  --dark-2: #2d2d44;
  --bg-light: #fff8f0;
  --bg-cream: #fff3e0;
  --gold: #d4a017;
  --text-gray: #555;
  --border: #e0d5ca;
  --shadow: 0 4px 24px rgba(255, 102, 0, 0.12);

  --font-display: "Noto Sans Gujarati", "Mukta", sans-serif;
  --font-body: "Mukta", "Noto Sans Gujarati", sans-serif;
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--dark);
  line-height: 1.6;
  font-size: 16px;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: linear-gradient(90deg, var(--saffron-deep), var(--saffron));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 0;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-right {
  opacity: 0.9;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--saffron);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 70px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lotus-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.lotus-icon img {
  width: 7rem;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-main {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--saffron);
  line-height: 1;
  letter-spacing: 0.05em;
}
.logo-sub {
  font-size: 0.72rem;
  font-family: var(--font-display);
  color: var(--green);
  font-weight: 700;
  line-height: 1.2;
}
.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--saffron);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--saffron);
}
.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}
.nav-cta {
  margin-left: auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-sm {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.3);
}
.btn-primary-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 102, 0, 0.4);
}
.btn-hero {
  background: #fff;
  color: var(--saffron);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-block;
  margin-top: 24px;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.btn-hero:hover {
  background: var(--saffron);
  color: #fff;
  transform: translateY(-3px);
}

/* ============================================================
   HERO BANNERS  –  Responsive sizes per spec
   ============================================================ */
.hero-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Desktop */
.hero-banner {
  height: 450px;
} /* ~25% viewport height on 1080p */
.lotus-badge img {
  width: 7rem;
}
.hero-badge {
  padding: 10px 16px;
}
/* Laptop */
@media (max-width: 1440px) {
  .hero-banner {
    height: 350px;
  }
  .lotus-badge img {
    width: 7rem;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-banner {
    height: 300px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-banner {
    height: 250px;
  }
  .nav-cta {
    width: 10rem;
    height: 2.5rem;
  }
  .nav-cta a {
    padding: 9px 24px;
  }
  .lotus-badge img {
    width: 3rem;
  }
  .hero-badge {
    padding: 3px;
  }
}

.campaign-hero,
.default-hero,
.gallery-hero,
.result-hero {
  background-image: url('../images/1730-X-450-BANNER.jpg.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="80" r="50" fill="rgba(255,255,255,0.03)"/></svg>');
  background-size: cover;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 800px;
}
.hero-sub {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 8px;
}
.hero-slogan {
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.hero-tag {
  font-size: 1rem;
  color: #ffe082;
  font-weight: 600;
}
.hero-badge {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  /* padding: 10px 16px; */
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  backdrop-filter: blur(8px);
}
.lotus-badge {
  font-size: 1.8rem;
}

/* ============================================================
   WHY SECTION
   ============================================================ */
.why-section {
  padding: 60px 0;
  background: #fff;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}
.why-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bg-cream), #fff7ee);
  border: 2px solid rgba(255, 102, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--saffron);
}
.why-icon {
  font-size: 2.8rem;
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}
.why-icon img {
  height: 3.5rem;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--saffron);
  margin-bottom: 8px;
}
.why-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* ============================================================
   FORM SECTION
   ============================================================ */
.form-section {
  padding: 80px 0;
  background: var(--bg-light);
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  color: #fff;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-desc {
  color: var(--text-gray);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.form-card {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 44px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 102, 0, 0.08);
}
@media (max-width: 600px) {
  .form-card {
    padding: 28px 20px;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.req {
  color: var(--saffron);
}
.form-group input {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--dark);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

/* PHOTO SECTION */
.photo-section {
  margin-bottom: 32px;
}
.photo-label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.photo-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: var(--bg-cream);
  border-radius: 12px;
  padding: 4px;
}
.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--text-gray);
  transition: all 0.2s;
  font-family: var(--font-body);
}
.tab-btn.active {
  background: var(--saffron);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}
.photo-tab-content {
  display: none;
}
.photo-tab-content.active {
  display: block;
}

.upload-zone {
  border: 2px dashed var(--saffron);
  border-radius: 14px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-cream);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.upload-zone:hover,
.upload-zone.drag-over {
  background: #fff3e0;
  border-color: var(--saffron-deep);
}
.upload-icon {
  font-size: 2.5rem;
}
.upload-zone p {
  font-weight: 600;
  color: var(--dark);
}
.upload-zone span {
  font-size: 0.8rem;
  color: var(--text-gray);
}

.photo-preview-container {
  position: relative;
  text-align: center;
}
.photo-preview-container img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.remove-photo {
  margin-top: 10px;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.remove-photo:hover {
  background: #fca5a5;
}

/* CAMERA */
.camera-area {
  text-align: center;
}
#cameraStream {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  display: none;
  margin-bottom: 14px;
  background: #000;
}
.camera-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.btn-camera {
  background: var(--saffron);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.btn-camera:hover {
  background: var(--saffron-deep);
}
.btn-capture {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.btn-stop {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: var(--font-body);
}

/* SUBMIT BUTTON */
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  color: #fff;
  border: none;
  padding: 18px 32px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(255, 102, 0, 0.35);
  letter-spacing: 0.02em;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 102, 0, 0.45);
}
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.btn-icon {
  font-size: 1.3rem;
}
.btn-icon img {
  width: 3rem;
}
.btn-arrow {
  font-size: 1.3rem;
}

/* ALERTS */
.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.alert-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #dc2626;
}
.alert-error ul {
  padding-left: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 56px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 12px;
}
.lotus-icon-sm {
  font-size: 1.5rem;
}
.lotus-icon-sm img {
  width: 7rem;
}
.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-col h4 {
  color: var(--saffron);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer-col ul a:hover {
  opacity: 1;
  color: var(--saffron);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 24px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.6;
}

/* ============================================================
   TRICOLOR ACCENT BAR (decorative)
   ============================================================ */
.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--saffron) 33.3%,
    #fff 33.3% 66.6%,
    var(--green) 66.6%
  );
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.site-header {
  padding-top: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
}
@media (max-width: 600px) {
  .header-inner {
    height: 60px;
    gap: 16px;
  }
  .logo-main {
    font-size: 1.3rem;
  }
  .form-section {
    padding: 50px 0;
  }
}

.pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.custom-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-btn,
.page-number {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid #e5d5c8;
  background: #fff;
  color: #333;
  transition: all 0.2s ease;
}

.page-btn:hover,
.page-number:hover {
  background: #ff6600;
  color: #fff;
  border-color: #ff6600;
}

.page-number.active {
  background: #ff6600;
  color: #fff;
  border-color: #ff6600;
}

.page-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
  background: #f4f4f4;
  color: #999;
}

@media (max-width: 768px) {
  .custom-pagination {
    gap: 6px;
  }

  .page-btn,
  .page-number {
    min-width: 36px;
    height: 36px;
    font-size: 14px;
    padding: 0 10px;
  }
}
