/* Contact Modal Styles */

.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 998;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.contact-modal-overlay.active {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s 0s, opacity 0.3s ease;
}

.contact-wrapper{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 400px;
    max-width: 90%;
    background: transparent;
    border: 4px solid rgb(55, 93, 88);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, visibility 0s 0.3s;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    backdrop-filter: blur(20px);
}

.contact-wrapper.active-popup {
    transform: translate(-50%, -50%) scale(1);
    visibility: visible;
    opacity: 1;
    transition: transform 0.3s ease, visibility 0s 0s, opacity 0.3s ease;
}

.contact-form-box {
    padding: 40px;
    position: relative;
    background: transparent;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.contact-wrapper .icon-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    font-size: 2em;
    color: rgb(55, 93, 88);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 5px;
    cursor: pointer;
    z-index: 1;
}

.contact-form-box h2 {
    font-size: 2em;
    color: rgb(55, 93, 88);
    text-align: center;
    margin-bottom: 30px;
}

.contact-form-box h3 {
    font-size: 1.2em;
    color: rgb(55, 93, 88);
    margin: 20px 0 10px 0;
}

.contact-form-box p {
    color: #e8edf2;
    margin: 10px 0;
}

.ways-to-contact {
    text-align: center;
}

.ways-to-contact a {
    color: #e8edf2;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.ways-to-contact a:hover {
    text-decoration: underline;
}