/* Responsive footer iframe for mobile */
@media (max-width: 768px) {
  iframe[src*="footer.html"] {
    height: 220px !important;
    min-height: 1150px;
    margin-top: 10px;
    border-radius: 10px;
  }
}
body {

    text-align: center;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, #f5faff, #e6f1fa);
    overflow-x: hidden;
}

h1 {
    font-size: 34px;
    margin-bottom: 25px;
    color: #0d47a1;
}
.pricing-section {
    min-height: 300vh;
}

.toggle-btns {
    display: inline-flex;
    background: #e3f2fd;
    border-radius: 50px;
    border-color: #23e600;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.toggle-btns button {
    padding: 14px 42px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.toggle-btns button.active {
    background: #0d47a1;
    color: #fff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    justify-items: center;
    align-items: stretch;
    margin-bottom: 32px;
}

.card {
    background: #fff;
    border-radius: 22px;
    padding: 36px 28px 32px 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 380px;
    border: 1.5px solid #e3f2fd;

    /* ? Flexbox for alignment */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 12px 35px rgba(25, 118, 210, 0.25);
    border-color: #1976d2;
}

.card h3 {
    margin-bottom: 12px;
}

.card .price {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 16px;
}

.card .features {
    flex-grow: 1;
    /* ? pushes offers+button down */
    margin-bottom: 20px;
}

.card .offer {
    background: #d6ffd562;
    border: 1px dashed #32d219;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 0.9rem;
    color: #1976d2;
    text-align: center;
}

.card .btn {
    display: inline-block;
    text-align: center;
    background: #1976d2;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-top: 12px;
}

.card .btn:hover {
    background: #125aa0;
}

.contact-card {
    background: linear-gradient(135deg, #f9fbff, #bdd4ef);
    border: 1.5px solid #bbdefb;
}

.contact-card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 14px 38px rgba(21, 101, 192, 0.3);
    border-color: #1565c0;
}

.card.glow {
    box-shadow: 0 0 20px rgba(165, 230, 0, 0.5);
    border-color: #b4e600c1;
}

.card.glow1 {
    box-shadow: 0 0 35px rgba(0, 230, 84, 0.5);
    border-color: #23e600;
}

/* Common badge base */
.card .badge_value,
.card .badge_popular {
    position: absolute;
    top: -18px;
    right: -18px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 18px 7px 14px;
    border-radius: 18px 18px 18px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.18);
    animation: badge-pop 0.7s cubic-bezier(.4, 2, .6, 1);
}

/* Best Value Badge */
.card .badge_value {
    background: linear-gradient(90deg, #1976d2 60%, #ffd600 100%);
}

/* Most Popular Badge */
.card .badge_popular {
    background: linear-gradient(90deg, #1976d2 60%, #00e676 100%);
    color: #fff;
}

/* Badge animation */
@keyframes badge-pop {
    0% {
        transform: scale(0.7) translateY(-10px);
        opacity: 0;
    }

    60% {
        transform: scale(1.1) translateY(2px);
        opacity: 1;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.card h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    color: #0d47a1;
    font-weight: 700;
}

.price {
    font-size: 30px;
    font-weight: bold;
    margin: 20px 0;
    color: #1976d2;
    text-shadow: 0 2px 8px #e3f2fd;
    letter-spacing: 0.5px;
}

.features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    font-size: 15px;
}

.features li {
    margin: 10px 0;
    padding-left: 26px;
    position: relative;
    opacity: 0;
    animation: feature-fadein 0.7s cubic-bezier(.4, 2, .6, 1) forwards;
}

.features li:nth-child(1) {
    animation-delay: 0.1s;
}

.features li:nth-child(2) {
    animation-delay: 0.2s;
}

.features li:nth-child(3) {
    animation-delay: 0.3s;
}

.features li:nth-child(4) {
    animation-delay: 0.4s;
}

.features li:nth-child(5) {
    animation-delay: 0.5s;
}

.features li:nth-child(6) {
    animation-delay: 0.6s;
}

.features li:nth-child(7) {
    animation-delay: 0.7s;
}

@keyframes feature-fadein {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.features li::before {
  content: "\2714";
    position: absolute;
    left: 0;
    color: #00e676;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 1px 4px #b9f6ca;
}

.offer {
    margin: 14px 0 0 0;
    padding: 10px 14px;
    background: #e8f5e9;
    border-left: 4px solid #00e676;
    font-size: 14px;
    color: #2e7d32;
    border-radius: 6px;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 13px 32px;
    background: linear-gradient(90deg, #1976d2 50%, #00d3e6 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    background: linear-gradient(90deg, #1565c0 60%, #00c853 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .card {
        max-width: 100%;
    }
}

/* Tabs hidden by default with transition */
.tab-content {
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.tab-content.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
}

.tabs-container {
  transition: height 0.4s ease;
}


/* Intro Section */
.pricing-intro {
    background: linear-gradient(135deg, #f5faff, #e6f1fa);
    padding: 60px 20px 40px;
    text-align: center;
    border-radius: 18px;
    margin-bottom: 50px;
}

.pricing-intro .intro-container {
    max-width: 850px;
    margin: 0 auto;
}

.pricing-intro h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0d47a1;
    margin-bottom: 15px;
}

.pricing-intro .tagline {
    font-size: 26px;
    font-weight: 500;
    color: #1565c0;
    margin-bottom: 15px;
}

.pricing-intro .description {
    font-size: 24px;
    color: #444;
    margin-bottom: 25px;
    line-height: 1.6;
}

.discount-offer {
    background: #fff;
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 19px;
    color: #1976d2;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.15);
}

.discount-offer span {
    color: #e53935;
    font-weight: 700;
}

.discount-offer a {
    color: #1976d2;
    text-decoration: dotted underline;
    font-weight: 600;
    margin-left: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-intro h2 {
        font-size: 22px;
    }

    .pricing-intro .tagline {
        font-size: 16px;
    }

    .pricing-intro .description {
        font-size: 14px;
    }
}

/* Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 108, 229, 0.15); /* soft blue overlay */
    backdrop-filter: blur(4px); /* glass-like effect */
}

/* Modal Content */
.modal-content {
    background: #fff;
    margin: 8% auto;
    padding: 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 8px 25px rgba(22, 108, 229, 0.35);
    animation: fadeIn 0.4s ease, popUp 0.4s ease;
    border-top: 6px solid #166ce5;
    text-align: center;
}

/* Heading */
.modal-content h2 {
    color: #166ce5;
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-shadow: 0 0 6px rgba(22, 108, 229, 0.25);
}

/* Links */
.contact-link {
    display: inline-block;
    text-decoration: none;
    color: #333;
    font-size: 1.05rem;
    margin: 10px 0;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f5f9ff;
    box-shadow: 0 3px 8px rgba(22, 108, 229, 0.12);
}

.contact-link span {
    color: #166ce5;
    font-weight: bold;
    text-decoration: dotted underline;
}

/* Hover Effects */
.contact-link:hover {
    background: #166ce5;
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(22, 108, 229, 0.4), 0 0 12px rgba(22, 108, 229, 0.5);
}

.contact-link:hover span {
    color: #fff;
    text-decoration: none;
}

/* Close button */
.close {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #555;
    transition: all 0.3s ease;
}

.close:hover {
    color: #166ce5;
    transform: rotate(90deg) scale(1.2);
}

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

@keyframes popUp {
    from { transform: scale(0.8) translateY(-20px); }
    to { transform: scale(1) translateY(0); }
}
/* ?? Extra Responsive for Mobile Devices */

/* For tablets & small laptops */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .card {
    padding: 28px 20px;
  }
}

/* For standard mobiles */
@media (max-width: 768px) {
  body {
    padding: 0 12px;
  }

  /* Add space below fixed header */
  .pricing-intro {
    padding: 40px 15px 30px;
    margin-top: 70px;
  }
  .pricing-section {
    margin-top: 16px;
  }

  .pricing-intro h2 {
    font-size: 22px;
  }

  .pricing-intro .tagline {
    font-size: 18px;
  }

  .pricing-intro .description {
    font-size: 15px;
    line-height: 1.4;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    max-width: 340px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    padding: 18px 10px;
  }

  .card h3 {
    font-size: 20px;
  }

  .price {
    font-size: 24px;
  }

  .features {
    font-size: 14px;
  }

  .btn {
    width: 90%;
    padding: 10px;
    font-size: 15px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .toggle-btns {
    flex-direction: row;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 30px;
  }

  .toggle-btns button {
    flex: 1;
    padding: 12px 0;
    font-size: 14px;
  }

  .modal-content {
    width: 98%;
    max-width: 320px;
    margin: 18% auto;
    padding: 12px 8px;
    font-size: 0.97rem;
    border-radius: 12px;
  }
}

/* For small mobiles */
@media (max-width: 480px) {
  h1 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .pricing-intro h2 {
    font-size: 20px;
  }

  .pricing-intro .tagline {
    font-size: 15px;
  }

  .pricing-intro .description {
    font-size: 13px;
  }

  .card h3 {
    font-size: 18px;
  }

  .price {
    font-size: 20px;
  }

  .features li {
    font-size: 13px;
    margin: 8px 0;
  }

  .btn {
    font-size: 14px;
    padding: 10px;
  }

  .contact-link {
    font-size: 0.95rem;
    padding: 8px 10px;
  }

  .discount-offer {
    font-size: 15px;
    padding: 8px 14px;
  }
}

/* For very small screens (iPhone SE, older Androids) */
@media (max-width: 375px) {
  .toggle-btns {
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
  }

  .toggle-btns button {
    padding: 10px;
    font-size: 13px;
  }

  .modal-content {
    margin: 25% auto;
    padding: 16px;
  }

  .modal-content h2 {
    font-size: 1.2rem;
  }
}
