/* 2. The Card Container */
.InputPopupContainer {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 40px 30px;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: popUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* Input Popup */
.backgroundInputPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 37, 41, 0.6); /* Dark semi-transparent background */
    backdrop-filter: blur(8px); /* Blurs the content behind the popup */
    display: flex;
    align-items: center; /* Vertical Center */
    justify-content: center; /* Horizontal Center */
    z-index: 1000;
}

/* 2. Add this separate rule for Chrome, Safari and Opera */
textarea::-webkit-scrollbar {
    display: none;
}

textarea {
    width: 100%;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;

    /* Crucial for auto-expand: */
    resize: none !important;      /* Prevent manual resizing */
    min-height: 60px;  /* Initial height */
    max-height: 300px; /* Maximum height before scrolling starts */
    box-sizing: border-box;

    /* Enable vertical scrolling when content hits max-height */
    overflow-y: auto; 

    /* Hide scrollbar for Firefox */
    scrollbar-width: none; 
    
    /* Hide scrollbar for IE and Edge */
    -ms-overflow-style: none;
}

textarea:focus {
    outline: none;
    border-color: #6c5ce7; /* Purple accent */
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.submit-button {
    background-color: #6c5ce7;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 25px;
    width: 100%; /* Make button full width for better UX on mobile */
}

.submit-button:hover {
    background-color: #5a4ad1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.6);
}

.submit-button:active {
    transform: translateY(0);
}

/* Animation for the popup appearing */
@keyframes popUp {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}