/* Prevent page shift when modal opens */
html {
    scrollbar-gutter: stable;
}

/* Modal Styles */
.typing_contact_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.typing_contact_modal.show {
    display: flex;
    opacity: 1;
}

.typing_contact_modal_content {
    background-color: #1a1a1a;
    margin: 1% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.typing_contact_modal.show .typing_contact_modal_content {
    transform: translateY(0);
}

.typing_contact_close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
    transition: color 0.2s;
}

.typing_contact_close:hover {
    color: #333;
}

.typing_contact_modal h2 {
    color: #ebebeb;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .typing_contact_modal_content {
        width: 95%;
        padding: 1.5rem;
        margin: 3% auto;
    }
}

.typing_contact_honeypot {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

.typing_contact_send_msg {
    margin: 1rem;
    padding: 40px;
    background: rgba(0, 0, 0, 0.425);
    box-sizing: border-box;
    box-shadow:inset 0 15px 25px rgba(0, 0, 0, .6);
    border-radius: 10px;
}
.typing_contact_send_msg h2 {
    margin: 0 0 30px;
    padding: 0;
    color: #fff;
    text-align: center;
}
.typing_contact_form textarea {
    resize: vertical;
}
.typing_contact_form {
    position: relative;
}
.typing_contact_form .typing_contact_send_btn {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: #03e9f4;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    transition: .5s;
    letter-spacing: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 100%;
}

.typing_contact_send_btn:hover {
    background: #03e9f4;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px #03e9f4,
                0 0 25px #03e9f4,
                0 0 50px #03e9f4,
                0 0 100px #03e9f4;
}

.typing_contact_send_btn span {
    position: absolute;
    display: block;
}
.typing_contact_send_btn span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #03e9f4);
    animation: btn-anim1 1s linear infinite;
}
@keyframes btn-anim1 {
    0% {
        left: -100%;
    }
    50%,
    100% {
        left: 100%;
    }
}
.typing_contact_send_btn span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #03e9f4);
    animation: btn-anim2 1s linear infinite;
    animation-delay: .25s
}
@keyframes btn-anim2 {
    0% {
        top: -100%;
    }
    50%,
    100% {
        top: 100%;
    }
}
.typing_contact_send_btn span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #03e9f4);
    animation: btn-anim3 1s linear infinite;
    animation-delay: .5s
}
@keyframes btn-anim3 {
    0% {
        right: -100%;
    }
    50%,
    100% {
        right: 100%;
    }
}
form .typing_contact_send_btn span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #03e9f4);
    animation: btn-anim4 1s linear infinite;
    animation-delay: .75s
}
@keyframes btn-anim4 {
    0% {
        bottom: -100%;
    }
    50%,
    100% {
        bottom: 100%;
    }
}

.typing_contact_form input[type=text],
.typing_contact_form input[type=tel],
.typing_contact_form input[type=url],
.typing_contact_form input[type=number],
.typing_contact_form input[type=email],
.typing_contact_form textarea {
    width: 100%;
    padding: .5rem;
    margin: .5rem 0 .8rem 0;
    display: block;
    border: none;
    border-left: 3px solid #03e9f4;
    background: #666666;
    color: #03e9f4;
}

.typing_contact_form input[type=text]:focus,
.typing_contact_form input[type=tel]:focus,
.typing_contact_form input[type=url]:focus,
.typing_contact_form input[type=number]:focus,
.typing_contact_form input[type=email]:focus,
.typing_contact_form textarea:focus {
    background-color: rgb(51, 51, 51);
    outline: none;
}

.typing_contact_form .typing_contact_mandatory {
    color: #03e9f4;
}

.typing_contact_form .typing_contact_success {
    display: none;
    color: #03e9f4;
    text-align: center;
    margin: 10px 0;
}

.typing_contact_form .typing_contact_spl_msg {
    color: #03e9f4;
    font-style: italic;
    margin-top: 10px;
}