/* ===========================================================
   MNETWORK WIFI PORTAL - STYLING
   Restored card visuals + responsive 2-per-row scroll layout
   =========================================================== */

/* --- GLOBAL --- */
body {
  background: linear-gradient(to bottom right, #007bff, #00bfff);
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  margin: 0;
  color: #fff;
  overflow-x: hidden;
}

/* --- HEADER --- */
.header {
  background: linear-gradient(90deg, #0056b3, #ffcc00);
  color: #fff;
  text-align: center;
  padding: 25px 0;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* --- PACKAGE CONTAINER --- */
.packages-container {
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px 10px;
  margin: 0 auto;
  scrollbar-width: thin;
  scrollbar-color: #007bff #e0e0e0;
}

/* --- GRID LAYOUT (2 per row + spacing) --- */
.row.justify-content-center {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px 40px;
  justify-content: center;
  align-items: start;
  padding: 0 15px;
  margin: 0 auto;
  box-sizing: border-box;
}


.row.justify-content-center > .col-md-3,
.row.justify-content-center > [class*="col-"] {
  flex: none !important;
  max-width: none !important;
  width: auto;
  padding: 0;
  box-sizing: border-box;
}

/* --- CARD DESIGN --- */
.card {
  border: none;
  border-radius: 16px;
  background: #ffffff;
  color: #333;
  padding: 25px 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Duration + Price */
.duration {
  font-size: 1.3rem;
  font-weight: bold;
  color: #0056b3;
  display: block;
  margin-bottom: 5px;
}

.price {
  font-size: 1.6rem;
  color: #e60023;
  font-weight: 700;
  margin: 8px 0;
}

.card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 14px;
}

/* --- BUTTONS --- */
.btn-primary {
  background: linear-gradient(90deg, #007bff, #00bfff);
  border: none;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 10px;
  padding: 10px;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #e60023, #ffcc00);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-success {
  background: linear-gradient(90deg, #00c851, #007e33);
  border: none;
  font-weight: 600;
  border-radius: 10px;
}

.btn-success:hover {
  background: linear-gradient(90deg, #ffcc00, #e60023);
}

/* --- HIDDEN FORM ANIMATION --- */
.hidden-input {
  display: none;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.hidden-input.visible {
  display: block;
  opacity: 1;
  transform: scaleY(1);
}

/* --- TOKEN SECTION --- */
.token-section {
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  border-radius: 12px;
  padding: 25px;
  margin-top: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  text-align: center;
}

.token-section:hover {
  transform: scale(1.02);
}

.token-section h5 {
  color: #0056b3;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

/* --- LINKS --- */
a {
  color: #ffcc00 !important;
  font-weight: 600;
}

a:hover {
  color: #e60023 !important;
  text-decoration: underline;
}

/* --- SCROLLBAR --- */
.packages-container::-webkit-scrollbar {
  width: 6px;
}
.packages-container::-webkit-scrollbar-track {
  background: #cfe8ff;
  border-radius: 4px;
}
.packages-container::-webkit-scrollbar-thumb {
  background: #007bff;
  border-radius: 4px;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
  .row.justify-content-center {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 35px;
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  .row.justify-content-center {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 8px;
  }

  .card {
    border-radius: 20px;
    padding: 18px;
    width: 95%;
    margin: 0 auto;
  }

  .packages-container {
    max-height: none;
    overflow-y: auto;
    padding-bottom: 60px;
  }

  .price {
    font-size: 1.3rem;
  }

  .duration {
    font-size: 1.1rem;
  }

  .btn-primary,
  .btn-success {
    font-size: 1rem;
  }
}

/* -----------------------------
   Choose Your Package Section
-------------------------------*/
.choose-package {
    background-color: #f8f9fa;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 30px;
}

.choose-package h2,
.packages-container h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.choose-package .package-option {
    display: inline-block;
    margin: 12px;
    padding: 18px 28px;
    border: 2px solid #007bff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.choose-package .package-option:hover {
    background-color: #007bff;
    color: #fff;
    transform: scale(1.05);
}

/* -----------------------------
   Already Paid Section (Centered & spaced)
-------------------------------*/
.text-center.mt-3 {
    margin-top: 30px; /* space below header */
    text-align: center;
}

.text-center.mt-3 a.btn-outline-success {
    display: inline-block;
    background-color: #28a745;
    color: #fff !important;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.text-center.mt-3 a.btn-outline-success:hover {
    background-color: #218838;
    color: #fff !important;
    transform: scale(1.03);
}

/* -----------------------------
   Form Section (Input & Button layout)
-------------------------------*/
.hidden-input input[type="text"],
.hidden-input input[type="email"],
.hidden-input input[type="number"],
.hidden-input select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    margin-bottom: 12px; /* space below input */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hidden-input input:focus,
.hidden-input select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 6px rgba(0,123,255,0.25);
}

.hidden-input button {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 600;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hidden-input button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* -----------------------------
   Token Section Input & Button Styling
-------------------------------*/
.token-section form input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    margin-bottom: 12px; /* space below input */
    transition: border-color 0.3s
}