/* View: about-us — Page-specific styles */

/* Reset and base styles */
*, *:before, *:after {
    box-sizing: border-box;
}

html {
    font-family: "Roboto Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    height: 100vh;
}

body {
    color: #33ff33; /* Terminal green */
    margin: 0;
    padding: var(--nav-height, 53px) 20px 20px;
    min-height: 100vh;
    position: relative;
}

/* Main container for proper z-positioning */
#mainDiv {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

/* Form container styling */
.container {
    width: 100%;
    max-width: 600px;
    border: 3px solid #33ff33;
    border-radius: 20px;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    position: relative;
}

/* Logo and header */
.logo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #33ff33;
    font-weight: bold;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #33ff33;
}

.header p {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #33ff33;
}

/* Form elements */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #33ff33;
    border-radius: 30px;
    background-color: rgba(44, 41, 45, 0.7);
    color: white;
    font-size: 1rem;
    text-align: center;
    font-family: inherit;
}

.form-control::placeholder {
    color: rgba(0, 255, 0, 0.7);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Submit button */
.custom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    border: 2px solid #33ff33;
    background-color: rgba(44, 41, 45, 0.9);
    color: #33ff33;
    padding: 15px;
    margin: 5px auto;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    width: 200px;
}

.custom-button:hover {
    background-color: rgba(0, 255, 0, 0.2);
    transform: translate(3px, 3px);
    box-shadow: none;
}

.text-in-button {
    color: #33ff33;
}

/* ReCaptcha positioning */
.recaptcha-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Center the button in the form */
.button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .logo {
        font-size: 2rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
        max-width: 100%;
    }

    .form-control {
        padding: 12px;
    }

    .custom-button {
        width: 80%;
        padding: 10px;
    }
}

/* IMPORTANT */
#email_01 {
    display:none;
}

/* HIDE THE HOME LINK */
#homeLink {
    display: none;
}

/* CHAT BUTTON - Top right corner of container */
.chat-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #e622c5;
    color: white;
    border: 2px solid #e622c5;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 0 10px rgba(230, 34, 197, 0.5);
}

.chat-button:hover {
    background-color: #ff33dd;
    box-shadow: 0 0 20px rgba(230, 34, 197, 0.8);
    transform: scale(1.05);
}

/* CHAT MODAL */
.chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.chat-modal.active {
    display: flex;
}

.chat-modal-content {
    background-color: rgba(0, 0, 0, 0.95);
    border: 3px solid #e622c5;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(230, 34, 197, 0.6);
}

.chat-modal-header {
    padding: 20px;
    border-bottom: 2px solid #e622c5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-modal-header h2 {
    color: #e622c5;
    margin: 0;
    font-size: 1.5rem;
}

.chat-close-btn {
    background: none;
    border: 2px solid #e622c5;
    color: #e622c5;
    font-size: 1.5rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-close-btn:hover {
    background-color: #e622c5;
    color: white;
}

.chat-conversation {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 300px;
    max-height: 400px;
}

.chat-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message.bot {
    background-color: rgba(230, 34, 197, 0.1);
    border-left: 3px solid #e622c5;
    color: #e622c5;
}

.chat-message.user {
    background-color: rgba(51, 255, 51, 0.1);
    border-left: 3px solid #33ff33;
    color: #33ff33;
    margin-left: 40px;
}

.chat-message-header {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.chat-message-content {
    line-height: 1.5;
}

.chat-input-container {
    padding: 20px;
    border-top: 2px solid #e622c5;
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e622c5;
    border-radius: 20px;
    background-color: rgba(44, 41, 45, 0.7);
    color: white;
    font-family: inherit;
    resize: none;
}

.chat-input::placeholder {
    color: rgba(230, 34, 197, 0.5);
}

.chat-send-btn {
    background-color: #e622c5;
    color: white;
    border: 2px solid #e622c5;
    border-radius: 20px;
    padding: 12px 25px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.chat-send-btn:hover {
    background-color: #ff33dd;
    box-shadow: 0 0 15px rgba(230, 34, 197, 0.8);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quick topics */
.chat-topics {
    padding: 0 20px 10px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chat-topic-btn {
    background-color: rgba(230, 34, 197, 0.2);
    border: 1px solid #e622c5;
    color: #e622c5;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-topic-btn:hover {
    background-color: rgba(230, 34, 197, 0.4);
}

/* Loading indicator */
.chat-loading {
    display: none;
    color: #e622c5;
    text-align: center;
    padding: 10px;
    font-style: italic;
}

.chat-loading.active {
    display: block;
}

/* Scrollbar styling for chat */
.chat-conversation::-webkit-scrollbar,
.chat-input::-webkit-scrollbar {
    width: 8px;
}

.chat-conversation::-webkit-scrollbar-track,
.chat-input::-webkit-scrollbar-track {
    background: rgba(230, 34, 197, 0.1);
}

.chat-conversation::-webkit-scrollbar-thumb,
.chat-input::-webkit-scrollbar-thumb {
    background: #e622c5;
    border-radius: 4px;
}

.chat-conversation::-webkit-scrollbar-thumb:hover,
.chat-input::-webkit-scrollbar-thumb:hover {
    background: #ff33dd;
}

/* Firefox scrollbar styling */
.chat-conversation,
.chat-input {
    scrollbar-width: thin;
    scrollbar-color: #e622c5 rgba(230, 34, 197, 0.1);
}

@media (max-width: 768px) {
    .chat-button {
        top: 10px;
        right: 10px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .chat-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .chat-message.user {
        margin-left: 20px;
    }
}
