* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #b52826 100%);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
.logo h2 {
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    margin: 0;
}

.navbar {
    padding: 0.4rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: white;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

.admin-btn {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* Hero */


.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23667eea" width="1200" height="600"/><path fill="%23ffffff" opacity="0.1" d="M0 300Q300 100 600 300T1200 300V600H0z"/></svg>');
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-logo {
    width: 280px;
    height: 280px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: 0.3s ease;
    filter: contrast(1.1) brightness(1.1);
}


.hero-logo:hover {
    transform: scale(1.05);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,107,107,0.4);
}

/* Services */

.book-test {
    cursor: pointer;
    transition: 0.3s;
}

.book-test:hover {
    transform: scale(1.05);
}


/* Card Fixed */
.test-card {
    width: 380px;
    height: 430px;
    flex: 0 0 350px;
    overflow: hidden;
}


/* Cards Container */
.tests-grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}


/* Image */
.test-card .test-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    flex-shrink: 0;
}


/* Text Area */
.test-card .test-info {
    height: 100px;
    padding: 8px 10px;
    flex-shrink: 0;
}



@media(max-width:600px){

    .tests-grid {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }


    .test-card {
        width: 380px;
        max-width: calc(100% - 30px);
        height: 430px;
        flex: none;
        margin: 0 auto;
    }

}
/* BACKDROP */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.test-card {
    position: relative;
    overflow: hidden;
}


.test-card::before {
    content: "Best Offer";

    position: absolute;
    top: 18px;
    left: -35px;

    width: 130px;
    text-align: center;

    background: #ff3b30;
    color: white;

    padding: 6px 0;

    font-size: 12px;
    font-weight: bold;

    transform: rotate(-45deg);

    z-index: 5;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}







/* MODAL BOX */
.modal-content {
    background: #fff;
    width: 90%;
    max-width: 420px;
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: popup 0.3s ease;
}

/* HEADER */
.modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

/* CLOSE BUTTON */
.close {
    font-size: 24px;
    cursor: pointer;
}

/* FORM */
.modal-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
}


.form-group input:focus,
.form-group textarea:focus {
    border-color: #667eea;
    outline: none;
}

/* BUTTON */
.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

/* ANIMATION */
@keyframes popup {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.book-test {
    cursor: pointer;
}
.services {
    padding: 100px 0;
    background: #f8f9ff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.test-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

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

.test-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.test-info {
    padding: 1.5rem;
}

.test-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

/* About */
.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.features {
    list-style: none;
    margin-top: 2rem;
}

.features li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
}

.features i {
    color: #ff6b6b;
    margin-right: 1rem;
}

.about-owner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.about-owner img {
    width: 260px !important;
    height: 320px !important;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
}
.about-owner h3 {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1.4rem;
}

.about-owner p {
    font-size: 1rem;
    color: #555;
}

/* Contact */
.contact {
    padding: 100px 0 0 0;
    background: #f8f9ff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 2rem;
    color: #ff6b6b;
    margin-top: 0.2rem;
}

.contact-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102,126,234,0.4);
}

.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 10px 0;   /* 👈 pehle 2rem tha, ab tight */
    margin-top: 0;
}



/* Admin Styles */
.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 2rem;
}

.view-site-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-section {
    background: white;
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.admin-section h2 {
    margin-bottom: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-test-form {
    background: #f8f9ff;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.add-test-form .form-row {
    grid-template-columns: 2fr 1fr;
}

.add-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.tests-list, .enquiries-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.test-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9ff;
    border-radius: 12px;
}

.admin-test-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.delete-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}

.enquiry-item {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.enquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.enquiry-date {
    font-size: 0.9rem;
    color: #666;
    background: rgba(102,126,234,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

/* Login */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.login-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* PASSWORD BOX */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
}

.toggle-password:hover {
    color: #333;
}

/* BUTTON */
.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-container {
        padding: 1rem;
    }
    
    .test-item {
        flex-direction: column;
        text-align: center;
    }
}

/* FLOATING ICONS */
.contact-icons {
    position: fixed;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 99999;
}

.contact-icons a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.contact-icons a i {
    color: #fff !important;
}

.contact-icons a:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}
.contact-icons .whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-icons .call {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* =========================
   FINAL MOBILE OVERRIDE FIX
   (PUT AT BOTTOM OF CSS)
========================= */

@media (max-width: 768px) {

    /* prevent overflow issues */
    body {
        font-size: 13px;
        overflow-x: hidden;
    }

    

    .logo-icon {
        width: 50px;
        height: 50px;
    }

    .logo h2 {
        font-size: 1.4rem;
    }

    .nav-link,
    .admin-btn {
        font-size: 0.95rem;
    }

    .hero {
        padding: 130px 15px 40px;
    }

    .hero-logo {
        width: 180px;
        height: 180px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 22px;
    }

    .cta-button {
        font-size: 1rem;
        padding: 12px 24px;
    }


    /* ================= HEADER FIX ================= */

    .nav-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 55px;
        padding: 0 10px;
        position: relative;
    }

    /* LOGO CENTER FIX */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo h2 {
        font-size: 14px;
        white-space: nowrap;
    }

    /* HIDE MENU ITEMS */
    .nav-menu {
        display: none !important;
    }

    /* ADMIN BUTTON ALWAYS VISIBLE */
    .admin-btn {
        display: inline-block !important;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        padding: 6px 10px;
        border-radius: 20px;
    }

    /* ================= HERO FIX ================= */

    .hero {
        height: auto;
        min-height: 80vh;
        padding: 90px 15px 40px;
        text-align: center;
        background-size: cover;
        background-position: center;
    }

    .hero-logo {
        width: 120px;
        height: 120px;
        margin-bottom: 10px;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .cta-button {
        font-size: 12px;
        padding: 8px 14px;
    }

    /* ================= GRID FIX ================= */
    .services {
        padding:60px 0;
    }


    .section-title {
        font-size:1.7rem;
        margin-bottom:1.5rem;
    }
    .tests-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .test-card {
        border-radius: 12px;
    }

    .test-image {
        height: 160px;
    }

    /* ================= ABOUT FIX ================= */

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-owner img {
        width: 140px !important;
        height: 170px !important;
    }

    .about {

        padding:60px 0;

    }


    .about-content {

        gap:1.5rem;

    }


    .about-text h2 {

        font-size:1.7rem;
        text-align:center;

    }


    .about-text p {

        font-size:0.9rem;
        line-height:1.5;

    }


    .features {

        margin-top:1rem;

    }


    .features li {

        padding:0.45rem 0;
        font-size:0.9rem;

    }


    .features i {

        margin-right:8px;
    }


    /* ================= FORM FIX ================= */

    .form-group input,
    .form-group textarea {
        font-size: 13px;
        padding: 8px;
    }
    /* ================= Get in touch ================= */

    

    .contact-form {
        padding-bottom:0px;
    }

    .submit-btn {
        margin-bottom: 10px;
    }

    .contact {
        padding-bottom: 0px;
    }


    /* ================= FOOTER FIX ================= */

    .footer {
        font-size: 12px;
        padding: 8px;
    }

    /* ================= MRP ================= */

}
    .price-section{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:8px;
}

.mrp{
    color:#999;
    text-decoration:line-through;
    font-size:15px;
}

.offer-price{
    color:#e53935;
    font-size:20px;
    font-weight:700;
}



/* =========================
   DOWNLOAD SERVICES PDF BUTTON
========================= */

.download-services {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 45px;
    margin-bottom: 0px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background: linear-gradient(
        135deg,
        #667eea 0%,
        #b52826 100%
    );

    color: white;
    text-decoration: none;

    padding: 14px 35px;

    border-radius: 50px;

    font-size: 1rem;
    font-weight: 600;

    box-shadow:
        0 10px 30px rgba(102,126,234,0.35);

    transition: all 0.3s ease;

    border: none;
    cursor: pointer;
}


.download-btn:hover {

    transform: translateY(-4px);

    box-shadow:
        0 15px 40px rgba(181,40,38,0.35);

    background: linear-gradient(
        135deg,
        #764ba2 0%,
        #ff6b6b 100%
    );
}


.download-btn:active {
    transform: scale(0.96);
}


/* PDF Icon */
.download-btn::before {
    content: "📄";
    font-size: 1.2rem;
}



/* =========================
   MOBILE DOWNLOAD BUTTON
========================= */

@media (max-width:768px){

    .download-services {
        margin-top:30px;
    }


    .download-btn {

        width:90%;

        padding:12px 20px;

        font-size:14px;

        border-radius:30px;

    }

}

.contact-icons {
    z-index: 999;
}

#chat-box {
    z-index: 100000;
}