/* ===== Base Styles ===== */
:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --secondary: #3f37c9;
  --dark: #1f2937;
  --light: #f9fafb;
  --gray: #6b7280;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f7fa;
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ===== Header ===== */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
  width: auto;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* ===== Mobile Menu ===== */
.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  padding: 5px 0;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-large {
  padding: 12px 30px;
  font-size: 1.1rem;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

/* ===== Hero Section ===== */
.hero {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--dark);
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto 40px;
}

/* ===== QR Generator ===== */
.qr-generator {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 40px;
  margin: -40px auto 60px;
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.qr-generator h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--dark);
}

.generator-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.input-section {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.output-section {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group select,
.form-group textarea,
.form-group input[type="range"],
.form-group input[type="color"] {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="url"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15);
  transform: translateY(-1px);
  background-color: #fafbff;
}

.form-group input[type="range"] {
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: #ddd;
  border-radius: 5px;
  margin-top: 10px;
}

.form-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
}

.form-group input[type="color"] {
  width: 60px;
  height: 40px;
  padding: 2px;
  cursor: pointer;
}

/* Specific styling for textarea */
.form-group textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* Specific styling for select dropdown */
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

#qrCode {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  min-width: 300px;
  background-color: white;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 20px;
}

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

.download-options .btn {
  padding: 10px 25px;
}

/* ===== Sections Common Styles ===== */
section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

/* ===== Features Section ===== */
.features {
  background-color: #f9fafb;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
}

/* ===== How To Use Section ===== */
.how-to-use .steps {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  gap: 20px;
}

.how-to-use .step {
  flex: 1;
  text-align: center;
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.how-to-use .step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

/* ===== Blog Section ===== */
.blog-preview .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-preview .blog-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ===== Contact Section ===== */
.contact {
  background-color: #f9fafb;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 10px;
  color: var(--primary);
  width: 20px;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
}

/* ===== Other Tools ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.tool-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s;
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  border: 2px solid transparent;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== Footer ===== */
footer {
  background-color: var(--dark);
  color: white;
  padding: 60px 0 20px;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-section p, .footer-section a {
  color: #d1d5db;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: var(--primary);
}

/* Reward Spinner Styles */
.reward-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #1b1b1b, #000);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  color: #f8c316;
}

.reward-container {
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 0 20px;
}

.wheel-container {
  position: relative;
  margin: 0 auto;
  width: 320px;
  height: 320px;
}

.reward-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6x solid #fff;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  overflow: hidden;
  transition: transform 5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  background: conic-gradient(
    #FF6B6B 0deg 60deg,
    #4ECDC4 60deg 120deg,
    #45B7D1 120deg 180deg,
    #FFD166 180deg 240deg,
    #06D6A0 240deg 300deg,
    #EF476F 300deg 360deg
  );
  position: relative;
}

.wheel-labels {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.wheel-label {
  position: absolute;
  width: 100px;
  text-align: center;
  transform-origin: center center;
  font-size: 13px;
  font-weight: bold;
  color: #000;
  text-shadow: 0 0 2px rgba(255,255,255,0.5);
}

.wheel-center {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, #ff3366, #c4003c);
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 0 25px rgba(255,0,80,0.6);
  transition: all 0.3s ease;
  z-index: 10;
  text-transform: uppercase;
  user-select: none;
}

.wheel-center:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 0 40px rgba(255,0,80,0.9);
}

.wheel-pointer {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 30px solid #06D6A0;
  margin: 0 0 10px 145px;
  position: relative;
  z-index: 5;
}

.reward-result {
  margin-top: 20px;
  font-size: 22px;
  font-weight: bold;
  text-shadow: 0 0 10px #ff3366;
  min-height: 30px;
  color: #fff;
}

.close-reward {
  margin-top: 20px;
  padding: 12px 30px;
  background: #ff3366;
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 0, 80, 0.4);
}

.close-reward:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 80, 0.6);
  background: #ff1a4f;
}

.reward-result {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 15px 0;
  min-height: 30px;
  color: #4F46E5;
}

.close-reward {
  background: #4F46E5;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.close-reward:hover {
  background: #4338CA;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.9rem;
}

.copyright p {
  margin-bottom: 5px;
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin: 10px 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .generator-container {
    flex-direction: column;
  }
  
  .how-to-use .steps {
    flex-direction: column;
  }
  
  .how-to-use .step {
    margin-bottom: 20px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .download-options .btn {
    flex: 1;
    min-width: 150px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .qr-generator {
    padding: 30px 20px;
  }
  
  .download-options .btn {
    width: 100%;
  }

  /* Mobile form improvements */
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group input[type="url"],
  .form-group input[type="password"],
  .form-group select,
  .form-group textarea {
    padding: 18px 16px;
    font-size: 1.2rem;
    border-radius: 10px;
    min-height: 50px;
  }

  .form-group textarea {
    min-height: 140px;
  }

  .form-group select {
    padding-right: 45px;
  }
}

/* ===== Smooth Scrolling ===== */
html {
  scroll-behavior: smooth;
}
/* ===== FAQ Section ===== */
.faq-page {
    padding: 80px 0;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.faq-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: white;
    font-size: 1rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 1000px;
}

.faq-answer p {
    margin-bottom: 15px;
}

.faq-answer ul, .faq-answer ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* Form Status Messages */
.form-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 5px;
    font-size: 0.95rem;
}

.form-status.success {
    background-color: #e6ffed;
    color: #22863a;
    border: 1px solid #b3e6c1;
}

.form-status.error {
    background-color: #ffebee;
    color: #cc0000;
    border: 1px solid #ffcdd2;
}

@media (max-width: 768px) {
    .faq-page {
        padding: 60px 0;
    }
    
    .faq-header h1 {
        font-size: 2rem;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 15px 15px;
    }
}
/* Privacy Policy Page Styles */
.policy-page {
    padding: 60px 0;
    background-color: #f9fafb;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.policy-header {
    text-align: center;
    margin-bottom: 40px;
}

.policy-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.policy-header p {
    color: var(--gray);
}

.policy-section {
    margin-bottom: 30px;
}

.policy-section h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.policy-section p, .policy-section ul {
    margin-bottom: 15px;
    line-height: 1.7;
}

.policy-section ul {
    padding-left: 20px;
}

.policy-section li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .policy-page {
        padding: 40px 0;
    }
    
    .policy-container {
        padding: 20px;
    }
    
    .policy-header h1 {
        font-size: 2rem;
    }
    
    .policy-section h2 {
        font-size: 1.3rem;
    }
}
/* Map Search Styles */
.map-search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.map-search-container input {
    flex: 1;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Payment Form Styles */
.payment-form-group {
    margin-bottom: 15px;
}

.payment-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Make sure header/footer styles apply */
header, footer {
    position: relative;
    z-index: 100;
}