/**handles:dealer-popup-style**/
@font-face {
    font-family: 'Raleway';
    src: url('/wp-content/themes/hello-elementor/assets/fonts/raleway-regular.woff2') format('woff2'),
         url('/wp-content/themes/hello-elementor/assets/fonts/raleway-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* ========================================
   Dealer Popup Modal Styles
   ======================================== */

/* Overlay */
.dealer-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container */
.dealer-popup-container {
    background: #ffffff;
    border-radius: 8px;
    /*max-width: 860px;*/
    width: calc(100% - 40px);
    max-width: 760px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.dealer-popup-close {
    position: absolute;
    /*top: 8px;
    right: 15px;*/
    top:0;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #0D0D0D;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
    z-index: 10;
}

.dealer-popup-close:hover {
    /*color: #E31E24;*/
    color: #0D0D0D;
    transform: rotate(90deg);
    background: transparent;
}

/* Content */
.dealer-popup-content {
    /*padding: 20px 20px 40px 30px;*/
    padding: 10px 50px 30px 50px;
    border-bottom: 41px solid #3858e9;
    border-radius: 0 0 8px 8px;
}

/* Loading */
.dealer-popup-loading {
    text-align: center;
    padding: 40px 0;
}

.dealer-popup-loading .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #E31E24;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Inner Content */
.dealer-popup-inner {
    text-align: center;
}

/* Title */
.dealer-popup-title {
    font-size: 32px  !important;
    font-weight: 900 !important;
    color: #0D0D0D !important;
    margin: 10px 0 25px 0;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Body - Two Column Layout */
.dealer-popup-body {
    display: flex;
    align-items: flex-start;
    /* justify-content: space-between; */
    gap: 20px;
    margin-bottom: 30px;
    max-width: 70%;
    margin: 8px auto;
}
.dealer-popup-body p, .dealer-popup-title, .dealer-popup-button {
    font-family: 'Raleway' !important;
}

/* Left Side - Contact Info */
.dealer-popup-left {
    flex: 1;
    text-align: left;
}

/* Right Side - Image */
.dealer-popup-right {
    flex-shrink: 0;
}

/* Contact Title (GM:, GSM:) */
.dealer-popup-contact-title {
    font-size: 11px;
    /*font-weight: 600;*/
    color: #0D0D0D;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 5px 0;
}

/* Contact Name */
.dealer-popup-contact-name {
    font-size: 20px;
    font-weight: 700;
    color: #0D0D0D;
    margin: 0 0 14px 0;
    line-height: 1.2;
}

/* Contact Divider */
.dealer-popup-contact-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 15px 0;
}

/* Message */
.dealer-popup-message {
    font-size: 14px;
    color: #555;
    margin: 15px 0 10px 0;
    line-height: 1.5;
    font-style: italic;
}

/* Email & Phone */
.dealer-popup-email,
.dealer-popup-phone {
    font-size: 14px;
    color: #222;
    margin: 5px 0;
    font-weight: 500;
}

.dealer-popup-email a,
.dealer-popup-phone a {
    color: #0D0D0D;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 700;
    font-size: 15px;
}

.dealer-popup-email a:hover,
.dealer-popup-phone a:hover {
    color: #E31E24;
    text-decoration: underline;
}

/* Image */
.dealer-popup-image {
    /*width: 180px;
    height: 180px;*/
    width: 60%;
    height: unset;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dealer-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Image Caption */
.dealer-popup-image-caption {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    text-align: center;
    line-height: 1.3;
}

/* Button */
.dealer-popup-button {
    display: inline-block;
    padding: 14px 40px;
    background: #E31E24;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
}

.dealer-popup-button:hover {
    background: #C01A1F;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(227, 30, 36, 0.4);
    color: #FFF;
}

/* Error */
.dealer-popup-error {
    text-align: center;
    padding: 40px 20px;
}

.dealer-popup-error p {
    font-size: 16px;
    color: #E31E24;
    margin: 0;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
    .dealer-popup-container {
        max-width: 500px;
    }

    .dealer-popup-content {
        padding: 35px 25px 25px;
    }

    .dealer-popup-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .dealer-popup-body {
        gap: 25px;
    }

    .dealer-popup-contact-name {
        font-size: 18px;
    }

    .dealer-popup-image {
        width: 150px;
        height: 150px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .dealer-popup-overlay {
        padding: 15px;
    }

    .dealer-popup-container {
        max-width: 100%;
    }

    .dealer-popup-content {
        padding: 30px 20px 20px;
    }

    .dealer-popup-close {
        top: 4px;
        right: 4px;
        font-size: 28px;
    }

    .dealer-popup-title {
        font-size: 22px !important;
        margin-bottom: 18px;
    }

    .dealer-popup-body {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 0 auto;
        max-width: 100%;
    }

    .dealer-popup-left {
        text-align: center;
    }

    .dealer-popup-contact-title {
        font-size: 10px;
    }

    .dealer-popup-contact-name {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .dealer-popup-message {
        font-size: 13px;
        margin: 12px 0 8px 0;
    }

    .dealer-popup-email,
    .dealer-popup-phone {
        font-size: 13px;
    }

    .dealer-popup-image {
        width: 140px;
        height: 140px;
    }

    .dealer-popup-button {
        padding: 12px 30px;
        font-size: 14px;
        width: 100%;
    }
}