/* Full Page Service Modals */
.service-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: #FFF8DC;
    overflow: hidden;
}

.service-modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Modal Content - Full Page Style */
.modal-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(135deg, #FFFFFF, #FFF8DC);
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    padding-bottom: 50px;
}

/* Close Button */
.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #8B7355;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10002;
}

.modal-close:hover {
    color: #FFD700;
    transform: rotate(90deg) scale(1.1);
    background: white;
}

/* Back Button */
.modal-back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #8B7355;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid rgba(255, 215, 0, 0.3);
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10002;
}

.modal-back-btn:hover {
    background: white;
    border-color: #FFD700;
    transform: translateX(-5px);
    color: #6B5637;
}

/* Modal Header */
.modal-header {
    padding: 60px 20px 15px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), transparent);
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-title-container {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 2.8rem;
    color: #6B5637;
    margin: 0;
    font-weight: 700;
    background: linear-gradient(135deg, #6B5637, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideDown 0.6s ease;
}

.modal-subtitle {
    color: #8B7355;
    font-size: 1.3rem;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease;
}

/* Service Image - Icon Size */
.modal-image {
    width: 60px;
    height: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0;
    flex-shrink: 0;
    border-radius: 50%;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Modal Body - Full Width with Container */
.modal-body {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 40px;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 150px);
    height: auto;
}

.modal-description {
    color: #8B7355;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Features Section - Full Width Grid */
.modal-section {
    width: 100%;
    margin-bottom: 60px;
    padding: 40px;
    box-sizing: border-box;
}

.modal-section h4 {
    color: #6B5637;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 4px solid #FFD700;
    padding-bottom: 20px;
    display: block;
    width: 100%;
}

.modal-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.modal-feature {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 215, 0, 0.1));
    border-radius: 20px;
    border-left: 5px solid #FFD700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.modal-feature:hover {
    transform: translateY(-5px) translateX(10px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.modal-feature i {
    color: #FFD700;
    font-size: 2rem;
    min-width: 40px;
}

.modal-feature span {
    color: #6B5637;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Benefits Section - Full Width */
.modal-benefits {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.02));
    padding: 60px 40px;
    box-sizing: border-box;
}

.modal-benefits h5 {
    color: #6B5637;
    margin-bottom: 40px;
    font-size: 2.5rem;
    text-align: center;
}

.modal-benefits ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.modal-benefits li {
    color: #8B7355;
    padding: 20px 30px;
    padding-left: 60px;
    position: relative;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    font-size: 1.15rem;
    line-height: 1.6;
}

.modal-benefits li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-benefits li:before {
    content: "✨";
    position: absolute;
    left: 25px;
    color: #FFD700;
    font-size: 1.6rem;
}

/* Call to Action section removed */

/* Reset any conflicting styles */
.service-modal * {
    box-sizing: border-box;
}

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

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .modal-features {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .modal-benefits ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .modal-title {
        font-size: 2.5rem;
    }

    .modal-subtitle {
        font-size: 1.3rem;
    }

    .modal-image {
        width: 50px;
        height: 50px;
    }

    .modal-body {
        padding: 40px 20px;
    }

    .modal-description {
        font-size: 1.1rem;
        padding: 25px;
    }

    .service-offerings {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 20px auto;
        padding: 10px;
        height: auto;
        position: static;
    }

    .service-section {
        position: static !important;
        width: 100% !important;
        min-height: auto;
        padding: 25px;
        transform: none !important;
        z-index: auto !important;
    }

    .service-section h4 {
        font-size: 1.6rem;
    }

    .service-section p {
        font-size: 1rem;
    }

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

    .modal-feature {
        padding: 20px;
    }

    .modal-feature span {
        font-size: 1.05rem;
    }

    .modal-benefits {
        padding: 40px 20px;
    }

    .modal-section h4,
    .modal-benefits h5 {
        font-size: 2rem;
    }

    /* Modal book button removed */

    /* Mobile Back Button */
    .modal-back-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Mobile Close Button */
    .modal-close {
        width: 50px;
        height: 50px;
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 60px 15px 20px;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .modal-subtitle {
        font-size: 1.1rem;
    }

    .modal-title-container {
        gap: 10px;
    }

    .modal-image {
        width: 40px;
        height: 40px;
    }

    .modal-body {
        padding: 30px 15px;
    }

    .modal-description {
        font-size: 1rem;
        padding: 20px;
    }

    .modal-section {
        padding: 20px 10px;
    }

    .modal-feature {
        padding: 15px;
        gap: 15px;
    }

    .modal-feature i {
        font-size: 1.5rem;
    }

    .modal-feature span {
        font-size: 0.95rem;
    }

    .modal-benefits li {
        padding: 15px 20px;
        padding-left: 50px;
        font-size: 1rem;
    }

    /* Modal CTA and book button removed */
}

/* Enhanced Frequency Therapy Content Styles */
.service-offerings {
    margin: 20px 0;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    min-height: auto;
    height: auto;
}

/* Desktop Layout - 2x2 Rectangular Grid */
@media (min-width: 1200px) {
    .service-offerings {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 30px;
        width: 100%;
        max-width: 1200px;
        margin: 50px auto;
        padding: 0;
        height: auto;
        min-height: 700px;
    }

    .service-section {
        position: static;
        width: 100%;
        height: 320px;
        display: flex;
        flex-direction: column;
        padding: 30px;
        transition: all 0.3s ease;
        transform: none;
        margin: 0;
        background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
        border-radius: 20px;
        border: 2px solid rgba(255, 215, 0, 0.2);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .service-section:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
        border-color: rgba(255, 215, 0, 0.4);
    }

    .modal-body {
        padding: 50px;
        display: flex;
        flex-direction: column;
    }

    .modal-description {
        margin-bottom: 40px;
        padding: 40px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .service-offerings {
        flex: 1;
    }
}

/* Tablet Layout - Single column, reset positioning */
@media (min-width: 768px) and (max-width: 1199px) {
    .service-offerings {
        display: grid;
        grid-template-columns: 1fr;
        gap: 25px;
        width: 100%;
        max-width: 700px;
        margin: 25px auto;
        padding: 0;
        height: auto;
        position: static;
    }

    .service-section {
        position: static !important;
        width: 100% !important;
        min-height: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        padding: 35px;
        transform: none !important;
        z-index: auto !important;
        margin-bottom: 25px;
    }

    .service-section h4 {
        font-size: 1.8rem;
    }

    .service-section p {
        font-size: 1.05rem;
    }

    .modal-body {
        padding: 40px;
    }
}

/* Hero Section Enhancement */
.modal-description {
    position: relative;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-radius: 25px;
    padding: 50px 40px;
    margin-bottom: 60px;
    overflow: hidden;
}


.modal-description > * {
    position: relative;
    z-index: 1;
}


.service-section {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    margin: 0 0 30px 0;
    padding: 35px;
    border-radius: 25px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: auto;
    height: auto;
    backdrop-filter: blur(10px);
}


.service-section:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 30px rgba(255, 215, 0, 0.2),
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 215, 0, 0.4);
}

.service-section > * {
    position: relative;
    z-index: 1;
}

.service-section p {
    flex-shrink: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #8B7355;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.expectation-list,
.healy-benefits,
.corporate-packages {
    flex: 1;
    overflow-y: auto;
}


.service-section h4 {
    color: #6B5637;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid transparent;
    background: linear-gradient(90deg, #FFD700, #FFA500) bottom;
    background-size: 0 2px;
    background-repeat: no-repeat;
    padding-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.service-section:hover h4 {
    background-size: 100% 2px;
}

.service-section h4 i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    border-radius: 10px;
    margin-right: 12px;
    font-size: 1.1rem;
    box-shadow:
        0 4px 12px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 12px 30px rgba(255, 215, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

.service-section:hover h4 i {
    transform: scale(1.05);
    animation: none;
    box-shadow:
        0 10px 20px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.service-section h5 {
    color: #6B5637;
    font-size: 1.1rem;
    margin: 15px 0 10px 0;
    font-weight: 700;
    position: relative;
    padding-left: 20px;
}

.service-section h5::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.expectation-list,
.healy-benefits,
.corporate-packages {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: grid;
    gap: 8px;
}

.expectation-list li,
.healy-benefits li,
.corporate-packages li {
    padding: 12px 15px;
    color: #8B7355;
    line-height: 1.4;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 3px solid #FFD700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
}

.expectation-list li::before,
.healy-benefits li::before,
.corporate-packages li::before {
    content: '✨';
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.expectation-list li:hover,
.healy-benefits li:hover,
.corporate-packages li:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.2);
    border-left-color: #FFA500;
}

.expectation-list li:hover::before,
.healy-benefits li:hover::before,
.corporate-packages li:hover::before {
    transform: scale(1.2) rotate(10deg);
    opacity: 1;
}

.exclusive-offer {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    padding: 30px;
    border-radius: 20px;
    margin: 25px 0;
    border: 2px solid rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.exclusive-offer::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.exclusive-offer h5 {
    color: #6B5637;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.exclusive-offer h5 i {
    color: #FFD700;
    margin-right: 12px;
    font-size: 1.8rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}





.btn-book-inline {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-book-inline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-book-inline:hover::before {
    left: 100%;
}

.btn-book-inline:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #FFA500, #FFD700);
}

.btn-book-inline:active {
    transform: translateY(-1px) scale(1.02);
}

/* Color-coded sections for visual hierarchy */
.service-section:nth-child(1) {
    border-left-color: #4A90E2; /* Blue for consultation */
}

.service-section:nth-child(2) {
    border-left-color: #7ED321; /* Green for device */
}

.service-section:nth-child(3) {
    border-left-color: #9013FE; /* Purple for corporate */
}

.service-section:nth-child(1) h4 i {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
}

.service-section:nth-child(2) h4 i {
    background: linear-gradient(135deg, #7ED321, #5CB85C);
}

.service-section:nth-child(3) h4 i {
    background: linear-gradient(135deg, #9013FE, #7B1FA2);
}

/* Enhanced visual separators */
.service-section + .service-section {
    position: relative;
}

.service-section + .service-section::after {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    border-radius: 2px;
}

/* Counter indicators removed for clean rectangular layout */

/* Book Now Button Section */
.modal-cta-section {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 2px solid rgba(255, 215, 0, 0.2);
}

.btn-book-now {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    justify-content: center;
}

.btn-book-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-book-now:hover::before {
    left: 100%;
}

.btn-book-now:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #FFA500, #FFD700);
}

.btn-book-now:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-book-now i {
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mobile Responsive for Enhanced Content */
@media (max-width: 991px) {
    .modal-body {
        padding: 20px;
        min-height: calc(100vh - 250px);
    }

    .modal-description {
        padding: 20px;
        margin-bottom: 20px;
        font-size: 1.1rem;
    }

    .service-offerings {
        gap: 20px;
        height: auto;
        min-height: calc(100vh - 300px);
    }

    .service-section {
        padding: 20px;
        height: auto;
        min-height: 300px;
    }

    .service-section h4 {
        font-size: 1.8rem;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .service-section h4 i {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .service-section h5 {
        font-size: 1.2rem;
    }

    .service-pricing {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }

    .price {
        font-size: 1.4rem;
    }

    .btn-book-inline {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }

    .expectation-list li,
    .healy-benefits li,
    .corporate-packages li {
        padding: 15px;
        font-size: 0.95rem;
    }

    .exclusive-offer {
        padding: 20px;
        margin: 15px 0;
    }

    .modal-cta-section {
        padding: 20px 0;
        margin-top: 20px;
    }

    .btn-book-now {
        width: 90%;
        max-width: 300px;
        padding: 15px 20px;
        font-size: 1rem;
    }

}