@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300&display=swap');

/* Resetting margins, padding, and box-sizing globally */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
}

.h1-pricing-plan {
    text-align: center;
    margin-top: 2rem;
    font-size: 2.5rem;
}

.p-pricing-plan {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.5rem;
}

.wrapper {
    display: flex; /* Use flexbox to allow wrapper to grow based on content */
    flex-wrap: wrap; /* Allow the content to wrap to the next line if it exceeds available space */
    justify-content: center; /* Center the entire content horizontally */
    gap: 20px; /* Adds space between pricing tables */
    margin: 50px auto 50px; /* Centers the wrapper horizontally */
    padding: 0 20px 50px 0px;
}

.pricing-table {
    box-shadow: 1px 2px 20px 11px rgba(126, 151, 161, 1);
    text-align: center;
    padding: 30px 0px;
    border-radius: 5px;
    width: 300px; /* Set a fixed width for each pricing table */
    margin: 0; /* No additional margin needed, as flexbox will handle the spacing */
    position: relative;
    background-color: #ffffff; /* White background for each plan */
    transition: transform 0.3s ease; /* Add smooth animation on hover */
}

.pricing-table .head {
    padding-bottom: 50px;
    transition: all 0.5s ease;
}

.pricing-table .head .title {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.pricing-table .content .price {
    background: linear-gradient(to right, #003366 10%, #57b894 90%);
    width: 110px;
    height: 110px;
    margin: auto;
    border-radius: 50%;
    margin-top: -50px;
    transition: all 0.5s ease;
    box-shadow: 0px 0px 12px #2b97c9;
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    white-space: nowrap;
}

.pricing-table:hover .content .price {
    transform: scale(1.2);
}

.pricing-table .content .price h1 {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
}

.popular-span {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e86cc;
    color: #fff;
    padding: 7px 40px;
    font-size: 20px;
    border-radius: 5px;
}

.pricing-table .content ul {
    list-style-type: none;
    margin-bottom: 20px;
    padding-top: 13px;
}

.pricing-table .content ul li {
    margin: 20px 0px;
    font-size: 15px;
}

.pricing-table .content .buy-now {
    background: linear-gradient(to right, #003366 10%, #57b894 90%);
    border-radius: 50px;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.pricing-table .btn.round {
    color: #fff;
    padding: 14px 40px;
    display: inline-block;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s linear;
    border: none;
    font-size: 14px;
    text-decoration: none;
    text-transform: capitalize;
    position: relative;
    margin: 2px;
    z-index: 9999;
}

.pricing-table .btn.round {
    z-index: 50;
    color: #333;
}

.pricing-table:hover .btn.round {
    color: #fff !important;
}

.pricing-table .btn.round:after {
    background: #fff none repeat scroll 0 0;
    border-radius: 50px;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transition: all 0.4s linear;
    width: 100%;
    z-index: -1;
    transform: scale(1);
}

.pricing-table:hover .btn.round:after {
    opacity: 0;
    transform: scale(0);
}

.clean-btn {
    background: transparent;
    border: none;
}

.fa-circle-check {
    color: #54d994;
}

.fa-circle-xmark {
    color: #e23c3c;
}

.powered-by {
    flex-basis: 100%;           /* forces a new row */
    display: flex;              /* use flex to center content inside */
    justify-content: center;    /* center horizontally */
    margin-top: 20px;           /* space from pricing tables */
}

.powered-by span {
    background: rgba(0,0,0,0.03); /* faded rectangle */
    color: rgba(0, 0, 0, 0.65);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
}

.btn.round:disabled {
    color: #0F0F0F;
    cursor: not-allowed;
    opacity: 1;
    transition: none !important;
}

/* Cancel parent hover effect */
.pricing-table:hover .btn.round:disabled {
    color: #0F0F0F !important;
}

.pricing-table .content .buy-now:has(.btn.round:disabled) {
    background: #ededf0 !important;
}

/* Kill animation bubble */
.btn.round:disabled::after {
    display: none !important;
}

/* Pop-up container */
.buy-cnf-popup {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top of other elements */
}

/* Pop-up content box */
.buy-cnf-popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 300px; /* Fixed width */
}

/* Pop-up text */
.buy-cnf-popup-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

/* Button container */
.buy-cnf-popup-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* Space between buttons */
    margin-top: 20px;
}

/* Yes and No buttons */
.buy-cnf-yes-button, .buy-cnf-no-button {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    flex: 1; /* Equal width for both buttons */
}

/* Yes button */
.buy-cnf-yes-button {
    background-color: #57b894; /* Green color */
    color: white;
}

/* No button */
.buy-cnf-no-button {
    background-color: #ff4d4d; /* Red color */
    color: white;
}

/* Hover effects */
.buy-cnf-yes-button:hover {
    background-color: #3e8c6f; /* Darker green */
}

.buy-cnf-no-button:hover {
    background-color: #e60000; /* Darker red */
}


.faq {
    flex: 0 0 60%;
    margin: 40px auto;     /* center horizontally */
    border: 2px dashed #57b894; /* temporary red border */
    padding: 20px;
    color: rgba(0, 0, 0, 0.6); /* soft placeholder-like text */
    font-size: 16px;
    line-height: 1.6;
}

.faq h2 {
    text-align: center;
    margin-bottom: 20px;
    color: rgba(0, 0, 0, 0.8);
}

.faq-item {
    margin-bottom: 15px;
}

.faq-item h4 {
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 5px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .wrapper {
        grid-template-columns: repeat(2, 1fr); /* Two columns on medium screens */
    }
}

@media screen and (max-width: 600px) {
    .wrapper {
        grid-template-columns: 1fr; /* One column on small screens */
    }
}
