/* ============================================================
   ServEasy — Custom Styles
   ============================================================ */

/* ----- Pincode autocomplete dropdown ----- */
.pincode-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.pincode-dropdown .suggest-item {
    padding: 10px 14px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.pincode-dropdown .suggest-item:hover { background: #f5f7ff; }
.pincode-dropdown .suggest-item:last-child { border-bottom: none; }

/* ----- Provider card ----- */
.single_ads .ads_image img {
    height: 180px;
    object-fit: cover;
    width: 100%;
}
.provider-card-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    background: #e8f4fd;
    color: #1a6fb3;
    display: inline-block;
    margin-right: 4px;
    margin-bottom: 4px;
}

/* ----- Rating stars ----- */
.rating-stars i { font-size: 13px; }

/* ----- Status badges ----- */
.badge-approved  { background: #d4edda; color: #155724; }
.badge-pending   { background: #fff3cd; color: #856404; }
.badge-rejected  { background: #f8d7da; color: #721c24; }
.badge-active    { background: #d1ecf1; color: #0c5460; }
.badge-expired   { background: #e2e3e5; color: #383d41; }

/* ----- Subscription plan cards ----- */
.plan-card {
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.3s;
    background: #fff;
}
.plan-card.popular {
    border-color: #1e2d55;
    box-shadow: 0 8px 30px rgba(30,45,85,0.15);
}
.plan-card .plan-price {
    font-size: 36px;
    font-weight: 700;
    color: #1e2d55;
}
.plan-card .plan-price sup { font-size: 18px; top: -12px; }
.plan-card .plan-price span { font-size: 14px; font-weight: 400; color: #888; }
.plan-card ul.plan-features { list-style: none; padding: 0; margin: 20px 0; }
.plan-card ul.plan-features li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
}
.plan-card ul.plan-features li i { color: #2ecc71; margin-right: 6px; }

/* ----- Dashboard sidebar ----- */
.dashboard-sidebar {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
}
.dashboard-sidebar .user-info {
    background: #1e2d55;
    padding: 24px;
    text-align: center;
    color: #fff;
}
.dashboard-sidebar .user-info img {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
}
.dashboard-sidebar .nav-link {
    padding: 12px 20px;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: all 0.2s;
}
.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    background: #f5f7ff;
    color: #1e2d55;
    font-weight: 500;
}
.dashboard-sidebar .nav-link i { width: 18px; text-align: center; }

/* ----- Admin panel ----- */
.admin-stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 16px;
}
.admin-stat-card .stat-icon {
    width: 50px; height: 50px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.admin-stat-card .stat-num { font-size: 28px; font-weight: 700; line-height: 1; }
.admin-stat-card .stat-label { font-size: 13px; color: #888; margin-top: 2px; }

/* ----- Subscription expired banner ----- */
.sub-expired-banner {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ----- Alert overrides ----- */
.alert { border-radius: 8px; }
.alert i { margin-right: 6px; }

/* ----- Form style ----- */
.serveasy-form .form-control {
    border-radius: 6px;
    border: 1px solid #dde2e9;
    padding: 10px 16px;
    height: auto;
    font-size: 14px;
}
.serveasy-form .form-control:focus {
    border-color: #1e2d55;
    box-shadow: 0 0 0 3px rgba(30,45,85,0.1);
}
.serveasy-form label { font-size: 13px; font-weight: 500; color: #444; margin-bottom: 4px; }

/* ----- Provider detail page ----- */
.provider-hero {
    background: #1e2d55;
    padding: 40px 0;
    color: #fff;
}
.provider-hero img {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
}
.provider-contact-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 24px;
    position: sticky;
    top: 20px;
}

/* ----- Approval status badge ----- */
.approval-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ----- Password eye toggle ----- */
.se-password-wrap { position: relative; }
.se-password-wrap input[type="password"],
.se-password-wrap input[type="text"] { padding-right: 40px; }
.se-eye {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    cursor: pointer; color: #aaa; z-index: 5;
    font-size: 15px; transition: color 0.2s;
}
.se-eye:hover { color: #1e2d55; }

/* ----- WhatsApp float button ----- */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 52px; height: 52px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    text-decoration: none; transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* ----- Chat widget styles ----- */
.chat-msg-user { display:flex;justify-content:flex-end;margin-bottom:8px; }
.chat-msg-provider { display:flex;justify-content:flex-start;margin-bottom:8px; }
.chat-bubble-out { background:#1e2d55;color:#fff;padding:8px 12px;border-radius:12px 12px 2px 12px;font-size:13px;max-width:70%; }
.chat-bubble-in  { background:#fff;border:1px solid #eee;color:#333;padding:8px 12px;border-radius:12px 12px 12px 2px;font-size:13px;max-width:70%; }

/* ----- Inner page banner overrides ----- */
.page_banner {
    position: relative;
    padding-top: 160px;
    padding-bottom: 60px;
    overflow: hidden;
}
.page_banner_overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.page_banner .container { position: relative; z-index: 1; }
.page_banner_content .title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}
@media (max-width: 767px) {
    .page_banner_content .title { font-size: 26px; }
    .page_banner { padding-top: 55px; padding-bottom: 40px; }
}
.page_banner_content .breadcrumb {
    padding: 0;
    margin: 14px 0 0;
    border-radius: 0;
    background: none;
}
.page_banner_content .breadcrumb li {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}
.page_banner_content .breadcrumb li a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}
.page_banner_content .breadcrumb li a:hover { color: #fff; }
.page_banner_content .breadcrumb li + li { margin-left: 30px; }
.page_banner_content .breadcrumb li + li::before {
    content: '/';
    position: absolute;
    left: -18px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    top: 0;
}
.page_banner_content .breadcrumb li { position: relative; }

/* Dashboard pages banner (compact) */
.page_banner.compact {
    padding-top: 36px;
    padding-bottom: 28px;
}
.page_banner.compact .title { font-size: 22px; }
