.pf-contact {
    display: none;
}

.pf-contact.pf-visible {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

.pf-contact.pf-hidden {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

.pf-contact .pf-form {
    position: fixed;
    width: 345px;
    background: #FFF;
    cursor: auto;
    border-radius: 0.25em;
    padding: 1.4em;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3), 0 5px 15px rgba(0,0,0,0.2);
    pointer-events: auto;
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

.pf-contact .pf-failed-alert {
    position: fixed;
    width: 345px;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.pf-contact.pf-visible .pf-form {
    animation: pf-slide-in-right 0.5s ease-out forwards;
}

.pf-contact.pf-hidden .pf-form {
    animation: pf-slide-out-right 0.5s ease-out forwards;
}

.pf-contact .pf-success {
    position: fixed;
    width: 345px;
    background: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #468847;
    padding: 20px;
    border-radius: 0.25em;
    text-align: center;
    font-size: 16px;
    box-sizing: border-box;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3), 0 5px 15px rgba(0,0,0,0.2);
    pointer-events: auto;
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

.pf-contact.pf-visible .pf-success {
    animation: pf-slide-in-right 0.5s ease-out forwards;
}

.pf-contact.pf-hidden .pf-success {
    animation: pf-slide-out-right 0.5s ease-out forwards;
}

@keyframes pf-slide-in-right {
    0% {
        transform: translateY(-50%) translateX(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
}

@keyframes pf-slide-out-right {
    0% {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) translateX(300px);
        opacity: 0;
    }
}

.pf-contact .pf-popup-button,
.pf-contact .pf-button-text {
    display: none;
}

.pf-contact .pf-close {
    opacity: 1;
    position: absolute;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto;
    padding: 0;
    width: 32px;
    height: 32px;
    top: -15px;
    right: -15px;
    transition: all 0.2s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.pf-contact .pf-close * {
    pointer-events: none;
}

.pf-contact .pf-close:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

.pf-contact .pf-close svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pf-contact .pf-close:hover circle {
    fill: #06a7fb;
}

.pf-contact .pf-success .pf-close circle {
    fill: #468847;
}

.pf-contact .pf-success .pf-close:hover circle {
    fill: #5a9e5a;
}

.pf-contact .pf-header {
    background: #0091dc url(../images/popup_contact_us.png) no-repeat right top;
    padding: 10px 0;
    margin: -20px -20px 20px -20px;
    border-radius: 5px 5px 0 0;
    text-align: center;
}

.pf-contact .pf-header-content {
    color: #fff;
    font-size: 160%;
    font-weight: bold;
}

.no-pointerevents .pf-contact {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: transparent;
}

.no-pointerevents .pf-contact.pf-visible {
    display: block;
}

.no-pointerevents .pf-contact.pf-hidden {
    display: none;
}

.no-pointerevents .pf-contact .pf-form,
.no-pointerevents .pf-contact .pf-success {
    animation: none !important;
    transition: none !important;
    pointer-events: auto;
}

.no-pointerevents .pf-contact.pf-visible .pf-form,
.no-pointerevents .pf-contact.pf-visible .pf-success {
    display: block;
}

.no-pointerevents .pf-contact.pf-hidden .pf-form,
.no-pointerevents .pf-contact.pf-hidden .pf-success {
    display: none;
}