.sfc-contact-popup[hidden] {
    display: none !important;
}

.sfc-contact-popup {
    position: fixed;
    inset: 0;
    z-index: 100000;
    pointer-events: none;
}

.sfc-contact-popup.is-open {
    pointer-events: auto;
}

.sfc-contact-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    opacity: 0;
    transition: opacity 240ms ease;
}

.sfc-contact-popup.is-open .sfc-contact-popup__overlay {
    opacity: 1;
}

.sfc-contact-popup__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(430px, 100vw);
    height: 100vh;
    background: #ffffff;
    color: #071f34;
    box-shadow: -18px 0 45px rgba(0, 0, 0, 0.28);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 280ms ease;
    outline: none;
}

.sfc-contact-popup.is-open .sfc-contact-popup__panel {
    transform: translateX(0);
}

.sfc-contact-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #fa3a2d;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(250, 58, 45, 0.28);
}

.sfc-contact-popup__close span {
    display: block;
    line-height: 1;
    transform: translateY(-1px);
}

.sfc-contact-popup__close:hover,
.sfc-contact-popup__close:focus-visible {
    background: #d9261b;
}

.sfc-contact-popup__image {
    width: 100%;
    height: 150px;
    background: #e9eef3;
    overflow: hidden;
}

.sfc-contact-popup__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.sfc-contact-popup__content {
    padding: 24px 28px 32px;
}

.sfc-contact-popup__content h2 {
    margin: 0 0 18px;
    color: #071f34;
    font-size: 24px;
    line-height: 1.12;
    font-weight: 900;
}

.sfc-contact-popup__intro {
    margin: -4px 0 18px;
    color: #22364a;
    font-size: 14px;
    line-height: 1.55;
}

.sfc-contact-popup__intro p {
    margin: 0 0 10px;
}

.sfc-contact-popup__notice {
    padding: 14px;
    border-radius: 8px;
    background: #fff7df;
    color: #3c2c00;
    font-size: 14px;
}

body.sfc-contact-popup-open {
    overflow: hidden;
}

.sfc-contact-popup .nf-form-cont,
.sfc-contact-popup .nf-form-wrap,
.sfc-contact-popup .nf-form-layout,
.sfc-contact-popup form {
    width: 100%;
}

.sfc-contact-popup .nf-before-form-content,
.sfc-contact-popup .nf-form-fields-required,
.sfc-contact-popup .nf-after-field,
.sfc-contact-popup .nf-error-msg,
.sfc-contact-popup .nf-form-errors {
    font-size: 12px;
}

.sfc-contact-popup .nf-field-container {
    margin-bottom: 12px;
}

.sfc-contact-popup .nf-field-label {
    margin-bottom: 5px;
}

.sfc-contact-popup .nf-field-label label {
    color: #071f34;
    font-size: 13px;
    font-weight: 800;
}

.sfc-contact-popup .nf-field-element input[type="text"],
.sfc-contact-popup .nf-field-element input[type="email"],
.sfc-contact-popup .nf-field-element input[type="tel"],
.sfc-contact-popup .nf-field-element input[type="url"],
.sfc-contact-popup .nf-field-element input[type="number"],
.sfc-contact-popup .nf-field-element select,
.sfc-contact-popup .nf-field-element textarea,
.sfc-contact-popup__form input[type="text"],
.sfc-contact-popup__form input[type="email"],
.sfc-contact-popup__form input[type="tel"],
.sfc-contact-popup__form textarea,
.sfc-contact-popup__form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #1c2b3a;
    border-radius: 0;
    background: #ffffff;
    color: #071f34;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.35;
    box-shadow: none;
}

.sfc-contact-popup .nf-field-element textarea,
.sfc-contact-popup__form textarea {
    min-height: 112px;
    resize: vertical;
}

.sfc-contact-popup .nf-field-element input:focus,
.sfc-contact-popup .nf-field-element textarea:focus,
.sfc-contact-popup .nf-field-element select:focus,
.sfc-contact-popup__form input:focus,
.sfc-contact-popup__form textarea:focus,
.sfc-contact-popup__form select:focus {
    border-color: #fa3a2d;
    outline: 2px solid rgba(250, 58, 45, 0.22);
    outline-offset: 0;
}

.sfc-contact-popup .nf-field-element input[type="button"],
.sfc-contact-popup .nf-field-element input[type="submit"],
.sfc-contact-popup__form button,
.sfc-contact-popup__form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border: 0;
    border-radius: 6px;
    background: #fa3a2d;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(250, 58, 45, 0.28);
}

.sfc-contact-popup .nf-field-element input[type="button"]:hover,
.sfc-contact-popup .nf-field-element input[type="submit"]:hover,
.sfc-contact-popup__form button:hover,
.sfc-contact-popup__form input[type="submit"]:hover {
    background: #d9261b;
}

@media (max-width: 600px) {
    .sfc-contact-popup__panel {
        width: 100vw;
    }

    .sfc-contact-popup__content {
        padding: 22px 18px 30px;
    }
}
