/* Extracted from services.php */

:root {
    --primary-blue: #0066FF;
    --bg-color: #FFFFFF;
    --input-bg: #F3F4F6;
    --text-dark: #111827;
    --text-grey: #6B7280;
    --border-color: #E5E7EB;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding-bottom: 90px;
}


/* Search Section */
.search-row {
    padding: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-wrapper {
    flex: 1;
    background: var(--input-bg);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-wrapper i.fa-search {
    color: #9CA3AF;
    font-size: 18px;
}

.search-wrapper input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 15px;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

.voice-mic {
    color: #6B7280;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.voice-mic.recording {
    color: #ef4444;
    animation: pulse 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.filter-btn-square {
    width: 52px;
    height: 52px;
    background: var(--input-bg);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 18px;
}

/* Section Headers */
.section-header {
    padding: 0 20px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* Categories Slider */
.categories-row {
    padding: 0 20px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-row::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    background: #F3F4F6;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    flex-shrink: 0;
}

.cat-pill.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

/* Sub-Service Cards - Bigger Rounded Cards */
.sub-services-row {
    padding: 0 20px 20px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.sub-card {
    flex: 1;
    min-width: 0;
    height: 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #e0e7ff;
}

.sub-card:hover,
.sub-card.active {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.2);
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.sub-card-icon {
    font-size: 26px;
    margin-bottom: 6px;
    color: var(--primary-blue);
}

.sub-card span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.2;
}

/* Services Container */
.services-container {
    padding: 0 20px 30px;
}

.services-section {
    margin-bottom: 24px;
}

.services-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Search Results Container - Shows cards like other pages */
.search-results-container {
    padding: 0 20px 30px;
    display: none;
}

.search-results-container.active {
    display: block;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.search-results-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.clear-search {
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Bottom Nav - Services Selected */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 70px;
    background: white;
    border-radius: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #9CA3AF;
    cursor: pointer;
    text-decoration: none;
}

.nav-item i {
    font-size: 22px;
}

.nav-item.active {
    flex: 1.5;
}

.nav-pill {
    background: var(--primary-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.nav-pill i {
    font-size: 18px;
}

/* Toast */
.toast-msg {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1C1C1E;
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    z-index: 9999;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Voice Recording Modal */
.voice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.voice-modal.active {
    display: flex;
}

.voice-modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    max-width: 300px;
}

.voice-modal-content i {
    font-size: 48px;
    color: #ef4444;
    margin-bottom: 16px;
    animation: pulse 1s infinite;
}

.voice-modal-content h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--text-dark);
}

.voice-modal-content p {
    margin: 0 0 20px;
    color: var(--text-grey);
    font-size: 14px;
}

.voice-modal-content button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    padding-bottom: 90px;
}

/* SEO Tag Pills */
.seo-tag-pill {
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
    background: #f3f4f6;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.seo-tag-pill:hover {
    background: #e0f2fe;
    color: #0066FF;
    border-color: #0066FF;
}

.seo-tag-pill strong {
    font-weight: 600;
    color: #1f2937;
}