/* Common CSS for ClainetRCM Website */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Top Section with Contact and Social Media */
.top-section {
    background: #2c5aa0;
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

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

.contact-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    color: white;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
    color: #ffcc00;
}

/* Navigation Bar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    padding: 10px 0;
    flex-shrink: 0;
}

.logo img {
    max-height: 130px;
    width: auto;
    max-width: 150px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.active {
    color: #178430;
    background-color: #8ef09d;
    border-radius: 30px;
    text-align: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    padding: 20px 15px;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link:hover {
    color: #28a745;
    background-color: #f8fff9;
}

/* Dropdown Menu - Desktop */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9ff;
}

.dropdown-link {
    color: #555;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-link:hover {
    color: #667eea;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Footer Section */
.mof-footer {
    background: #2c5aa0;
    color: #fff;
    padding: 50px 20px 20px;
    font-family: Arial, sans-serif;
}

.mof-footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.mof-footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffcc00;
    display: inline-block;
    padding-bottom: 5px;
}

.mof-footer-col p, 
.mof-footer-col ul {
    font-size: 0.9rem;
    line-height: 1.6;
}

.mof-footer-col ul {
    list-style: none;
    padding: 0;
}

.mof-footer-col ul li {
    margin-bottom: 8px;
}

.mof-footer-col ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.mof-footer-col ul li a:hover {
    color: #ffcc00;
}

.mof-footer-social a {
    display: inline-block;
    margin-right: 10px;
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s;
}

.mof-footer-social a:hover {
    color: #ffcc00;
}

/* Get in Touch Button */
.mof-footer-button-wrap {
    margin-bottom: 15px;
}
.mof-footer-btn {
    display: inline-block;
    background: #ffcc00;
    color: #186a2b;
    padding: 10px 10px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.mof-footer-btn:hover {
    background: #fff;
    color: #2c5aa0;
}

.mof-footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    font-size: 0.85rem;
}

.mof-footer-bottom a {
    color: #ffcc00;
    text-decoration: none;
}

.mof-footer-bottom a:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .top-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .nav-container {
        padding: 10px 20px;
    }

    .logo img {
        height: 40px;
    }
}

/* Mobile Navbar Styles */
@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 15px 20px;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Mobile Dropdown Styles */
    .dropdown {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        background: #f8f9ff;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .nav-item.active .dropdown {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }

    .dropdown-item {
        padding: 10px 30px;
        border-bottom: 1px solid #e0e0e0;
    }

    /* Disable hover effects on mobile */
    .nav-item:hover .dropdown {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    .nav-item.active:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 500px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 400px) {
    .mof-footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Fix for very small screens */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }

    .mof-footer {
        padding: 30px 10px 15px;
    }
}

/* Additional fixes for better mobile experience */
@media (hover: none) and (pointer: coarse) {
    .contact-item:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .quick-btn:hover {
        transform: none;
    }

    .submit-btn:hover {
        transform: none;
    }
}

/* Form CSS */

       .nanu-container {
    text-align: center;
    max-width: 600px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nanu-title {
    font-size: 2.2rem;
    color: #2c5aa0;
    margin-bottom: 15px;
    font-weight: 700;
}

.nanu-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Button Styles - Changed from ID to class */
.nanuTriggerButton {
    background: linear-gradient(135deg, #ffcc00 0%, #ffdb4d 100%);
    color: #2c5aa0;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(255, 204, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.nanuTriggerButton:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255, 204, 0, 0.5);
    background: linear-gradient(135deg, #e6b800 0%, #ffcc00 100%);
}

.nanuTriggerButton:active {
    transform: translateY(-2px);
}

.nanuTriggerButton i {
    margin-right: 12px;
    font-size: 22px;
}

.nanuTriggerButton::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    top: 0;
    left: -100%;
    transform: skewX(-15deg);
    transition: all 0.6s ease;
}

.nanuTriggerButton:hover::after {
    left: 100%;
}

/* Contact Form Overlay */
#nanuFormOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: nanuFadeIn 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

#nanuFormOverlay.nanu-active {
    display: flex;
}

.nanu-contact-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 520px;
    position: relative;
    margin: auto;
    max-height: 90vh;
    overflow-y: auto;
}

.nanu-form-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.nanu-form-close:hover {
    color: #28a745;
}

.nanu-form-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    margin-top: 10px;
}

.nanu-form-group {
    margin-bottom: 18px;
}

.nanu-form-row {
    display: flex;
    gap: 15px;
}

.nanu-form-row .nanu-form-group {
    flex: 1;
}

.nanu-form-label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.nanu-form-input,
.nanu-form-select,
.nanu-form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.nanu-form-input:focus,
.nanu-form-select:focus,
.nanu-form-textarea:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.nanu-form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.nanu-form-submit {
    width: 100%;
    background: #ffcc00;
    color: #2c5aa0;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.nanu-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
    background: #e6b800;
}

.nanu-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

@keyframes nanuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #nanuFormOverlay {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2000;
        border-radius: 0;
    }
    
    .nanu-contact-form {
        max-width: 95%;
    }
    
    .nanu-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .nanuTriggerButton {
        padding: 15px 30px;
        font-size: 18px;
    }
    
    .nanu-title {
        font-size: 1.8rem;
    }
    
    .nanu-subtitle {
        font-size: 1rem;
    }
}