/* === GLOBAL RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f4f7fa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}


/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #0b5ed7;
  color: white;
  z-index: 1100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.navbar .logo {
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links {
  display: flex;
  gap: 10px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav-links a.active {
  background: white;
  color: #0b5ed7;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #0b5ed7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  .nav-links.open { max-height: 400px; }

  .nav-links a {
    display: block;
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* === FOOTER === */
footer {
  background: #f8f8f8;
  text-align: center;
  padding: 12px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

footer nav a {
  color: #007bff;
  margin: 0 8px;
  text-decoration: none;
}

footer nav a:hover {
  text-decoration: underline;
}

/* === HERO & CTA BUTTONS (for homepage) === */
.hero {
  text-align: center;
  margin: 2rem auto;
}

.hero h1 {
  font-size: 2rem;
  color: #222;
}

.hero p {
  color: #555;
  margin: 0.5rem 0 1.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.cta-btn {
  padding: 10px 18px;
  background: #0b5ed7;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.cta-btn:hover {
  background: #094bb0;
}

/* === PLANS PAGE CARDS === */
.plans-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
}

.plan-card {
  flex: 1 1 280px;
  max-width: 320px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* === REGISTRATION PAGE ONLY === */
.form-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem 5rem;
  background: #f9f9fb;
}

.form-card {
  background: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  max-width: 700px;
  width: 100%;
}

.form-card h2 {
  text-align: center;
  color: #0b5ed7;
  margin-bottom: 1.5rem;
}

.plan-info {
  text-align: center;
  background: #e6f4ff;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 25px;
  color: #004b6f;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0077b6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,119,182,0.15);
}

.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  padding-right: 38px;
}

.password-field .toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
  transition: color 0.3s;
}

.password-field .toggle-password:hover {
  color: #0077b6;
}

small {
  font-size: 13px;
  margin-top: 3px;
}

/* === TERMS CHECK === */
.terms {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.terms a {
  color: #0077b6;
  text-decoration: none;
  font-weight: 600;
}

.terms a:hover {
  text-decoration: underline;
}

/* === MODAL === */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: relative;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-content h3 {
  color: #0077b6;
  margin-bottom: 10px;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  color: #555;
}

.close-btn:hover {
  color: #0077b6;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .form-card {
    padding: 25px 20px;
  }
  .cta-btn {
    font-size: 0.95rem;
  }
}
/* === FOOTER, BANNER & MESSENGER STYLES (SAFE + NON-CONFLICTING) === */

/* --- Green Promo Banner --- */
.feature1 {
  background: #20c997;
  color: #333;
  font-weight: bold;
  text-align: center;
  padding: 8px;
  margin: 0;
  line-height: 1.3;
  border: none;
  font-size: 0.9rem;
  z-index: 900;
}

/* --- Footer --- */
.footer {
  background: #f8f8f8;
  text-align: center;
  padding: 12px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
  width: 100%;
  position: relative;
  z-index: 900;
}

.footer nav a {
  color: #007bff;
  margin: 0 8px;
  text-decoration: none;
}

.footer nav a:hover {
  text-decoration: underline;
}

/* --- Fixed Bottom Container --- */
.bottom-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column-reverse; /* footer below, banner above */
  z-index: 800;
}

/* --- Messenger Floating Button --- */
.messenger-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 120px; /* stays above footer */
  right: 20px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: pulse 2s infinite;
  cursor: pointer;
}

.messenger-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.messenger-icon {
  width: 35px;
  height: 35px;
}

/* Tooltip for Messenger */
.messenger-float::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 75px;
  right: 0;
  background: #0084ff;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.messenger-float::before {
  content: "";
  position: absolute;
  bottom: 65px;
  right: 20px;
  border-width: 6px;
  border-style: solid;
  border-color: #0084ff transparent transparent transparent;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s, transform 0.3s;
}

.messenger-float:hover::after,
.messenger-float:hover::before {
  opacity: 1;
  transform: translateX(0);
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,132,255,0.5); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(0,132,255,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,132,255,0); }
}

/* Hero Section */
.hero {
    margin: 2rem auto;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-btn {
    padding: 10px 18px;
    background: #0b5ed7;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.cta-btn:hover {
    background: #094bb0;
}

.cta-btn.secondary {
    background: #20c997;
}

.cta-btn.secondary:hover {
    background: #1aa179;
}

.feature {
    margin: 1rem 0;
}

/* --- Features Section --- */
.feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0.6rem auto;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #333;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.feature i {
  color: #0077b6;
  font-size: 1.2rem;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.1);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
  }

  .feature {
    font-size: 0.95rem;
    padding: 12px;
  }
}

.plans {
  width: 100%;
  max-width: 900px;
  text-align: center;
}

/* --- Page Header --- */
.page-header {
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 3px 10px rgba(0, 119, 182, 0.08);
  backdrop-filter: blur(6px);
}

.page-header h2 {
  font-size: 2rem;
  color: #004b6f;
  margin-bottom: 0.8rem;
}

.page-header p {
  color: #333;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* --- Plan Card --- */
.plans-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.5rem;
}

.plan-card {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.12);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 450px;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 119, 182, 0.18);
}

.plan-card h3 {
  color: #0077b6;
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #004b6f;
  margin-bottom: 1.5rem;
}

.features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.8rem;
  padding: 0;
}

.features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0.6rem 0;
  color: #333;
  font-size: 1rem;
}

.features i {
  color: #0077b6;
  font-size: 1.2rem;
}

/* --- CTA Button --- */
.cta-btn {
  display: inline-block;
  background: #0077b6;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.25);
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #005f8e;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 119, 182, 0.35);
}

/* --- Add-ons Section --- */
.addon {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 1.8rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.08);
  backdrop-filter: blur(5px);
}

.addon h4 {
  font-size: 1.3rem;
  color: #0077b6;
  margin-bottom: 1rem;
}

.addon ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.addon li {
  font-size: 1rem;
  margin: 0.4rem 0;
  color: #333;
}

/* --- Guarantee Section --- */
.guarantee {
  text-align: center;
  background: #f8fbff;
  border-radius: 16px;
  padding: 1.8rem 1rem;
  box-shadow: 0 2px 10px rgba(0, 119, 182, 0.07);
  color: #004b6f;
  font-size: 1.05rem;
}

.guarantee i {
  color: #20c997;
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .plan-card {
    padding: 1.8rem 1.2rem;
  }

  .plan-card h3 {
    font-size: 1.5rem;
  }

  .price {
    font-size: 1.3rem;
  }

  .addon, .guarantee {
    padding: 1.4rem 1rem;
  }
}
/* === Registration Page Fixes === */

.form-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 5rem 1rem 8rem; /* extra bottom space to avoid footer overlap */
  background: linear-gradient(135deg, #e6f4ff 0%, #ffffff 100%);
}

.form-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 119, 182, 0.12);
  width: 100%;
  max-width: 520px;
}

.form-card h2 {
  text-align: center;
  color: #0077b6;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1.2rem;
  width: 100%;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #004b6f;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Fix Date Input width and placeholder visibility */
input[type="date"] {
  width: 100%;
  color: #555;
  font-size: 1rem;
  background-color: #fff;
  position: relative;
}

input[type="date"]:before {
  content: attr(placeholder);
  position: absolute;
  left: 12px;
  color: #999;
}

input[type="date"]:valid:before {
  content: '';
}

/* Password fields with eye icon inside */
.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
}

/* Terms & Conditions section */
.form-group.terms {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  color: #333;
}

.form-group.terms a {
  color: #0077b6;
  text-decoration: underline;
}

.cta-btn {
  display: block;
  width: 100%;
  background: #0077b6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: bold;
  font-size: 1.05rem;
  cursor: pointer;
  margin-top: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.25);
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #005f8e;
  transform: translateY(-2px);
}

/* === Terms Modal (Popup) === */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  overflow: auto; /* allow page scroll inside */
  padding: 2rem;
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh; /* keep modal visible on screen */
  overflow-y: auto; /* scroll inside modal */
  position: relative;
}

.close-btn {
  position: sticky;
  top: 0;
  right: 0;
  background: #0077b6;
  color: white;
  font-size: 1.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50%;
  cursor: pointer;
  float: right;
  z-index: 100;
}

.modal-content h3 {
  color: #0077b6;
  text-align: center;
  margin-bottom: 1rem;
}

.modal-content h4 {
  margin-top: 1rem;
  color: #004b6f;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.3rem;
}

.modal-content p2 {
  display: block;
  margin: 0.5rem 0 1rem;
  line-height: 1.5;
  color: #333;
}

/* Ensure bottom button is not hidden */
body {
  display: flex;
  flex-direction: column;
  min-height: 50vh;
}

main {
  flex: 1;
}

/* ===== Payment Page Styles ===== */

.container {
  background: #fff;
  padding: 2.5rem;
  max-width: 640px;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.5s ease-in-out;
  margin-bottom: 60px; /* space before footer */
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.container h2 {
  text-align: center;
  color: #0c4a6e;
  margin-bottom: 1.8rem;
  font-size: 1.9rem;
  font-weight: 700;
}

.message {
  text-align: center;
  font-weight: 500;
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 8px;
}

/* Error message (default red) */
.message.error {
  background: #ffe5e5;
  color: #b10000;
}

/* Success message (light blue) */
.message.success {
  background: #e0f2fe; /* light blue */
  color: #0369a1; /* dark blue font */
  border: 1px solid #7dd3fc;
}


.bank-details {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.bank-details h3 {
  margin-bottom: 1rem;
  color: #0369a1;
}

.bank-details p {
  margin: 0.4rem 0;
  color: #0c4a6e;
  font-size: 1rem;
}

/* ✅ QR Code Styling */
.qr-box {
  margin-top: 1rem;
  background: #ffffff;
  border: 1px solid #cce5ff;
  border-radius: 12px;
  display: inline-block;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.qr-box img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

form label {
  font-weight: 600;
  color: #0c4a6e;
}

form input[type="file"] {
  border: 2px dashed #93c5fd;
  border-radius: 10px;
  padding: 1rem;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.3s ease;
}

form input[type="file"]:hover {
  background: #eff6ff;
  border-color: #60a5fa;
}

form button {
  background: #0284c7;
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

form button:hover {
  background: #0369a1;
  transform: translateY(-2px);
}

.container a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 500;
}

.container a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  main {
    padding: 100px 15px 80px;
  }
  .container {
    padding: 1.5rem;
  }
  .container h2 {
    font-size: 1.6rem;
  }
}

/* ==== FIXED MAIN SECTION (APPLIES TO ALL PAGES) ==== */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background: linear-gradient(135deg, #f0f8ff, #ffffff);
  box-sizing: border-box;

  /* ✅ Adjust spacing for fixed header & footer */
  padding-top: 120px; /* enough room for navbar */
  padding-bottom: 120px; /* enough room for footer & floating button */

  min-height: calc(100vh - 240px); /* ensures full visibility */
}

/* Mobile-friendly adjustment */
@media (max-width: 768px) {
  main {
    padding-top: 130px;
    padding-bottom: 140px;
  }
}
