@font-face {
    font-family: SatoshiRegular;
    src: url(fonts/satoshi/Satoshi-Regular.woff2);
}

@font-face {
    font-family: SatoshiMedium;
    src: url(fonts/satoshi/Satoshi-Medium.woff2);
}

@font-face {
    font-family: SatoshiBlack;
    src: url(fonts/satoshi/Satoshi-Black.woff2);
}

@font-face {
    font-family: SatoshiBold;
    src: url(fonts/satoshi/Satoshi-Bold.woff2);
}

/* Global: Hide popup section by default on mobile (< 640px) */
.mec-popup-section {
    display: none;
}

#mec_form_success {
    display: none;
}

/* Desktop: Only show and apply styles for screens >= 640px */
@media (min-width: 640px) {

    /* Global Styles for the Popup Section */
    .mec-popup-section {
        display: block;
        font-family: 'SatoshiRegular', sans-serif, system-ui;
        box-sizing: border-box;
    }

    .mec-popup-section * {
        box-sizing: inherit;
    }

    /* Overlay */
    .mec-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        padding: 15px;
        backdrop-filter: blur(5px);
    }

    /* Modal Container */
    .mec-modal-content {
        background: #fff;
        border-radius: 20px;
        width: 100%;
        max-width: 850px;
        display: flex;
        overflow: hidden;
        position: relative;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        /* Flex row default for desktop */
        flex-direction: row;
    }

    @keyframes mecFadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mec-close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
        color: #999;
        z-index: 20;
        transition: color 0.2s;
    }

    .mec-close-btn:hover {
        color: #333;
    }

    /* Left Side - Visual */
    .mec-modal-left {
        flex: 1;
        background: #2ecc71;
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        position: relative;
        text-align: center;
        color: #fff;
        overflow: hidden;
    }



    .mec-main-art {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }

    .mec-modal-left h2 {
        font-size: 28px;
        font-family: 'SatoshiBold', sans-serif;
        line-height: 1.2;
        position: relative;
        z-index: 2;
        margin: 0;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    /* Right Side - Form */
    .mec-modal-right {
        flex: 1.1;
        padding: 40px;
        background: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .mec-form-wrapper {
        position: relative;
    }

    #err_message {
        position: absolute;
        bottom: 5px;
        left: 0;
        width: 100%;
        text-align: center;
        font-size: 13px;
        margin: 0;
        font-family: 'SatoshiMedium', sans-serif;
    }

    .mec-logo {
        font-size: 24px;
        font-family: 'SatoshiBold', sans-serif;
        color: #333;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 8px;

    }

    .mec-logo img {
        height: 80px;
        width: 150px;
    }

    .mec-modal-right h3 {
        font-size: 18px;
        color: #555;
        margin-bottom: 25px;
        font-weight: 500;
        line-height: 1.4;
    }

    .mec-modal-right h3 strong {
        color: #000;
        font-family: 'SatoshiBold', sans-serif;
    }

    /* Form */
    .mec-input-group {
        background: #f0f2f5;
        border: 1px solid #e1e4e8;
        border-radius: 12px;
        padding: 5px;
        margin-bottom: 15px;
        align-items: center;
    }

    .mec-input-group:focus-within {
        border-color: #2ecc71;
    }

    .mec-country-code-input {
        width: 60px;
        border: none;
        background: transparent;
        /* Assuming container has background */
        font-family: inherit;
        font-size: 16px;
        font-weight: 600;
        color: #333;
        text-align: center;
        outline: none;
        border-right: 1px solid #e1e4e8;
        /* Separator */
        margin-right: 5px;
        padding-right: 5px;
        border-radius: 0;
    }

    .mec-input-group input {
        border: none;
        background: transparent;
        outline: none;
        flex: 1;
        font-size: 16px;
        padding: 5px;
        color: #333;
    }

    .mec-submit-btn {
        background: #333;
        color: #fff;
        border: none;
        padding: 8px 16px;
        border-radius: 40px;
        font-size: 14px;
        font-family: 'SatoshiBold', sans-serif;
        cursor: pointer;
        margin-bottom: 30px;
    }

    .mec-submit-btn:hover {
        background: #000;
    }

    .mec-submit-btn:active {
        transform: scale(0.98);
    }

    /* QR Section */
    .mec-qr-section {
        display: flex;
        align-items: center;
        gap: 20px;
        border-top: 1px solid #eee;
        padding-top: 20px;
    }

    .mec-qr-block {
        text-align: center;
    }

    .mec-qr-label {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1px;
        margin-bottom: 5px;
        color: #888;
    }

    .mec-qr-code {
        width: 80px;
        height: 80px;
        display: block;
    }

    .mec-contact-text {
        font-size: 14px;
        color: #666;
    }

    .mec-contact-number {
        display: block;
        font-size: 18px;
        color: #000;
        font-weight: 800;
        margin-top: 4px;
    }

    .mec-terms {
        font-size: 11px;
        color: #aaa;
        margin-top: 20px;
        text-align: center;
        line-height: 1.4;
    }

    .mec-terms a {
        color: #888;
        text-decoration: underline;
    }

    /* Dropdown Styles */
    .mec-country-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100px;
        /* Reduced width */
        background: #1a1a1a;
        border-radius: 8px;
        padding: 5px 0;
        z-index: 100;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        margin-top: 5px;
    }

    /* Remove old search style - input is not there anymore */
    .mec-dropdown-search {
        display: none;
    }

    .mec-dropdown-list {
        max-height: 150px;
        overflow-y: auto;
        /* Custom Scrollbar for webkit */
    }

    .mec-dropdown-list::-webkit-scrollbar {
        width: 4px;
    }

    .mec-dropdown-list::-webkit-scrollbar-thumb {
        background: #555;
        border-radius: 2px;
    }

    .mec-dropdown-item {
        padding: 8px 10px;
        color: #fff;
        font-size: 14px;
        font-family: 'SatoshiBold', sans-serif;
        cursor: pointer;
        transition: background 0.2s;
        border-radius: 4px;
    }

    .mec-dropdown-item:hover {
        background: #333;
    }

    .mec-dropdown-no-results {
        color: #888;
        font-size: 12px;
        text-align: center;
        padding: 10px 0;
    }

    .mec-form-success-wrapper {
        text-align: center;
    }

    .mec-popup-success-tick img {
        width: 11%;
        margin-bottom: 13px;
    }
}