/* CSS Design System for Brickmate Construction Network - Social Style UI/UX */

.bmcs-app {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    color: #1e293b;
    background-color: #f8fafc;
    padding: 0 0 20px 0;
    line-height: 1.6;
}

/* Typography Scale */
.bmcs-app h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #0f172a;
    font-size: 40px;
    line-height: 1.15;
    margin-bottom: 0.5em;
}
.bmcs-app h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #0f172a;
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 0.5em;
}
.bmcs-app h3, .bmcs-app h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

/* Premium Form Elements - Global 8px Curves and 18px+ Legibility */
.bmcs-app input:not([type="checkbox"]):not([type="radio"]),
.bmcs-app select,
.bmcs-app textarea {
    font-size: 15px !important;
    min-height: 40px !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 8px 14px !important;
    width: 100% !important;
    background-color: #ffffff !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.bmcs-app input:focus,
.bmcs-app select:focus,
.bmcs-app textarea:focus {
    outline: none !important;
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15) !important;
}

.bmcs-app label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    display: inline-block !important;
}

/* Primary and Secondary Buttons */
.bmcs-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 14px !important;
    font-weight: 600 !important;
    min-height: 40px !important;
    border-radius: 6px !important;
    padding: 8px 18px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none !important;
}

.bmcs-btn-primary {
    background: #0d9488 !important;
    color: #ffffff !important;
}

.bmcs-btn-primary:hover {
    background: #0f766e !important;
    transform: translateY(-1px);
}

.bmcs-btn-secondary {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}

.bmcs-btn-secondary:hover {
    background: #e2e8f0 !important;
    transform: translateY(-1px);
}

.bmcs-btn-danger {
    background: #ef4444 !important;
    color: #ffffff !important;
}

.bmcs-btn-danger:hover {
    background: #dc2626 !important;
}

/* ==========================================
   LINKEDIN-STYLE PUBLIC CONSULTANT PROFILE
   ========================================== */
.bmcs-profile-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
}

/* Banner Frame */
.bmcs-profile-banner {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlapping Avatar Area */
.bmcs-profile-header-wrap {
    padding: 0 30px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.bmcs-profile-avatar-row {
    display: flex;
    align-items: flex-end;
    margin-top: -70px; /* Overlaps cover image */
    margin-bottom: 20px;
    justify-content: space-between;
}

.bmcs-profile-avatar-circle {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
}

.bmcs-profile-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Verified Badge Overlay */
.bmcs-avatar-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #0ea5e9;
    color: #ffffff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 2;
}

/* Profile Information Block */
.bmcs-profile-intro-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.bmcs-profile-info-main h2 {
    font-size: 24px;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bmcs-profile-headline {
    font-size: 18px;
    color: #475569;
    margin: 0 0 10px;
}

.bmcs-profile-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.bmcs-meta-pill {
    font-size: 14px;
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2e8f0;
}

.bmcs-meta-pill i {
    color: #0d9488;
}

.bmcs-profile-actions {
    display: flex;
    gap: 12px;
}

/* Profile Navigation Tabs (LinkedIn Style) */
.bmcs-profile-nav-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin: 30px 40px 0;
    gap: 24px;
}

.bmcs-profile-tab-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #64748b;
    background: none;
    border: none;
    padding: 12px 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.bmcs-profile-tab-btn:hover {
    color: #0d9488;
}

.bmcs-profile-tab-btn.active {
    color: #0d9488;
}

.bmcs-profile-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #0d9488;
    border-radius: 3px;
}

/* Profile Grid Body Layout */
.bmcs-profile-body {
    padding: 25px 30px;
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 25px;
}

@media (max-width: 900px) {
    .bmcs-profile-body {
        grid-template-columns: 1fr;
    }
    .bmcs-profile-avatar-row {
        flex-direction: column;
        align-items: center;
        margin-top: -75px;
    }
    .bmcs-profile-intro-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .bmcs-profile-actions {
        margin-top: 15px;
    }
}

/* Tab Panels Content */
.bmcs-tab-panel {
    display: none;
}

.bmcs-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Detail Section Cards */
.bmcs-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.bmcs-section-card h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bmcs-section-card h3 i {
    color: #0d9488;
}

/* Services (Offerings) Grid Layout */
.bmcs-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .bmcs-services-grid {
        grid-template-columns: 1fr;
    }
}

.bmcs-service-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bmcs-service-card:hover {
    border-color: #0d9488;
    box-shadow: 0 4px 12px rgba(13,148,136,0.06);
}

.bmcs-service-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bmcs-service-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.bmcs-service-price {
    font-size: 18px;
    font-weight: 800;
    color: #0d9488;
}

.bmcs-service-duration {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}

.bmcs-service-desc {
    font-size: 15px;
    color: #475569;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* Sidebar Conversion Panels */
.bmcs-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    position: sticky;
    top: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

/* FAQ Accordion Styling */
.bmcs-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.bmcs-faq-trigger {
    width: 100%;
    padding: 16px 20px;
    background: #f8fafc;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bmcs-faq-trigger::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.2s ease;
}

.bmcs-faq-item.active .bmcs-faq-trigger::after {
    transform: rotate(180deg);
}

.bmcs-faq-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out, padding 0.2s ease;
    background: #ffffff;
}

.bmcs-faq-item.active .bmcs-faq-content {
    padding: 16px 20px;
    max-height: 500px;
}

/* Testimonials Slideshow */
.bmcs-testimonial {
    border-left: 4px solid #0d9488;
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 16px;
}

.bmcs-testimonial-content {
    font-style: italic;
    font-size: 16px;
    margin-bottom: 8px;
}

.bmcs-testimonial-author {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
}

/* Verified Documents Listing */
.bmcs-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.bmcs-doc-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.bmcs-doc-card:hover {
    background: #f8fafc;
    border-color: #0ea5e9;
}

.bmcs-doc-icon {
    font-size: 24px;
    color: #0ea5e9;
}

.bmcs-doc-info span {
    display: block;
}

.bmcs-doc-info .bmcs-doc-title {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
}

.bmcs-doc-info .bmcs-doc-action {
    font-size: 12px;
    color: #64748b;
}

/* Related Profiles Section at Footer */
.bmcs-related-section {
    max-width: 1200px;
    margin: 40px auto 0;
}

.bmcs-related-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.bmcs-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 800px) {
    .bmcs-related-grid {
        grid-template-columns: 1fr;
    }
}

.bmcs-related-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
}

.bmcs-related-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    overflow: hidden;
    background: #f1f5f9;
}

.bmcs-related-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bmcs-related-card h4 {
    font-size: 18px;
    margin: 0 0 6px;
}

.bmcs-related-card .bmcs-related-headline {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    height: 40px;
    overflow: hidden;
}

/* ==========================================
   FACEBOOK-STYLE OWNER DASHBOARD
   ========================================== */
.bmcs-dashboard-shell {
    max-width: 1200px;
    margin: 0 auto;
}

.bmcs-dashboard-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.bmcs-dashboard-cover {
    height: 160px;
    background: linear-gradient(135deg, #0d9488 0%, #1e293b 100%);
    position: relative;
}

.bmcs-dashboard-avatar-row {
    padding: 0 30px;
    display: flex;
    align-items: flex-end;
    margin-top: -60px;
    margin-bottom: 20px;
    gap: 20px;
}

.bmcs-dashboard-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: #e2e8f0;
    overflow: hidden;
}

.bmcs-dashboard-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bmcs-dashboard-profile-info {
    padding-bottom: 10px;
}

.bmcs-dashboard-profile-info h2 {
    font-size: 24px;
    margin: 0;
}

.bmcs-dashboard-profile-info p {
    font-size: 15px;
    color: #64748b;
    margin: 2px 0 0;
}

/* Facebook-Style Navigation Row underneath header photo */
.bmcs-dashboard-nav {
    display: flex;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 0 30px;
    gap: 8px;
    overflow-x: auto;
}

.bmcs-dashboard-nav-item {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    padding: 16px 12px;
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none !important;
    position: relative;
}

.bmcs-dashboard-nav-item:hover {
    color: #0d9488;
}

.bmcs-dashboard-nav-item.active {
    color: #0d9488;
}

.bmcs-dashboard-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0d9488;
}

.bmcs-dashboard-body {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.bmcs-dashboard-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.bmcs-dashboard-card h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

/* ==========================================
   DYNAMIC SEARCH & SELECT DROPDOWNS ENGINE
   ========================================== */
.bmcs-select-custom {
    position: relative;
    width: 100%;
}

.bmcs-select-trigger {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    min-height: 48px;
    padding: 10px 36px 10px 16px;
    font-size: 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}

.bmcs-select-trigger::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.bmcs-select-custom.open .bmcs-select-trigger::after {
    transform: translateY(-50%) rotate(180deg);
}

.bmcs-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-top: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    z-index: 100;
    display: none;
    padding: 8px;
}

.bmcs-select-custom.open .bmcs-select-dropdown {
    display: block;
}

.bmcs-select-search-container {
    margin-bottom: 8px;
}

.bmcs-select-search-container input {
    font-size: 16px !important;
    min-height: 38px !important;
    padding: 8px 12px !important;
}

.bmcs-select-options-list {
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bmcs-select-option {
    padding: 10px 12px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.1s ease;
}

.bmcs-select-option:hover {
    background: #f1f5f9;
}

.bmcs-select-option.selected {
    background: #0d9488;
    color: #ffffff;
}

.bmcs-select-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.bmcs-select-chip {
    background: #e2e8f0;
    color: #334155;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bmcs-select-chip-close {
    cursor: pointer;
    color: #ef4444;
    font-weight: bold;
}

.bmcs-select-chip-close:hover {
    color: #dc2626;
}

/* ==========================================
   HOMEPAGE DIRECTORY LIST
   ========================================== */
.bmcs-directory-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.bmcs-search-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.bmcs-search-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 4px;
    align-items: flex-end;
}

.bmcs-search-row label {
    font-size: 13px !important;
    margin-bottom: 2px !important;
    color: #475569 !important;
    display: block !important;
}

.bmcs-search-row input[type="text"],
.bmcs-search-row select {
    font-family: 'Outfit', sans-serif !important;
    font-size: 13px !important;
    color: #475569 !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #fff !important;
    line-height: 26px !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.bmcs-search-row select {
    padding-right: 24px !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 12px !important;
}

.bmcs-search-row button {
    height: 28px !important;
    min-height: 28px !important;
    font-size: 13px !important;
    padding: 0 16px !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    line-height: normal !important;
    margin: 0 !important;
    border: 1px solid transparent !important;
}

@media (max-width: 768px) {
    .bmcs-search-row {
        grid-template-columns: 1fr;
    }
}

.bmcs-grid-listing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .bmcs-grid-listing {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .bmcs-grid-listing {
        grid-template-columns: 1fr;
    }
}

.bmcs-consultant-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.bmcs-consultant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border-color: #0d9488;
}

.bmcs-card-cover {
    height: 80px;
    background-size: cover;
    background-position: center;
}

.bmcs-card-avatar-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 15px 0;
    margin-top: 0;
}

.bmcs-card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
}

.bmcs-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bmcs-card-body {
    padding: 10px 15px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bmcs-card-body h3 {
    margin: 0 0 2px;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bmcs-card-headline {
    font-size: 13px;
    color: #475569;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Verified Badge colors */
.bmcs-verified-badge {
    color: #0ea5e9;
    font-size: 14px;
}

/* Glassmorphism Centered Card */
.bmcs-auth-card {
    max-width: 480px;
    margin: 40px auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .bmcs-auth-card, .bmcs-success-card {
        padding: 20px;
    }
}

.bmcs-auth-card h2 {
    font-size: 26px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 24px;
}

/* Success Booking Overlay */
.bmcs-success-card {
    max-width: 600px;
    margin: 40px auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.bmcs-success-icon {
    font-size: 50px;
    color: #10b981;
    margin-bottom: 20px;
}

.bmcs-success-card h2 {
    margin-top: 0;
}

.bmcs-success-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

/* Ads inline layout */
.bmcs-ad-banner {
    background: #1e293b;
    color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.bmcs-ad-content h4 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 18px;
}

.bmcs-ad-content p {
    margin: 0;
    color: #94a3b8;
}

/* Availability slot grid */
.bmcs-slot-day {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.bmcs-slot-radio {
    display: none;
}

.bmcs-slot-label {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.bmcs-slot-label:hover {
    border-color: #0d9488;
    background: #f0fdfa;
}

.bmcs-slot-radio:checked + .bmcs-slot-label {
    background: #0d9488;
    border-color: #0d9488;
    color: #ffffff;
}
/* ==========================================
   GLOBAL MOBILE RESPONSIVENESS OVERRIDES
   ========================================== */
@media (max-width: 768px) {
    /* Force all inline grids to collapse into single columns */
    .bmcs-app div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Collapse class-based grids on profile and services */
    .bmcs-pf .g2,
    .bmcs-pf .g3,
    .bmcs-compact-form .bmcs-grid-row {
        grid-template-columns: 1fr !important;
    }
    
    /* Make all tables scrollable horizontally by wrapping in parent card overflow, not breaking table layout */
    .bmcs-app table, .bmcs-app .wp-list-table {
        display: table !important;
        width: 100% !important;
        min-width: 600px !important;
    }
    .bmcs-app .bmcs-dashboard-card,
    .bmcs-app .bmcs-section-card {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Ensure table headers and cells don't squish */
    .bmcs-app table th, .bmcs-app table td {
        white-space: nowrap !important;
    }

    /* Force the dashboard layout to stack */
    .bmcs-dashboard-layout {
        flex-direction: column !important;
    }
    
    /* Public profile specific fixes */
    .bmcs-profile-layout {
        flex-direction: column !important;
        padding: 0 10px 20px !important;
    }

    /* Keep public profile nav tabs scrollable instead of wrapping */
    .bmcs-profile-nav-tabs {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        border-bottom: 2px solid #f1f5f9 !important;
        gap: 12px !important;
    }
    .bmcs-profile-nav-tabs::-webkit-scrollbar {
        display: none !important;
    }
    .bmcs-profile-nav-tabs .bmcs-profile-tab-btn {
        flex-shrink: 0 !important;
    }

    /* Scale hero slider on homepage for mobile viewports */
    .bmcs-hero-slider {
        height: 220px !important;
    }
    .bmcs-hero-slider .bmcs-slide-content h2 {
        font-size: 20px !important;
    }
    .bmcs-hero-slider .bmcs-slide-content p {
        font-size: 13px !important;
    }
}
/* ==========================================
   GLOBAL COMPACT SPACING (Match Header Style)
   ========================================== */
.bmcs-app .bmcs-dashboard-card,
.bmcs-app .bmcs-section-card,
.bmcs-app .bmcs-profile-body,
.bmcs-app .bmcs-review-card,
.bmcs-app .bmcs-success-card,
.bmcs-app .bmcs-login-card,
.bmcs-app .bmcs-signup-card,
.bmcs-app .bmcs-service-card {
    padding: 16px 20px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    border-radius: 8px !important;
}

.bmcs-app .bmcs-dashboard-card h2,
.bmcs-app .bmcs-dashboard-card h3,
.bmcs-app .bmcs-section-card h3 {
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
    font-size: 16px !important;
}

/* =========================================
   Hero Ad Slider
========================================= */
.bmcs-hero-slider-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

/* =========================================
   Dashboard Forms (.bmcs-pf)
========================================= */
.bmcs-pf label { font-size:12px !important; font-weight:600; color:#475569; margin-bottom:3px !important; display:block; }
.bmcs-pf input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
.bmcs-pf textarea {
    font-size:13px !important;
    min-height:34px !important;
    padding:5px 9px !important;
    border-radius:5px !important;
    width:100%;
}
.bmcs-pf select:not([multiple]) {
    font-size:13px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 9px !important;
    border-radius: 5px !important;
    width: 100%;
    line-height: 1 !important;
}
.bmcs-pf select[multiple] {
    font-size:13px !important;
    min-height: 80px !important;
    padding: 5px 9px !important;
    border-radius: 5px !important;
    width: 100%;
}
.bmcs-pf textarea { min-height:56px !important; resize:vertical; }

.bmcs-pf .bmcs-select-custom { margin-bottom: 0px !important; }
.bmcs-pf .bmcs-select-custom .bmcs-select-trigger { font-size: 13px !important; min-height: 34px !important; height: 34px !important; padding: 6px 28px 6px 9px !important; border-radius: 5px !important; line-height: 1.4 !important; background: #ffffff !important; border-color: #cbd5e1 !important; box-sizing: border-box !important; }
.bmcs-pf .bmcs-select-custom .bmcs-select-trigger::after { right: 10px !important; font-size: 12px !important; }
.bmcs-pf .bmcs-select-custom.open .bmcs-select-trigger { border-color: #0d9488 !important; box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.1) !important; }
.bmcs-pf .bmcs-select-custom .bmcs-select-dropdown { padding: 6px !important; border-radius: 6px !important; }
.bmcs-pf .bmcs-select-custom .bmcs-select-search-container input { font-size: 13px !important; min-height: 30px !important; height: 30px !important; padding: 4px 8px !important; border-radius: 4px !important; }
.bmcs-pf .bmcs-select-custom .bmcs-select-option { padding: 6px 10px !important; font-size: 13px !important; }
.bmcs-pf .bmcs-select-custom .bmcs-select-chips { margin-top: 8px !important; margin-bottom: 4px !important; }
.bmcs-pf .bmcs-select-custom .bmcs-select-chip { padding: 2px 8px !important; font-size: 12px !important; border-radius: 4px !important; }

.bmcs-pf .pf-sec { font-size:11px; font-weight:700; color:#0d9488; text-transform:uppercase; letter-spacing:.6px; border-bottom:1px solid #e2e8f0; padding-bottom:5px; margin:16px 0 10px; display:flex; align-items:center; gap:6px; }
.bmcs-pf .g2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:10px; }
.bmcs-pf .g3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; margin-bottom:10px; }
.bmcs-pf .g1 { margin-bottom:10px; }

@media (max-width: 600px) {
    .bmcs-pf .g2, .bmcs-pf .g3 { grid-template-columns: 1fr; }
}
    width: 100%;
    margin: 0 auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}
.bmcs-hero-slider {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: #0f172a;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.bmcs-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    margin: 0 !important;
    padding: 0 !important;
}
.bmcs-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    margin: 0 !important;
    border: none !important;
}
.bmcs-slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent 50%);
    pointer-events: none;
}
.bmcs-slide-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    z-index: 2;
    padding-bottom: 0; /* Centered without overlap */
}
.bmcs-slide-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.bmcs-slide-content p {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.bmcs-slide-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}
.bmcs-slide-btn:hover {
    background: #fff;
    color: #0f172a;
}
.bmcs-slider-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}
.bmcs-slider-arrow:hover { background: rgba(0, 0, 0, 0.6); }
.bmcs-slider-prev { left: 20px; }
.bmcs-slider-next { right: 20px; }
.bmcs-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}
.bmcs-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.bmcs-slider-dot.active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Overlapped Search Card */
.bmcs-search-overlapped {
    position: relative;
    z-index: 20;
    margin: 0 20px 30px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15) !important;
}
@media (max-width: 768px) {
    .bmcs-hero-slider { height: 300px; }
    .bmcs-slide-content h2 { font-size: 24px; }
    .bmcs-slide-content p { font-size: 15px; }
    .bmcs-promo-container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .bmcs-promo-card {
        padding: 12px 16px !important;
    }
    .bmcs-stats-container {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .bmcs-stat-card {
        padding: 10px 14px !important;
    }
}

/* =========================================
   Grid Ads (In-Feed)
========================================= */
.bmcs-ad-card {
    position: relative;
    border-radius: 12px;
    padding: 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    overflow: hidden;
    min-height: 160px;
}
.bmcs-ad-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent 60%);
    pointer-events: none;
}
.bmcs-ad-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 2;
}
.bmcs-ad-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.bmcs-ad-card p {
    margin: 0 0 16px;
    font-size: 14px;
    opacity: 0.9;
    z-index: 2;
    line-height: 1.5;
}
.bmcs-ad-card-btn {
    display: inline-block;
    align-self: flex-start;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    z-index: 2;
}
.bmcs-ad-card-btn:hover {
    background: #fff;
    color: #0f172a;
}

/* Pricing Table Styles */
.bmcs-pricing-container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; font-family: 'Inter', sans-serif; }
.bmcs-pricing-header { text-align: center; margin-bottom: 50px; }
.bmcs-pricing-header h2 { font-size: 2.5rem; color: #0f172a; margin-bottom: 10px; font-weight: 800; letter-spacing: -0.5px; }
.bmcs-pricing-header p { font-size: 1.1rem; color: #64748b; }
.bmcs-pricing-section-title { text-align: center; font-size: 1.8rem; color: #1e293b; margin-bottom: 30px; font-weight: 700; }
.bmcs-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.bmcs-pricing-single { max-width: 400px; margin: 0 auto; }
.bmcs-pricing-card { background: #ffffff; border-radius: 20px; padding: 40px; box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08); position: relative; border: 1px solid #e2e8f0; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; overflow: hidden; }
.bmcs-pricing-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12); }
.bmcs-pricing-card.best-value, .bmcs-pricing-card.popular { border: 2px solid #3b82f6; box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.2); }
.bmcs-pricing-card h3 { font-size: 1.5rem; color: #0f172a; margin: 0 0 15px; font-weight: 700; }
.bmcs-badge { position: absolute; top: 15px; right: 15px; background: #3b82f6; color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.bmcs-pricing-card.best-value .bmcs-badge { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bmcs-price { display: flex; align-items: baseline; margin-bottom: 15px; }
.bmcs-price .currency { font-size: 1.5rem; font-weight: 600; color: #0f172a; margin-right: 2px; }
.bmcs-price .amount { font-size: 3rem; font-weight: 800; color: #0f172a; line-height: 1; letter-spacing: -1px; }
.bmcs-price .period { color: #64748b; margin-left: 5px; font-weight: 500; }
.bmcs-pricing-desc { color: #64748b; font-size: 0.95rem; line-height: 1.5; margin-bottom: 25px; min-height: 45px; }
.bmcs-features-list { list-style: none; padding: 0; margin: 0 0 30px; flex-grow: 1; }
.bmcs-features-list li { display: flex; align-items: flex-start; margin-bottom: 15px; color: #334155; font-size: 0.95rem; }
.bmcs-features-list .icon { color: #10b981; font-weight: bold; margin-right: 10px; font-size: 1.1rem; }
.bmcs-btn { width: 100%; padding: 14px; border-radius: 12px; font-weight: 600; font-size: 1rem; text-align: center; cursor: pointer; transition: all 0.3s ease; border: none; }
.bmcs-btn-primary { background: #3b82f6; color: white; box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39); }
.bmcs-btn-primary:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); color: white;}
.bmcs-btn-outline { background: transparent; color: #3b82f6; border: 2px solid #3b82f6; }
.bmcs-btn-outline:hover { background: #eff6ff; color: #2563eb; }
.bmcs-secure-payment { text-align: center; font-size: 0.75rem; color: #94a3b8; margin-top: 15px; }
.bmcs-price-wrapper { display: flex; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.bmcs-price-original { font-size: 1.1rem; color: #94a3b8; text-decoration: line-through; font-weight: 500; }
.bmcs-discount-pill { background-color: #fef3c7; color: #d97706; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; }
.bmcs-price { margin-bottom: 0; margin-left: 0; }
.bmcs-duration-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #f8fafc;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #334155;
    outline: none;
    transition: border-color 0.3s;
}
.bmcs-duration-select:focus {
    border-color: #3b82f6;
}

/* =========================================
   Global 2-Column Layout for Public Pages
   ========================================= */
.bmcs-main-container {
    display: flex;
    align-items: flex-start; /* Prevent columns from stretching to equal height */
    gap: 30px;
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 20;
}
.bmcs-side-ads-column {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start; /* Prevent cards from stretching vertically */
    position: sticky;
    top: 30px; /* Sticky offset */
}
.bmcs-main-content-column {
    flex: 1;
    min-width: 0;
}

/* Side Ad Cards */
.bmcs-side-ad-card {
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 auto; /* Natural height, no stretching */
    box-sizing: border-box;
    min-height: 50px;
}
.bmcs-side-ad-card h4 {
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 6px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.bmcs-side-ad-card p {
    font-size: 10px;
    margin: 0 0 10px 0;
    opacity: 0.9;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.bmcs-side-ad-card .bmcs-ad-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bmcs-side-ad-card .bmcs-btn-primary {
    align-self: flex-start;
    background: #ffffff !important;
    color: #0f172a !important;
    border: none !important;
    font-weight: 600;
    transition: all 0.2s;
    width: auto !important;
    min-height: 25px !important;
    height: 25px !important;
    padding: 0 12px !important;
    font-size: 10px !important;
    line-height: 25px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
.bmcs-side-ad-card .bmcs-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.25);
}

/* Scaling down the directory grid for container sizing */
@media (max-width: 1100px) and (min-width: 601px) {
    .bmcs-grid-listing {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .bmcs-main-container {
        display: flex;
        flex-direction: column !important; /* Stack columns down */
        margin-top: 10px;
    }
    .bmcs-main-content-column {
        order: 1; /* Main content on top on mobile */
    }
    .bmcs-left-ads {
        order: 2;
    }
    .bmcs-right-ads {
        order: 3;
    }
    .bmcs-side-ads-column {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
    .bmcs-side-ad-card {
        flex: 1 1 200px;
        min-height: 50px;
    }
}

/* =========================================
   Universal Footer
========================================= */
.bmcs-universal-footer {
    background: #0f172a !important;
    color: #94a3b8 !important;
    padding: 40px 30px 20px !important;
    margin-top: 50px !important;
    border-radius: 12px !important;
    font-family: 'Inter', sans-serif !important;
    box-sizing: border-box !important;
    clear: both !important;
}

.bmcs-footer-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 40px !important;
    margin-bottom: 30px !important;
}

.bmcs-footer-col h4 {
    color: #f8fafc !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin: 0 0 15px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.bmcs-footer-col p {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    color: #94a3b8 !important;
}

.bmcs-footer-col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.bmcs-footer-col ul li {
    margin-bottom: 8px !important;
}

.bmcs-footer-col ul li a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    transition: color 0.2s !important;
}

.bmcs-footer-col ul li a:hover {
    color: #0d9488 !important;
}

.bmcs-footer-bottom {
    border-top: 1px solid #1e293b !important;
    padding-top: 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    font-size: 12px !important;
}

.bmcs-footer-socials {
    display: flex !important;
    gap: 15px !important;
}

.bmcs-footer-socials a {
    color: #94a3b8 !important;
    font-size: 16px !important;
    transition: color 0.2s !important;
}

.bmcs-footer-socials a:hover {
    color: #f8fafc !important;
}

@media (max-width: 768px) {
    .bmcs-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .bmcs-footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
    }
}

