/* Floating Button */
.mbi-floating-btn {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #2b6cb0;
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.15);
    z-index: 1;
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mbi-floating-btn:hover {
    background-color: #2c5282;
    padding-left: 20px;
}

/* Popup Overlay */
.mbi-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: mbi-fade-in 0.3s ease;
}

@keyframes mbi-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mbi-popup-container {
    background: #ffffff;
    width: 90%;
    max-width: 550px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    animation: mbi-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.mbi-popup-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

@keyframes mbi-slide-up {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.mbi-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.3s;
}

.mbi-popup-close:hover {
    color: #4a5568;
}

.mbi-popup-content {
    padding: 35px 40px;
}

.mbi-popup-content h2 {
    margin-top: 0;
    color: #1a202c;
    font-size: 22px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

/* Shortcode Container */
.mbi-shortcode-container {
    max-width: 750px;
    margin: 40px auto;
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #edf2f7;
}

.mbi-shortcode-title {
    margin-top: 0;
    color: #1a202c;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

/* Form Styles */
.mbi-inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mbi-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.mbi-col {
    flex: 1 1 calc(50% - 12px);
    min-width: 180px;
}

.mbi-full {
    flex: 1 1 100%;
}

.mbi-inquiry-form label {
    display: block;
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 6px;
    font-weight: 600;
}

.mbi-inquiry-form input[type="text"],
.mbi-inquiry-form input[type="email"],
.mbi-inquiry-form input[type="tel"],
.mbi-inquiry-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background-color: #f8fafc;
    font-size: 15px;
    color: #1a202c;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.mbi-inquiry-form input:focus,
.mbi-inquiry-form textarea:focus {
    outline: none;
    border-color: #3182ce;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.15);
}

.mbi-submit-btn {
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.mbi-submit-btn:hover {
    background: linear-gradient(135deg, #2b6cb0 0%, #2c5282 100%);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
    transform: translateY(-2px);
}
.mbi-shortcode-title{
    margin-top: -20px !important;
    margin-bottom: 29px !important;
    font-size: 24.5px !important;
}
.mbi-submit-btn:active {
    transform: scale(0.98) translateY(0);
}

.mbi-submit-btn:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
}

.mbi-form-response {
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

.mbi-success {
    background-color: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.mbi-error {
    background-color: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}
.mbi-inquiry-form textarea {
    height: 90px;
}

/* Responsive */
@media (max-width: 768px) {
    .mbi-shortcode-container {
        margin: 20px 15px;
        padding: 30px 20px;
    }
    .mbi-col {
        flex: 1 1 100%;
    }
    .mbi-floating-btn {
        padding: 10px;
        font-size: 14px;
    }
}
