/* ==========================================================================
   KEYSHU CONTACT PAGE COMPONENT STYLESHEET
   ========================================================================== */

/* Core Theme Variables */
:root {
    --primary-color: #03B0B1; /* Brand Teal */
    --primary-hover: #029495;
    --text-color: #475569;
    --heading-color: #1e293b;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --orange-accent: #f28524;
}

/* ==========================================================================
   TOP SUPPORT BANNER
   ========================================================================== */
.support-banner {
    background: linear-gradient(135deg, #026b6c 0%, #03B0B1 100%);
    padding: 60px 24px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Add a premium radial glow pattern as decorative overlay */
.support-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 80%);
    pointer-events: none;
}

.support-banner-inner {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.support-banner-inner h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 24px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.support-search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 100px;
}

.support-search-bar input {
    width: 100%;
    border: none;
    padding: 16px 64px 16px 28px;
    border-radius: 100px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    color: #334155;
    background: #ffffff;
}

.support-search-bar input::placeholder {
    color: #94a3b8;
}

.support-search-bar button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: var(--primary-color);
    color: #ffffff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}

.support-search-bar button:hover {
    background: var(--primary-hover);
}

.support-search-bar button i {
    font-size: 16px;
}

/* Contacts row below search */
.support-contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    font-size: 16px;
    font-weight: 600;
}

.support-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.support-contact-item i {
    font-size: 18px;
}

.support-contact-item.chat-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 24px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.support-contact-item.chat-btn:hover {
    background: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   BREADCRUMBS & GENERAL CONTAINER
   ========================================================================== */
.contact-container {
    max-width: 1216px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 24px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #94a3b8;
    border-bottom: 1px solid #f1f5f9;
}

.contact-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-breadcrumb a:hover {
    color: var(--primary-color);
}

.contact-breadcrumb i {
    font-size: 9px;
}

.contact-breadcrumb .active-crumb {
    color: #475569;
    font-weight: 700;
}

/* ==========================================================================
   2-COLUMN CONTACT GRID
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 8fr; /* Left sidebar takes exactly 20%, Right main content takes 80% */
    gap: 40px;
    margin-top: 32px;
    margin-bottom: 80px;
    align-items: start;
}

/* ==========================================================================
   LEFT COLUMN: VERTICAL ACCORDION SIDEBAR
   ========================================================================== */
.contact-sidebar {
    background: #ffffff;
}

.sidebar-section {
    margin-bottom: 28px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    font-size: 14px;
    font-weight: 800;
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-section ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-section ul li a i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.sidebar-section ul li a:hover {
    color: var(--primary-color);
}

.sidebar-section ul li a:hover i {
    color: var(--primary-color);
}

.sidebar-section ul li a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.sidebar-section ul li a.active i {
    color: var(--primary-color);
}

/* ==========================================================================
   RIGHT COLUMN: MAIN CONTENT
   ========================================================================== */
.contact-main-content {
    background: #ffffff;
}

/* Feedback Form & Map Split Wrapper */
.form-map-wrap {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: stretch;
}

/* Feedback Request Form Container */
.feedback-form-container {
    background: #ffffff;
}

.feedback-form-container h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--heading-color);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.form-sub-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
    font-weight: 500;
}

.contact-feedback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.form-group label span {
    color: #ef4444;
}

.form-group input,
.form-group textarea {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    color: #334155;
    background: #ffffff;
    transition: all 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(3, 176, 177, 0.1);
}

.form-group textarea {
    height: 110px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feedback-submit-btn {
    align-self: flex-start;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(3, 176, 177, 0.12);
}

.feedback-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(3, 176, 177, 0.2);
}

.feedback-submit-btn:active {
    transform: translateY(0);
}

/* Visual Map Container */
.contact-map-container {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    min-height: 440px;
}

.contact-map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 440px;
    border: none;
}

.map-link-wrap {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.contact-map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.contact-map-container:hover img {
    transform: scale(1.03);
}

.map-overlay-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-overlay-badge i {
    font-size: 14px;
    color: var(--primary-color);
}

/* ==========================================================================
   BRANCHES BLOCK WITH PREMIUM SHOPFRONT CARDS
   ========================================================================== */
.contact-branches-block {
    margin-top: 20px;
    padding-top: 50px;
    border-top: 1px solid #f1f5f9;
}

.branches-section-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--heading-color);
    text-align: center;
    margin: 0 0 40px 0;
    letter-spacing: -0.5px;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.branch-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(3, 176, 177, 0.06);
    border-color: rgba(3, 176, 177, 0.12);
}

.branch-img-wrap {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.branch-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.branch-card:hover .branch-img-wrap img {
    transform: scale(1.05);
}

/* Optional hover mask effect for card 5 as shown in reference */
.branch-map-hover-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.branch-card:hover .branch-map-hover-badge {
    opacity: 1;
}

.branch-map-hover-badge span {
    color: #ffffff;
    background: rgba(3, 176, 177, 0.95);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.branch-card-info {
    padding: 20px;
}

.branch-card-info h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--heading-color);
    margin: 0 0 8px 0;
}

.branch-addr {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 14px 0;
    height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.branch-phone {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.branch-phone i {
    font-size: 12px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet Viewports */
@media (max-width: 1024px) {
    .contact-container {
        padding: 0 24px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-map-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-map-container {
        min-height: 320px;
    }

    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Stacking sidebar beautifully as a secondary collapsible footer nav on mobile */
    .contact-sidebar {
        border: 1px solid #f1f5f9;
        border-radius: 16px;
        padding: 20px;
        background: #f8fafc;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .sidebar-section {
        margin-bottom: 0;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 12px;
    }

    .sidebar-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .sidebar-section h3 {
        font-size: 14px;
        font-weight: 800;
        color: var(--heading-color);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 0;
        padding: 4px 0;
        border-bottom: none;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Dropdown caret icon using FontAwesome solid chevron-down */
    .sidebar-section h3::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 12px;
        color: #94a3b8;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar-section.active h3::after {
        transform: rotate(180deg);
        color: var(--primary-color);
    }

    .sidebar-section ul {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        gap: 10px;
        pointer-events: none;
        padding: 0;
        margin: 0;
    }

    .sidebar-section.active ul {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        padding-top: 14px;
    }
}

/* Mobile Viewports */
@media (max-width: 768px) {
    .contact-container {
        padding: 0 16px;
    }

    .support-banner {
        padding: 40px 16px;
    }

    .support-banner-inner h1 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .support-search-bar input {
        padding: 12px 52px 12px 20px;
        font-size: 13px;
    }

    .support-search-bar button {
        width: 36px;
        height: 36px;
    }

    .support-contacts {
        flex-direction: column;
        gap: 12px;
        font-size: 14px;
    }

    .support-contact-item.chat-btn {
        padding: 6px 20px;
    }

    .contact-breadcrumb {
        padding: 16px 0;
        font-size: 11px;
    }

    .feedback-form-container h2 {
        font-size: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feedback-submit-btn {
        width: 100%;
        text-align: center;
    }

    .branches-section-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .branches-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-sidebar {
        gap: 12px;
    }
}
