* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #E5DDD5;
    /* WhatsApp chat-like background */
    color: black;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 100px;
    width: 100%;
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 15px;
    background-color: #075E54;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.header img {
    width: 40px;
    height: auto;
}

.scroll-text {
    width: 100%;
    background-color: #128C7E;
    color: white;
    font-size: 18px;
    padding: 10px 0;
    position: fixed;
    top: 60px;
    z-index: 11;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-text span {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 10s linear infinite;
    padding-left: 1%;
}

@keyframes scroll {
    from {
        transform: translateX(10%);
    }
    to {
        transform: translateX(-30%);
    }
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    width: 100%;
    margin-top: 20px;
    /* Adjusted to accommodate scroller */
}

.profile-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    position: relative;
    /* For positioning the online/busy badge */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 220px;
    margin-bottom: 15px;
    max-width: 100%;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.profile-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 4px solid #25D366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
}

.profile-card h2 {
    font-size: 18px;
    margin-bottom: 5px;
}

.profile-card p {
    font-size: 13px;
    margin-bottom: 10px;
}

.call-btn {
    display: inline-block;
    background: linear-gradient(90deg, #25D366, #128C7E);
    color: white;
    font-size: 16px;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-btn:hover {
    background: linear-gradient(90deg, #128C7E, #075E54);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.call-btn i {
    margin-right: 8px;
}

/* Blinking "Online" badge */

.online-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #25D366;
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* "Busy" badge */

.busy-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #FF0000;
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
}

/* "Online 5 min ago" badge */

.offline-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #FF8C00;
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
}

.footer {
    margin-top: auto;
    padding: 20px;
    background-color: #075E54;
    color: white;
    text-align: center;
    width: 100%;
}

.footer h3 {
    margin-bottom: 10px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.payment-methods img {
    width: 130px;
    height: auto;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }
    .profile-card {
        width: 90%;
        max-width: 300px;
        margin: 10px auto;
    }
    .profile-card img {
        width: 160px;
        height: 160px;
    }
    .profile-card h2 {
        font-size: 20px;
    }
    .profile-card p {
        font-size: 14px;
    }
    .call-btn {
        font-size: 16px;
        padding: 12px 35px;
    }
}

/* Pop-up styles */

.popup-overlay {
    display: none;
    /* Initially hidden */
    position: fixed;
    /* Positioning to cover the entire screen */
    top: 0;
    /* Align to top */
    left: 0;
    /* Align to left */
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    background: rgba(0, 0, 0, 0.7);
    /* Semi-transparent background */
    z-index: 1000;
    /* On top of everything */
    justify-content: center;
    /* Center the content */
    align-items: center;
    /* Center the content */
}

.popup-content {
    background: white;
    /* White background for the popup */
    padding: 20px;
    /* Padding around the content */
    border-radius: 10px;
    /* Rounded corners */
    text-align: center;
    /* Center text */
    max-width: 600px;
    /* Max width for responsiveness */
    width: 100%;
    /* Full width */
    position: relative;
    /* Relative positioning for child elements */
    overflow: hidden;
    /* Hide overflow to prevent layout issues */
}

.popup-content video {
    width: 100%;
    /* Full width of the popup */
    height: auto;
    /* Maintain aspect ratio */
    max-height: 400px;
    /* Set a max height to prevent overflow */
    border-radius: 10px;
    /* Rounded corners for video */
    margin-bottom: 15px;
    /* Space below video */
}

.popup-close {
    position: absolute;
    /* Position the close button absolutely */
    top: 10px;
    /* Adjust the top position */
    right: 20px;
    /* Adjust the right position */
    font-size: 24px;
    /* Size of close button */
    color: #000;
    /* Color for close button */
    cursor: pointer;
    /* Change cursor to pointer */
    z-index: 10;
    /* Ensure it appears above other elements */
}

.popup-content h2 {
    margin-bottom: 5px;
    /* Space below heading */
    font-size: 15px !important;
    /* Font size for heading */
}

.popup-content p {
    font-size: 16px;
    /* Font size for paragraph */
    margin-bottom: 7px;
    /* Space below paragraph */
}

.pay-btn {
    display: inline-flex;
    /* Use flex to align icon and text */
    align-items: center;
    /* Center vertically */
    background: linear-gradient(90deg, #25D366, #128C7E);
    color: white;
    font-size: 24px;
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    margin-top: 15px;
    cursor: pointer;
}

.pay-btn i {
    margin-right: 10px;
    /* Space between icon and text */
    font-size: 20px;
    /* Icon size */
}

.pay-btn:hover {
    background: linear-gradient(90deg, #128C7E, #075E54);
    /* Change background on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* Shadow effect on hover */
}

input#mobileNumber {
    width: 100%;
    padding: 10px 15px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobileNumber_new_label {
    font-size: 18px;
    margin-bottom: 10px;
    display: block;
    font-weight: bold;
}

/* Responsive pop-up for mobile */

@media (max-width: 768px) {
    .popup-content {
        max-width: 90%;
        /* Full width on mobile */
    }
    .popup-content h2 {
        font-size: 16px;
        /* Smaller font size for heading */
    }
    .popup-content p {
        font-size: 14px;
        /* Smaller font size for paragraph */
    }
    .pay-btn {
        font-size: 20px;
        /* Smaller font size for button */
        padding: 10px 25px;
        /* Adjust padding for button */
    }
    .payment-popup-overlay {
        display: flex;
        /* Enables flexbox for centering */
        justify-content: center;
        /* Centers horizontally */
        align-items: center;
        /* Centers vertically */
        position: fixed;
        /* Fixed position to cover the screen */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        /* Semi-transparent background */
        z-index: 1000;
        /* Places it above other elements */
    }
    .payment-popup {
        background: #fff;
        border-radius: 10px;
        width: 90%;
        max-width: 400px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }
    .popup-header {
        background: #075E54;
        color: #fff;
        padding: 15px;
        text-align: center;
        position: relative;
    }
    .popup-header .close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 18px;
        cursor: pointer;
    }
    .popup-body {
        padding: 20px;
    }
    .logo img {
        display: block;
        margin: 0 auto 15px;
        width: 200px;
        height: 100px;
        border-radius: 50%;
    }
    .amount {
        text-align: center;
        font-size: 30px;
        font-weight: bold;
        color: #333;
    }
    .order-id {
        text-align: center;
        font-size: 12px;
        color: #888;
    }
    .payment-option h3 {
        font-size: 14px;
        color: #555;
    }
    .payment-option .option {
        display: flex;
        align-items: center;
        margin-top: 10px;
    }
    .payment-option .option img {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
    .countdown {
        margin-top: 20px;
        text-align: center;
    }
    .countdown h4 {
        font-size: 14px;
        color: #555;
        margin-bottom: 10px;
    }
    .countdown .timer {
        font-size: 24px;
        font-weight: bold;
        color: #000;
    }
    .confirm-btn {
        background: #075E54;
        color: #fff;
        border: none;
        border-radius: 5px;
        width: 100%;
        padding: 10px;
        font-size: 16px;
        cursor: pointer;
        margin-top: 20px;
    }
    .confirm-btn:hover {
        background: #444;
    }
    label {
        font-size: 16px;
        font-weight: bold;
        display: block;
        margin-bottom: 8px;
    }
    input[type="tel"] {
        width: 80%;
        max-width: 300px;
        padding: 10px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        outline: none;
        transition: all 0.3s ease;
    }
    input[type="tel"]:focus {
        border-color: #007BFF;
        box-shadow: 0 2px 6px rgba(0, 123, 255, 0.4);
    }
    button.pay-btn {
        margin-top: 15px;
        max-width: 300px;
        width: 100%;
        padding: 10px 20px;
        font-size: 16px;
        color: #fff;
        background-color: #25D366;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
    }
    button.pay-btn:hover {
        background-color: #1da851;
    }
}