/* Base styles for contact popup */
.contact-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.contact-popup {
    background: #5700c9;
    border-radius: 18px;
    width: 340px;
    max-width: 92vw;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    color: #fff;
    direction: rtl;
    font-family: "Tahoma", "Segoe UI", sans-serif;
    position: relative;
}

.contact-popup .close-btn {
    position: absolute;
    right: 12px;
    top: 10px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.9);
    font-size: 20px;
    cursor: pointer;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
}

.contact-person {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    min-height: 48px;
}

.contact-person .name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.contact-person .title {
    color: #EAEAEA;
    font-size: 11px;
    font-weight: 400;
    margin-top: 4px;
}

.contact-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.06);
    background: #fff;
}

.contact-avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-body-text {
    font-size: 14px;
    color: #ffffff;
    text-align: justify;
    margin-bottom: 14px;
    line-height: 1.4;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.contact-form .field {
    width: 80%;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 13px;
    border: 0;
    outline: none;
    box-sizing: border-box;
}

.input-name {
    background: #E8E8E8;
    color: #8E8E8E;
}

.input-mobile {
    background: #DBDBDB;
    color: #8E8E8E;
}

.btn-request {
    width: 80%;
    padding: 9px 12px;
    border-radius: 8px;
    border: none;
    background: #400094;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-request:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-bottom {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}

.icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 6px;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.separator-wrap {
    display: flex;
    align-items: center;
    height: 34px;
    padding: 0 15px;
}

.separator {
    height: 28px;
    width: 3px;
    background: #EFEFEF;
    position: relative;
    border-left: 1px solid rgba(0,0,0,0);
    border-right: 1px solid rgba(0,0,0,0);
    margin-top: -20px;
}

.separator::before,
.separator::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    top: 0;
    height: 100%;
    border-left: 1px solid #EFEFEF;
    border-right: 1px solid #EFEFEF;
    opacity: 1;
}

.btn-direct {
    padding: 6px 6px;
    border-radius: 8px;
    border: 0;
    background: #E40454;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.2;
}

/* Shortcode button styles */
.cep-trigger-button {
    background: #1133FF;
    color: #fff;
    border: 0;
    padding: 12px 14px;
    border-radius: 999px;
    cursor: pointer;
    z-index: 9998;
    font-family: "Tahoma", "Segoe UI", sans-serif;
}

.cep-fixed-bottom-left {
    position: fixed;
    bottom: 24px;
    left: 24px;
}

.cep-fixed-bottom-right {
    position: fixed;
    bottom: 24px;
    right: 24px;
}

.cep-fixed-top-left {
    position: fixed;
    top: 24px;
    left: 24px;
}

.cep-fixed-top-right {
    position: fixed;
    top: 24px;
    right: 24px;
}

.cep-static {
    position: static;
    display: inline-block;
}

@media (max-width:380px) {
    .contact-popup {
        width: 300px;
        padding: 14px;
    }
    
    .contact-avatar {
        width: 48px;
        height: 48px;
    }
    
    .cep-trigger-button {
        padding: 10px 12px;
        font-size: 14px;
    }
}