@import url('https://fonts.googleapis.com/css2?family=Autour+One&display=swap');

.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.contact-modal:not(.active) * {
    pointer-events: none !important;
}

.contact-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 16, 26, 0.92);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.contact-modal-card {
    position: relative;
    z-index: 2;
    width: min(92vw, 920px);
    min-height: 540px;
    background-color: transparent;
    background-image: url('../assets/contactusmodal/paper.svg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    padding: 3.5rem 4.5rem;
    box-sizing: border-box;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(100vh);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal.active .contact-modal-card {
    transform: translateY(0);
}

.contact-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    border: 3px solid #333333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    line-height: 1;
    color: #333333;
    cursor: pointer;
    z-index: 1000000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.contact-modal-close:hover {
    transform: scale(1.15) rotate(90deg);
    background-color: #ff4757;
    color: #ffffff;
    border-color: #ff4757;
}

.modal-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

.modal-paperclip,
.modal-pencil {
    position: absolute;
    object-fit: contain;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-paperclip.clip-top {
    width: 55px;
    top: -30px;
    left: 58%;
    transform: rotate(15deg);
}

.modal-paperclip.clip-top:hover {
    transform: rotate(23deg) scale(1.18);
}

.modal-paperclip.clip-bottom-left {
    width: 120px;
    bottom: -40px;
    left: -50px;
    transform: rotate(-35deg);
}

.modal-paperclip.clip-bottom-left:hover {
    transform: rotate(-27deg) scale(1.05);
}

.modal-paperclip.clip-right {
    width: 70px;
    top: 45%;
    right: -38px;
    transform: rotate(40deg);
}

.modal-paperclip.clip-right:hover {
    transform: rotate(48deg) scale(1.10);
}

.modal-pencil {
    width: 250px;
    top: -60px;
    right: -50px;
    transform: rotate(0deg);
}

.modal-pencil:hover {
    transform: rotate(0deg) scale(1.08) translateY(-3px);
}

.google-forms-link-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-decoration: none;
    width: 100%;
    max-width: 520px;
    padding: 1rem;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    margin: auto;
}

.google-forms-link-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.google-forms-link-card:active {
    transform: translateY(-1px) scale(1);
}

.forms-logo-img {
    width: 100%;
    max-width: 340px;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.google-forms-link-card:hover .forms-logo-img {
    transform: scale(1.04);
    filter: drop-shadow(0 8px 15px rgba(103, 58, 183, 0.2));
}

.forms-btn-banner {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(135deg, #7e57c2 0%, #5e35b1 100%);
    color: #ffffff;
    padding: 1rem 1.8rem;
    border-radius: 50px;
    font-family: 'Autour One', cursive, sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 6px 18px rgba(94, 53, 177, 0.35);
    border: 3px solid #ffffff;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.google-forms-link-card:hover .forms-btn-banner {
    background: linear-gradient(135deg, #8e24aa 0%, #6a1b9a 100%);
    box-shadow: 0 10px 25px rgba(106, 27, 154, 0.45);
}

.forms-btn-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.google-forms-link-card:hover .forms-btn-icon {
    transform: translateX(6px);
}

@media (max-width: 768px) {
    .contact-modal-card {
        width: 92vw;
        min-height: 480px;
        padding: 2.8rem 2rem;
    }

    .contact-modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .modal-pencil {
        width: 160px;
        top: -40px;
        right: -25px;
    }

    .modal-paperclip.clip-top {
        width: 42px;
        top: -22px;
    }

    .modal-paperclip.clip-bottom-left {
        width: 85px;
        bottom: -30px;
        left: -30px;
    }

    .modal-paperclip.clip-right {
        width: 50px;
        right: -22px;
    }

    .google-forms-link-card {
        max-width: 420px;
        padding: 0.8rem;
        gap: 1.2rem;
    }

    .forms-logo-img {
        max-width: 260px;
    }

    .forms-btn-banner {
        padding: 0.85rem 1.4rem;
    }

    .forms-btn-icon {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .contact-modal-card {
        width: 94vw;
        min-height: 420px;
        padding: 2.2rem 1.2rem;
    }

    .modal-pencil {
        width: 120px;
        top: -30px;
        right: -15px;
    }

    .modal-paperclip.clip-top {
        display: none;
    }

    .modal-paperclip.clip-bottom-left {
        width: 70px;
        bottom: -22px;
        left: -20px;
    }

    .modal-paperclip.clip-right {
        width: 40px;
        right: -15px;
    }

    .google-forms-link-card {
        max-width: 100%;
        padding: 0.5rem;
        gap: 1rem;
    }

    .forms-logo-img {
        max-width: 210px;
    }

    .forms-btn-banner {
        padding: 0.75rem 1rem;
    }
}