/*
 Theme Name: GeneratePress Child
 Theme URI: https://generatepress.com
 Description: Child theme for GeneratePress.
 Author: Service Desk Team
 Template: generatepress
 Version: 2.0 (Samsung Blue Rebrand - Final)
*/

/* NOTE: Parent styles are loaded via functions.php. Do NOT add @import here. */

/* =========================================================
   1. GLOBAL & UTILITIES
   ========================================================= */

/* Force light background for all directory-related pages */
body.page-template-page-samsung-city,
body.page-id-17884,
body.page-id-17884 .site,
body.page-id-17884 .site-content,
body.page-id-17884 .site-container {
    background-color: #f4f6fb !important;
}

body.page-id-17884 .site-content {
    padding: 0 !important;
    margin: 0 !important;
}

.samsung-city-page,
.samsung-directory-page {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    padding-top: 10px;
    padding-bottom: 40px;
    box-sizing: border-box;
}

/* ===== CONTAINMENT FIX  ===== */
.samsung-city-page,
.samsung-directory-page,
.samsung-city-page *,
.samsung-directory-page * {
    box-sizing: border-box;
}


.samsung-notice-box {
    background-color: #eff6ff; /* Light Blue */
    border: 1px solid #dbeafe;
    border-left: 4px solid #1428A0; /* Samsung Blue */
    color: #1e3a8a; /* Dark Blue Text */
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 30px;
    font-size: 13px;
    line-height: 1.6;
}

/* =========================================
   STATE PAGE – STATS CARDS (SERVICE CENTERS / CITIES)
   ========================================= */

.samsung-state-stats {
    display: flex;
    gap: 20px;
    margin: 30px 0 40px; /* Aligns with page content */
    flex-wrap: wrap;
    width: 100%;
}

/* Individual Stat Card */
.samsung-state-stats > div {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border-left: 4px solid #1428A0; /* Samsung Blue */
    min-width: 180px;
    font-size: 13px;
    color: #6b7280;
}

/* Big Number */
.samsung-state-stats > div strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 2px;
}

.margin-bottom-10 {
    margin-bottom: 10px;
}

/* =========================================================
   2. BRANDING ELEMENTS & BADGES (FINAL – FIXED)
   ========================================================= */

/* Base badge styling (shared) */
.samsung-badge,
.samsung-badge-authorized,
.samsung-badge-exclusive,
.samsung-badge-independent {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
}

/* Authorized – Royal Blue */
.samsung-badge,
.samsung-badge-authorized {
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

/* Exclusive – Cyan/Sky Blue (Distinct from Authorized) */
.samsung-badge-exclusive {
    background: #e0f2fe; 
    color: #0369a1; 
    border: 1px solid #7dd3fc;
}

/* Independent – Grey */
.samsung-badge-independent {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

/* Recently Updated badge */
.samsung-updated-badge {
    display: inline-block;
    font-size: 13px;
    color: #1e3a8a; /* Dark Blue Text */
    background: #dbeafe; /* Light Blue BG */
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    margin: 8px 0 15px;
}


/* Page Titles (Standard City and Main Hub) */
.samsung-city-page h1,
.page-id-17884 .entry-title {
    background: #ffffff;
    color: #111827;
    padding: 10px 0 14px;  
    margin: 15px 0 10px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border-top: 4px solid #1428A0; /* Samsung Blue */
    line-height: 1.0;
}

/* Direct Hub Title Override */
.page-id-17884 .entry-title {
    background: #1428A0; /* Samsung Blue */
    color: #ffffff;
    border-radius: 0;
    margin-top: 10px;
    box-shadow: none;
    margin-bottom: 0;
}

/* Breadcrumbs */
.samsung-breadcrumbs {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}
.samsung-breadcrumbs a {
    text-decoration: none;
    color: #6b7280;
}
.samsung-breadcrumbs a:hover {
    color: #1428A0; /* Samsung Blue */
}
.samsung-breadcrumbs .current {
    color: #111827;
    font-weight: 600;
}

/* =========================================================
   3. DIRECTORY SEARCH & FILTERS
   ========================================================= */

.samsung-directory-form {
    background: #1428A0; /* Samsung Blue */
    padding: 40px;
    border-radius: 16px;
    /* FIX: Changed Shadow from Orange (255,103,0) to Blue (20,40,160) */
    box-shadow: 0 10px 25px rgba(20, 40, 160, 0.25);
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.samsung-directory-notice {
    background: rgba(0,0,0,0.2);
    color: #ffffff;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.2);
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Container for all inputs defined in functions.php */
.samsung-filter-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.samsung-search-row { 
    margin-bottom: 10px; 
}

/* Grid Layout for Desktop Filter Row */
.samsung-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 110px; /* Fixes button width on desktop */
    gap: 10px;
    width: 100%;
}

/* Universal input height to prevent search button from shifting */
.samsung-directory-form input,
.samsung-directory-form select,
.samsung-pincode-wrap input,
.samsung-search-btn-icon {
    width: 100%;
    height: 52px !important;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.samsung-directory-form input:focus,
.samsung-directory-form select:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.samsung-pincode-wrap { 
    position: relative; 
    width: 100%; 
}

/* Search Button Style */
.samsung-search-btn-icon {
    background: #000000 !important; /* Keep Black for contrast */
    color: #ffffff !important;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.samsung-search-btn-icon:hover {
    background: #333333 !important;
}

/* =========================================================
   4. SERVICE CENTER CARDS & GRID
   ========================================================= */

.samsung-centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.samsung-center-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    border-top: 4px solid #1428A0; /* Samsung Blue */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f3f4f6;
}

.samsung-center-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.samsung-center-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #111827;
    line-height: 1.4;
}

.samsung-center-card p {
    font-size: 15px;
    line-height: 1.7;
    margin: 8px 0;
    color: #4b5563;
}

.samsung-center-card strong {
    color: #111827;
    font-weight: 600;
}

/* Standard link color inside card */
.samsung-center-card a:not(.samsung-action-call):not(.samsung-map-call):not(.samsung-map-btn):not(.samsung-call-btn) {
    color: #0F1F7A; /* Dark Navy Link */
    text-decoration: none;
    font-weight: 600;
}

.samsung-rating-badge {
    display: inline-flex;
    align-items: center;
    background: #fffbeb;
    color: #b45309;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    margin-left: 10px;
    border: 1px solid #fcd34d;
    vertical-align: middle;
    line-height: 1;
}

/* =========================================================
   5. ACTION BUTTONS (CALL vs DIRECTIONS)
   ========================================================= */

.samsung-center-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.samsung-center-actions a {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Green Call Buttons */
.samsung-call-btn, 
.samsung-action-call {
    background: #16a34a; 
    color: #ffffff !important;
}
.samsung-call-btn:hover, 
.samsung-action-call:hover {
    background: #15803d;
}

/* Blue Directions Buttons (Previously Orange) */
.samsung-map-btn, 
.samsung-map-call {
    background: #1428A0; /* Samsung Blue */
    color: #ffffff !important;
}
.samsung-map-btn:hover, 
.samsung-map-call:hover {
    background: #0F1F7A; /* Darker Blue */
}



/* =========================================================
   6. REVIEWS & SUBMISSION FORMS
   ========================================================= */

/* ===== FLEX / GRID OVERFLOW FIX ===== */
.samsung-centers-grid,
.samsung-center-card,
.samsung-card-reviews,
.samsung-review-form {
    min-width: 0;
    max-width: 100%;
}


.samsung-card-reviews {
    margin-top: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
}

.samsung-card-reviews h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
}

.samsung-card-review-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.samsung-review-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: #111827;
    font-weight: 600;
}

/* Star color: Keep Gold (Standard UX). Blue stars look broken. */
.samsung-review-span {
    color: #f59e0b; 
}

.samsung-review-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 700;
    color: #0F1F7A; 
    font-size: 15px;
}

.samsung-review-summary::before {
    content: "✍️";
    font-size: 18px;
    display: inline-block;
}

.samsung-review-section-toggle {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #e5e7eb;
}

.samsung-review-form {
    margin-top: 18px;
    background: #eff6ff; /* Light Blue */
    border: 1px solid #bfdbfe; /* Blue Border */
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.samsung-review-form input,
.samsung-review-form select,
.samsung-review-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #93c5fd; /* Blue Border */
    font-size: 14px;
    box-sizing: border-box;
    background: #ffffff;
}

.samsung-review-form button,
.samsung-submit-review {
    background: #1428A0; /* Samsung Blue */
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    max-width: 800px;
    display: block;
    box-sizing: border-box;
    margin: 10px auto 0;
}


.samsung-review-form-input { 
    display: none !important; 
}

.samsung-review-form button:hover {
    background: #0F1F7A; /* Darker Blue */
}


/* =========================================================
   7. SEO CONTENT & HELPER BLOCKS
   ========================================================= */

.samsung-area-seo-text {
    background: #ffffff;
    border-left: 5px solid #1428A0; /* Samsung Blue */
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    font-size: 15px;
    line-height: 1.7;
}

.samsung-area-seo-text h2 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #1f2937;
}

.samsung-area-seo-text p {
    margin: 0 0 20px;
    line-height: 1.75;
}

.samsung-area-seo-text p:last-child {
    margin-bottom: 0;
}

.samsung-how-to-reach, 
.samsung-faq {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    text-align: left;
}


.samsung-faq-item {
    background: #f9fafb;
    border-left: 4px solid #1428A0; /* Samsung Blue */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.samsung-faq-item h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
}

/* Internal Links – navigation block */
.samsung-internal-links {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    margin: 20px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.samsung-internal-links ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    max-width: 1100px;
}

.samsung-internal-links li {
    margin: 0;
}

.samsung-internal-links li span {
    opacity: 0.7;
    font-size: 13px;
    margin-left: 4px;
}

.samsung-internal-links li a {
    display: block;
    padding: 12px 10px;
    border-radius: 10px;
    background: #eff6ff; /* Light Blue */
    border: 1px solid #bfdbfe; /* Blue Border */
    color: #1e3a8a; /* Dark Blue Text */
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}


.samsung-internal-links li a:hover {
    background: #1428A0; /* Samsung Blue */
    color: #ffffff;
    border-color: #1428A0;
}

.samsung-internal-links h3, 
.samsung-internal-links h2 {
    font-size: 20px !important;
    margin-top: 0;
    margin-bottom: 20px;
    display: block;
}

/* FIX: Text color changed from #EEF2FF (Invisible) to Dark Blue */
.samsung-city-disclaimer, 
.samsung-directory-disclaimer {
    background: #eff6ff;
    border-left: 5px solid #1428A0;
    padding: 20px;
    margin-top: 40px;
    border-radius: 12px;
    font-size: 14px;
    color: #1e40af; /* Dark Blue Text */
    line-height: 1.6;
}


/* === Samsung Hub page introduction and content === */

/* FIX: Text color changed from #EEF2FF (Invisible) to Dark Blue */
.samsung-hub-intro {
    background: #eff6ff;
    padding: 20px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.samsung-hub-intro h2 {
    margin-top: 25px;
    font-size: 22px;
    font-weight: 700;
    color: #1e40af; /* Dark Blue Text */
    margin-bottom: 10px;
}

.samsung-hub-intro h3{
    margin-top: 0;
    margin-bottom: 15px;
    color: #1e40af; /* Dark Blue Text */
    font-size: 20px;
    font-weight: 600;
}  

.samsung-hub-steps,
.samsung-hub-checklist {
    margin-left: 20px;
    margin-left: 18px;
    line-height: 1.7;
    color: #374151; /* Dark Grey Text */
    font-size: 14px;
}

.samsung-hub-steps li,
.samsung-hub-checklist li {
    margin-bottom: 8px;
}


/* =========================================
   STATE PAGE – HUB LINK BLOCK
   ========================================= */

.samsung-state-hub-link {
    background: #ffffff;                /* White background */
    border-radius: 18px;                /* Rounded corners */
    padding: 30px;                      
    margin: 40px auto;                  /* Center alignment spacing */
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); /* Soft shadow effect */
    max-width: 1200px;
    width: 100%;
    text-align: center;
    border: none;                       /* Removes the old thin grey border completely */
    border-left: 5px solid #1428A0;     /* Adds the Site-Matching Blue Accent */
}

/* Improve text spacing to match city block */
.samsung-state-hub-link p {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 15px;
}

/* BUTTON CHANGED TO BLUE */
.samsung-hub-link-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #1428A0;                /* Blue Button */
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.samsung-hub-link-btn:hover {
    background: #0F1F7A;                /* Darker Blue on Hover */
}

.samsung-internal-links .samsung-redundant-city-count {
    display: none;
}


/* =========================================================
   8. UNIFIED MOBILE STYLES (FINAL MASTER LOCKED)
   ========================================================= */

/* --- MAIN MOBILE STYLES (Max Width 768px) --- */
@media (max-width: 768px) {

    /* Page Container */
    .samsung-city-page, 
    .samsung-directory-page {
        width: 100%;
        max-width: 100%;
        padding: 20px 12px 100px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    body.page-id-17884 .entry-content {
        margin-top: 0;
    }

    .samsung-city-page h1 {
        font-size: 22px;
        padding: 15px;
        margin: 20px 0 15px;
        border-radius: 12px;
    }

    /* INTERNAL LINKS - Base Style (2 Columns) */
    .samsung-city-page .samsung-internal-links {
        width: 100%;
        padding: 15px 10px;
        margin: 10px 0;
        box-sizing: border-box;
    }

    .samsung-city-page .samsung-internal-links ul {
        display: grid;
        grid-template-columns: 1fr; /* ONE item per row on mobile */
        gap: 10px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .samsung-city-page .samsung-internal-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
        font-size: 14px;
        line-height: 1.35;
        padding: 10px 6px;
        white-space: normal;
        word-break: break-word;
        hyphens: auto;
        box-sizing: border-box;
    }

    .samsung-city-page .samsung-internal-links h2,
    .samsung-city-page .samsung-internal-links h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    /* Directory Forms */
    .samsung-filter-row { display: block; }

    .samsung-directory-form input,
    .samsung-directory-form select,
    .samsung-search-btn-icon {
        display: block;
        width: 100% !important;
        height: 50px !important;
        margin-bottom: 12px !important;
        box-sizing: border-box;
    }

    .samsung-directory-form {
        padding: 25px 15px;
        margin-bottom: 40px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Cards & Content */
    .samsung-centers-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }
    
    .samsung-center-card {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .samsung-how-to-reach,
    .samsung-faq {
        padding: 20px;
        margin: 30px 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .samsung-state-stats > div {
        flex: 1;
        min-width: 100%;
    }

    .samsung-updated-badge {
    margin: 8px 0 8px;
    }

    .samsung-notice-box {
    margin-bottom: 10px;
    }
}