/* BMB Contact Page Styles */

/* Contact Page Layout */
.bmb-contact {
    padding: 60px 0;
    background-color: #fff;
}

.contact-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.contact-page-wrapper .page-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-page-wrapper .page-title {
    font-family: "Barlow", sans-serif;
    font-size: 48px;
    font-weight: 300;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 0;
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0;
    min-height: 800px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Form Section in Grid */
.contact-form-section.inedit-contact-form-container {
    background: #f8f9fa;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Inedit Contact Form Wrapper - Override plugin styles */
.inedit-contact-form-wrapper {
    margin: 0 !important;
    max-width: 100% !important;
    padding: 20px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Company Info Section - Purple Background */
.contact-info {
    background: #472ca8;
    color: white;
    padding: 40px 30px;
    position: relative;
    overflow: visible;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.company-details {
    position: relative;
    z-index: 2;
}

/* Detail Widgets and Headings */
.detail-widget {
    margin-bottom: 15px;
}

.detail-heading {
    font-family: "Barlow", sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: white;
    margin: 0;
    line-height: 1.3;
    text-transform: none;
}

/* Dividers */
.detail-divider {
    margin: 20px 0;
    display: block;
}

.divider-line {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

/* Contact Items (Phone, Email, Schedule) */
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.contact-text {
    flex: 1;
}

.contact-value {
    font-family: "Barlow", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: white;
    margin: 0;
    text-decoration: none;
    line-height: 1.3;
}

.contact-value:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Images */
.contact-image {
    position: relative;
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.contact-image:hover img {
    transform: scale(1.05);
}

/* Image Placeholders */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.placeholder-content {
    text-align: center;
    color: #6c757d;
    z-index: 1;
    position: relative;
}

.placeholder-content svg {
    margin-bottom: 15px;
    opacity: 0.6;
}

.placeholder-content p {
    font-family: "Barlow", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #6c757d;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contact Form Section */
.contact-form-section {
    background: #f8f9fa;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* BMB Contact Form Styling */
.bmb-contact-form {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bmb-contact-form .form-group {
    margin: 0;
}

.bmb-contact-form input,
.bmb-contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: "Barlow", sans-serif;
    font-size: 16px;
    background: white;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.bmb-contact-form input:focus,
.bmb-contact-form textarea:focus {
    outline: none;
    border-color: #472ca8;
    box-shadow: 0 0 0 2px rgba(71, 44, 168, 0.1);
}

.bmb-contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-submit-btn {
    background: #472ca8;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-family: "Barlow", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    align-self: flex-start;
}

.contact-submit-btn:hover {
    background: #3a2186;
}

/* Responsive Design - ULTRA AGGRESSIVE MOBILE LAYOUT */
@media (max-width: 768px) {
    .bmb-contact .contact-grid,
    .contact-page-wrapper .contact-grid,
    .bmb-contact .contact-page-wrapper .contact-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        height: auto !important;
        gap: 0 !important;
        min-height: auto !important;
    }

    .bmb-contact .contact-info,
    .contact-page-wrapper .contact-info,
    .bmb-contact .contact-page-wrapper .contact-info {
        display: block !important;
        width: 100% !important;
        padding: 40px 20px !important;
        order: 1 !important;
        min-height: auto !important;
        flex: none !important;
    }

    .bmb-contact .contact-image-1,
    .contact-page-wrapper .contact-image-1,
    .bmb-contact .contact-page-wrapper .contact-image-1 {
        display: block !important;
        width: 100% !important;
        order: 2 !important;
        height: 300px !important;
        flex: none !important;
    }

    .bmb-contact .contact-form-section,
    .contact-page-wrapper .contact-form-section,
    .bmb-contact .contact-page-wrapper .contact-form-section {
        display: block !important;
        width: 100% !important;
        order: 3 !important;
        padding: 40px 20px !important;
        flex: none !important;
    }

    .bmb-contact .contact-image-2,
    .contact-page-wrapper .contact-image-2,
    .bmb-contact .contact-page-wrapper .contact-image-2 {
        display: block !important;
        width: 100% !important;
        order: 4 !important;
        height: 300px !important;
        flex: none !important;
    }

    .bmb-contact .contact-form-section.inedit-contact-form-container,
    .contact-page-wrapper .contact-form-section.inedit-contact-form-container,
    .bmb-contact .contact-page-wrapper .contact-form-section.inedit-contact-form-container {
        display: block !important;
        width: 100% !important;
        order: 5 !important;
        padding: 40px 20px !important;
        flex: none !important;
        background: #f8f9fa !important;
    }

    .company-details h2 {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .contact-value a,
    .contact-value span {
        font-size: 18px;
    }

    .contact-page-wrapper .page-title {
        font-size: 36px;
    }

    .contact-form-section h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .bmb-contact {
        padding: 40px 0;
    }

    .contact-page-wrapper {
        padding: 0 15px;
    }

    .contact-page-wrapper .page-header {
        margin-bottom: 40px;
    }

    .contact-page-wrapper .page-title {
        font-size: 28px;
    }

    .contact-info {
        padding: 30px 25px;
    }

    .company-details h2 {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .detail-item strong {
        font-size: 16px;
    }

    .contact-value a,
    .contact-value span {
        font-size: 16px;
    }

    .contact-form-section {
        padding: 30px 25px;
    }

    .contact-form-section h3 {
        font-size: 20px;
    }

    .contact-form-section p {
        font-size: 14px;
    }

    .contact-image-1,
    .contact-image-2 {
        height: 250px !important;
    }
}