/* Styles for contact-us.html */
.contact-chat-page-container {
    margin-top: 72px; /* Adjust for fixed header */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 72px); /* Full height minus header */
    padding: 40px 20px;
    box-sizing: border-box;
}

.contact-chat-box {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 800px;
    height: calc(100vh - 160px); /* Adjust based on header and padding */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-messages.flex-display {
    display: flex;
}

.message {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 75%;
    word-wrap: break-word;
    line-height: 1.5;
}

.bot-message {
    background-color: #f1f3f5;
    color: #1a202c;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    background-color: #FF007A;
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    background-color: #ffffff;
}

#contact-chat-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

#contact-user-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

#contact-user-input:focus {
    border-color: #FF007A;
}

#contact-user-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

#contact-chat-form button {
    padding: 12px 24px;
    background-color: #FF007A;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
}

#contact-chat-form button:hover:not(:disabled) {
    background-color: #e6006e;
}

#contact-chat-form button:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

.flex-display {
    display: flex;
}

/* ============================================
   RESPONSIVE BREAKPOINTS:
   - Laptop: 1441px and above (MacBook Air 13-inch and larger)
   - Tablet: 441px - 1440px
   - Mobile: 440px and below (Pixel 10 Pro XL and smaller)
   ============================================ */

/* Tablet styles (441px - 1440px) */
@media (max-width: 1440px) and (min-width: 441px) {
    .contact-chat-page-container {
        padding: 35px 20px;
    }

    .contact-chat-box {
        height: calc(100vh - 150px);
    }

    .chat-messages {
        padding: 18px;
    }

    .message {
        max-width: 80%;
    }
}

/* Mobile styles (440px and below (Pixel 10 Pro XL and smaller)) */
@media (max-width: 440px) {
    .contact-chat-page-container {
        margin-top: 60px; /* Adjusted for smaller header on mobile */
        padding: 15px;
    }

    .contact-chat-box {
        height: calc(100vh - 100px);
        border-radius: 8px;
    }

    .chat-messages {
        padding: 15px;
        gap: 12px;
    }

    .message {
        max-width: 85%;
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .chat-input-area {
        padding: 15px;
    }

    #contact-user-input {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    #contact-chat-form button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}
