@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /*background-color: #f5f5f5;*/
    background-color: #2a2e43;
    padding: 10px 0px;
    border-radius: 20px !important;
}

i {
    line-height: normal !important;
}

hr {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    border-top: 1px solid #777 !important;
}

.container {
    width: 90%;
    max-width: 450px;
    padding: 10px 15px;
    /*background: white url("../media/4.png") top no-repeat;*/
    background-size: cover;
    border-radius: 15px;
    /*box-shadow: 13px 13px 20px rgba(202, 202, 202, 0.8), -13px -13px 20px rgba(255, 255, 255, 0.8);*/
    position: relative;
    transition: all 0.3s ease-in-out;
    overflow: auto;
    scrollbar-width: none;
}

    /* Hide scrollbar */
    .container::-webkit-scrollbar,
    ::-webkit-scrollbar {
        display: none;
    }

div#stylistSelectionSectionNew {
    max-width: 650px !important;
}

html {
    scrollbar-width: none;
}

.logo {
    width: 130px;
    height: 130px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .logo img {
        width: 60%;
        height: 60%;
    }

.Headings {
    color: black !important;
    opacity: 1;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .container {
        width: 100%;
        min-width: 350px !important;
        min-height: 55vh;
        /*left: 50%;
        transform: translateX(-50%);*/
    }

    .modal-content {
        height: 95% !important;
        position: relative;
        top: -5%;
    }
}

@media (min-width: 820px) {
    body {
        zoom: 1.25; /* Apply zoom only on larger screens */
        position: fixed; /* Prevents accidental shifting */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100vw;
        height: 100vh;
    }

    .modal-content {
        height: 75% !important;
        position: relative;
        top: 5%;
    }
}

/* For iPad (1024px to 1366px, Zoom 1.5x) */
@media (min-width: 1024px) and (max-width: 1366px) {
    body {
        zoom: 1.5;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100vw;
        height: 100vh;
    }

    .modal-content {
        height: 65% !important;
        position: relative;
        top: 9.6%;
    }
}

/* For Windows Desktops (Above 1366px, Zoom 0.75x) */
@media (min-width: 1367px) {
    body {
        zoom: 0.75;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100vw;
        height: 100vh;
    }

    .modal-content {
        height: 100% !important;
        position: relative;
        top: -10%;
    }
}





/* Modal content adjustments */
.modal-content {
    background-color: #fefefe !important;
    margin: 10% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 120%;
    max-width: 600px;
    border-radius: 10px;
    height: 50%;
    overflow: auto; /* Allow scrolling */
}


/* Common heading styles */
h2, h4 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.basic-info {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Ensures uniform spacing */
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

    .basic-info input {
        width: 100%;
        padding: 14px 18px;
        border: 1px solid #ccc;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.9);
        font-size: 16px;
        outline: none;
        transition: all 0.3s ease-in-out;
    }

    /* Ensures placeholders remain aligned */
    .basic-info .aspNetHidden {
        display: none !important;
        visibility: hidden;
        height: 0;
    }

/* Ensure error messages align correctly */
.text-danger {
    font-size: 14px;
    margin-top: -10px;
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 300px;
    margin: 20px auto;
}

    .keypad button {
        background: rgba(255, 255, 255, 0.9);
        border: none; /* Remove border for a cleaner look */
        border-radius: 16px;
        padding: 22px;
        font-size: 36px;
        font-weight: bold;
        color: #333;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
        box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
        text-align: center;
    }

        .keypad button:hover {
            background: rgba(255, 255, 255, 1);
            transform: scale(1.07);
        }

        .keypad button:active {
            background: #f1f1f1;
            box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.2);
        }

        /* Style the delete (C) and clear (X) buttons differently */
        .keypad button:last-child,
        .keypad button:nth-last-child(3) {
            background: #ff4d4d;
            color: white;
            box-shadow: 4px 4px 8px rgba(255, 77, 77, 0.4);
        }

            .keypad button:last-child:hover,
            .keypad button:nth-last-child(3):hover {
                background: #ff6666;
                transform: scale(1.1);
            }

.phone-input {
    text-align: center;
    margin-bottom: 15px;
}

    .phone-input input {
        width: 100%;
        max-width: 300px;
        padding: 14px;
        font-size: 24px;
        text-align: center;
        border: 2px solid #ddd;
        border-radius: 12px;
        box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
    }


/* Action buttons */
.action-btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

    .action-btn:hover {
        background: #0056b3;
    }

.update {
    width: 100%;
    padding: 10px;
    background: #505561;
    color: white;
    border: 1px solid white;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s;
}

    .update:hover {
        background: #505561;
        color: white;
    }

/* Terms link */
.terms-link {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #777;
}

    .terms-link a {
        color: #007bff;
        text-decoration: none;
    }

/* Language switch */
.language-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

    .language-switch button {
        background: transparent;
        border: 1px solid #ddd;
        padding: 5px 10px;
        margin: 0 5px;
        cursor: pointer;
        border-radius: 4px;
    }

        .language-switch button.active {
            background: #007bff;
            color: white;
            border-color: #007bff;
        }

/* Appointment options styling */
.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.button {
    flex: 1 0 45%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

    .button:hover {
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .button label {
        cursor: pointer;
        display: block;
        width: 100%;
    }

    .button svg {
        margin-bottom: 10px;
        color: #007bff;
    }

    /* Hide radio buttons but keep them accessible */
    .button input[type="radio"] {
        position: absolute;
        opacity: 0;
    }

        .button input[type="radio"]:checked + label {
            font-weight: bold;
            color: #007bff;
        }

/* Back button styling */
.back-button-container {
    position: absolute;
    top: 20px;
    left: 20px;
}

.back-btn {
    width: 40px;
    height: 40px;
    border: 1px solid;
    border-radius: 50%; /* Makes it circular */
    background: #59bee6;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 1;
}

    .back-btn:hover {
        color: black;
    }

h2, h3 {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}


.stylist-selection {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stylist {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 20%;
    background: rgba(255, 255, 255, 0.7);
}

    .stylist img {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        object-fit: cover;
    }

    .stylist p {
        font-size: 14px;
    }

    .stylist:hover {
        transform: scale(1.1);
    }
/* Loader overlay with darker background */
.loader-overlay {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Increased opacity */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Loader animation */
.loader {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.x-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #555;
}

/* Validation error messages */
.text-danger {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}


/* Hide sections appropriately */
.hidden {
    display: none !important;
}

.toggle-switch {
    position: relative;
    width: 200px;
    height: 40px;
    margin: 25px auto; /* Reduced from 20px */
    background-color: #ecf0f3;
    border-radius: 20px;
    box-shadow: inset 8px 8px 8px #cbced1, inset -8px -8px 8px #fff;
}

    .toggle-switch input {
        display: none;
    }

    .toggle-switch label {
        position: relative;
        z-index: 2;
        float: left;
        width: 100px;
        line-height: 40px;
        font-size: 14px;
        color: #555;
        text-align: center;
        cursor: pointer;
        font-weight: 600;
    }

    .toggle-switch .slider {
        position: absolute;
        top: 2px;
        left: 2px;
        width: 98px;
        height: 36px;
        background-color: #3a434d;
        border-radius: 18px;
        transition: all 0.3s ease;
        box-shadow: 3px 3px 3px #b1b1b1, -3px -3px 3px #fff;
    }

    .toggle-switch input:checked + .slider {
        left: 100px;
    }

    .toggle-switch label:first-of-type {
        color: #fff;
    }

    .toggle-switch input:checked + .slider + label:first-of-type {
        color: #555;
    }

    .toggle-switch input:checked + .slider + label + label {
        color: #fff;
    }

span#appointments-btn-text {
    font-size: 20px;
}

span#walkdin-btn-text {
    font-size: 20px;
}

.txtbox {
    width: 100%;
    padding: 14px 18px;
    margin: 10px 0; /* Adds spacing between input fields */
    border: 1px solid #ccc;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease-in-out;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

    /* Hover effect for better UX */
    .txtbox:hover {
        border-color: #007bff;
    }

    /* Focus effect for better user interaction */
    .txtbox:focus {
        border-color: #007bff;
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
        background: white;
    }

    /* Placeholder styling for better readability */
    .txtbox::placeholder {
        color: #888;
        font-style: italic;
    }

.profile-card {
    overflow: hidden;
    /*background-color: #2a2e43;*/
    color: white;
    border-radius: 1.25rem !important;
}

.profile-photo {
    position: relative;
    text-align: center;
    padding: 15px 0;
}

.photo-container {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.badge-custom {
    position: absolute;
    right: 0;
    bottom: 0;
    background-color: #ff4f9b;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.profile-info {
    text-align: center;
    padding: 10px 15px;
}

.profile-name {
    font-size: clamp(14px, 5vw, 16px);
    font-weight: bold;
    margin-bottom: 5px;
}

.profile-title {
    font-size: clamp(8px, 3vw, 10px);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.booking-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0px 22px;
    flex-wrap: wrap; /* Allows wrapping if needed */
    flex-direction: row; /* Default horizontal layout */
}

.book-btn,
.share-btn {
    /*background: linear-gradient(45deg, #9c5bf5, #ff4f9b);*/
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 20px;
    font-size: clamp(12px, 3.5vw, 12px);
    cursor: pointer;
    white-space: nowrap;
    font-weight: bold;
}

.share-btn {
    background-color: #d64fd6;
}

.separator {
    display: inline-block;
    height: 30px;
    width: 1px;
    background-color: white;
    align-self: center;
    margin: 0px 6px;
}

.write-review {
    color: rgb(255, 255, 255);
    cursor: pointer;
    text-decoration: none;
    display: block;
    padding-bottom: 3px;
    border-bottom: 1px solid #FFF;
    width: 75px;
    text-align: center;
    margin: 5px auto 20px;
    font-size: 10px;
}

.review-count {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flame-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0px;
    flex-wrap: wrap;
}

.flame {
    font-size: 20px !important;
    color: #ff4500;
    font-size: clamp(14px, 5vw, 16px);
    margin-right: 3px;
}

.gallery-slider {
    width: 100%;
    max-width: 125px;
    margin: 22px auto 22px;
}

.swiper-container {
    width: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.swiper-slide-active {
    opacity: 1;
}

.gallery-img {
    width: 100%;
    max-width: 100px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
}

.swiper-pagination,
.swiper-button-next,
.swiper-button-prev {
    display: none !important;
}

.social-media-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 16px 0px;
    flex-wrap: wrap;
}

#accept-text {
    display: none !important;
}

.social-link {
    width: clamp(34px, 12vw, 40px);
    height: clamp(34px, 12vw, 40px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.3s ease-in-out;
    padding-top: 6px;
}

    .social-link i {
        font-size: clamp(22px, 5vw, 22px) !important;
        color: #FFF;
    }

    .social-link:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    }

.instagram {
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

.facebook {
    background: linear-gradient(45deg, #1877f2, #166fe5, #0e59c0, #08429c);
}

.youtube {
    background: linear-gradient(45deg, #ff0000, #d90000, #c00000, #a60000);
}

.payment-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 16px 0px;
}

.payment-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: clamp(12px, 2.5vw, 9px);
    flex: 1 0 18%;
    max-width: 40px;
    transition: transform 0.2s ease;
}

    .payment-link:hover {
        transform: scale(1.1);
    }

.payment-icon {
    width: clamp(32px, 12vw, 38px);
    height: clamp(32px, 12vw, 38px);
    border-radius: 8px;
    margin-bottom: 5px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease-in-out;
}

.payment-link:hover .payment-icon {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Remove gradient classes since we're using images */
.venmo, .cashapp, .zelle, .paypal, .zeffy {
    background: none; /* Gradient hatao */
}

/* Ensure anchor tag doesn't interfere */
.payment-link a {
    text-decoration: none;
    color: white !important; /* Aapke global 'a' tag style ke saath match */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*.payment-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 16px 0px;
}

.payment-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: clamp(8px, 2.5vw, 9px);
    flex: 1 0 18%;
    max-width: 40px;
}

.payment-icon {
    width: clamp(32px, 12vw, 38px);
    height: clamp(32px, 12vw, 38px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    color: white;
    font-weight: bold;
    font-size: clamp(14px, 5vw, 18px);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.3s ease-in-out;
}

.payment.icon i {
    font-size: clamp(22px, 5vw, 22px) !important;
}

.payment-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.venmo {
    background: linear-gradient(45deg, #1A73E8, #1476dd, #0e68c7, #0a5ab1);
}

.zelle {
    background: linear-gradient(45deg, #6e00ff, #5a00d4, #4800aa, #360080);
}

.paypal {
    background: linear-gradient(45deg, #003087, #004599, #005bb2, #0070cc);
}

.cashapp {
    background: linear-gradient(45deg, #00d632, #00c62e, #00b12a, #009d26);
}

.zeffy {
    background: linear-gradient(45deg, #00d1b2, #00b89a, #009f84, #00876e);
}*/

/*.other-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 16px 0px;
    flex-wrap: wrap;
}

.other-icon {
    width: clamp(34px, 12vw, 40px);
    height: clamp(34px, 12vw, 40px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.3s ease-in-out;
    padding-top: 2px;
}

    .other-icon i {
        font-size: clamp(22px, 5vw, 22px) !important;
    }

    .other-icon:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    }

.website {
    background: linear-gradient(45deg, #005eb8, #004a91, #00376a, #002543);
}

.whatsapp {
    background: linear-gradient(45deg, #25d366, #20b858, #1a9e4c, #148540);
}*/

.other-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 16px 0px;
    flex-wrap: wrap;
}

.other-icon {
    width: clamp(34px, 12vw, 40px);
    height: clamp(34px, 12vw, 40px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.3s ease-in-out;
}

.other-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures image fits within circle */
}

.other-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Remove gradient if not needed */
.website, .phone {
    background: none; /* Gradient hatao agar image use kar rahe ho */
}

.other-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.sharing-platforms {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    position: relative;
    margin-top: 16px;
}

.icon-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 30px;
    padding: 0 20px;
    white-space: nowrap;
    justify-content: flex-start;
}

    .icon-row::-webkit-scrollbar {
        display: none;
    }

.icon-row {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.share-icon {
    font-size: 36px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

    .share-icon:hover {
        transform: scale(1.2);
        opacity: 1;
    }

.share-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    z-index: 1000;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

    .share-panel.visible {
        transform: translateY(0);
        opacity: 1;
    }

.close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #555;
}

.sharing-platforms::before,
.sharing-platforms::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 1;
    pointer-events: none;
}

.sharing-platforms::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.sharing-platforms::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

@media (max-width: 768px) {
    .share-icon {
        font-size: 28px;
    }

    .icon-row {
        gap: 20px;
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .share-icon {
        font-size: 24px;
    }

    .icon-row {
        gap: 20px;
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .gallery-slider {
        max-width: 100px;
    }

    .gallery-img {
        height: 100px;
    }
}

@media (max-width: 340px) {
    .payment-links {
        gap: 4px;
    }
}

a {
    color: #FFFFFF !important;
}

/* For small devices like iPhone SE, iPhone 5S (max-width: 480px) */
@media (max-width: 480px) {
    /* Container Adjustments */
    .container {
        width: 95%; /* Slightly wider to use available space */
        padding: 10px 15px;
        max-width: 400px; /* Cap width for small screens */
    }

    /* Modal Content */
    .modal-content {
        padding: 20px;
        width: 100%;
        max-width: 100%; /* Full width on small screens */
        margin: 5% auto;
        height: auto; /* Allow height to adjust */
    }

    /* Buttons and Inputs */
    .action-btn, .update {
        padding: 10px;
        font-size: 14px;
    }

    .txtbox {
        padding: 12px 15px;
        font-size: 14px;
    }

    /* Keypad */
    .keypad {
        gap: 10px;
        max-width: 250px;
    }

        .keypad button {
            padding: 18px;
            font-size: 28px;
        }

    /* Stylist Selection */
    .stylist {
        width: 30%; /* Adjust width for smaller screens */
    }

        .stylist img {
            width: 50px;
            height: 50px;
        }

        .stylist p {
            font-size: 12px;
        }

    /* Profile Card */
    .profile-photo .photo-container {
        width: 60px;
        height: 60px;
    }

    .book-btn, .share-btn {
        padding: 8px 20px;
        font-size: 12px;
    }
}

/* For tablets and larger small devices (max-width: 768px) */
@media (max-width: 768px) {
    /* Terms Popup */
    .terms-popup {
        padding: 20px;
        max-height: 75vh;
    }

        .terms-popup h3 {
            font-size: 17px;
        }

        .terms-popup iframe {
            height: calc(75vh - 90px);
        }

    /* Container */
    .container {
        width: 90%;
        padding: 20px;
    }

    /* Modal Content */
    .modal-content {
        padding: 30px;
        width: 110%;
        max-width: 550px;
    }

    /* Stylist Selection */
    .stylist {
        width: 25%;
    }

        .stylist img {
            width: 60px;
            height: 60px;
        }

    /* Keypad */
    .keypad {
        max-width: 280px;
    }

        .keypad button {
            padding: 20px;
            font-size: 32px;
        }
}

/* Base styles remain unchanged; adding media queries below */

/* For iPad Air 4 and similar tablets (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Terms Popup */
    .terms-popup {
        padding: 20px;
        max-height: 85vh;
    }

        .terms-popup h3 {
            font-size: 18px;
            margin: 4px 0 15px;
        }

        .terms-popup iframe {
            height: calc(85vh - 90px); /* Adjust for taller screen */
        }

        .terms-popup .close-btn {
            font-size: 28px;
            top: 10px;
            right: 20px;
        }

    /* Container */
    .container {
        width: 100%;
        max-width: 700px; /* Wider for tablet screens */
        padding: 20px 25px;
    }

    /* Modal Content */
    .modal-content {
        width: 100%;
        max-width: 750px;
        padding: 35px;
        margin: 5% auto;
        height: auto; /* Allow natural height */
        overflow-y: auto;
    }

    /* Stylist Selection */
    .stylist {
        width: 20%;
    }

        .stylist img {
            width: 70px;
            height: 70px;
        }

        .stylist p {
            font-size: 14px;
        }

    /* Keypad */
    .keypad {
        max-width: 300px;
        gap: 12px;
    }

        .keypad button {
            padding: 22px;
            font-size: 36px;
        }

    /* Profile Card */
    .profile-photo .photo-container {
        width: 80px;
        height: 80px;
    }

    .booking-buttons {
        flex-direction: row; /* Horizontal on tablets */
        gap: 10px;
    }

    .book-btn, .share-btn {
        padding: 10px 25px;
        font-size: 14px;
    }

    /* Social and Payment Links */
    .social-link, .payment-link .payment-icon {
        width: 38px;
        height: 38px;
    }

        .social-link i {
            font-size: 22px !important;
        }

    .payment-link {
        font-size: 10px;
    }

    /* Body Adjustments */
    body {
        padding: 10px 0;
        zoom: 1; /* Reset zoom to avoid distortion on iPad */
        position: relative; /* Avoid fixed positioning issues */
        transform: none;
        top: auto;
        left: auto;
    }
}

/* Specific Fix for iPad Air 4 (820px viewport, portrait) */
@media (max-width: 820px) and (min-height: 1000px) {
        .terms-popup iframe {
            height: calc(80vh - 90px);
        }

    /* Container */
    .container {
        max-width: 650px;
    }

    /* Modal Content */
    .modal-content {
        max-width: 700px;
        padding: 30px;
    }
}

/* Ensure no overlap on smaller tablets (below 768px) */
@media (max-width: 767px) {
    .container {
        width: 100%;
        max-width: 550px;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        margin: 5% auto;
    }
}