body { font-family: Tahoma, sans-serif; background: #f4f4f9; margin: 0; padding: 0; color: #333; display: flex; flex-direction: column; min-height: 100vh; }

/* HEADER */
.fixed-header { 
    background: #fff; 
    padding: 15px 30px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    position: sticky; top: 0; z-index: 1000; 
}

.nav { display: flex; justify-content: center; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.nav-btn { text-decoration: none; padding: 8px 15px; border-radius: 20px; font-weight: bold; transition: 0.3s; display: flex; align-items: center; gap: 5px; font-size: 14px; cursor: pointer; }

.btn-home { background-color: #e3f2fd; color: #1565c0; }
.btn-gallery { background-color: #e8f5e9; color: #2e7d32; } 
.btn-ai { background-color: #fce4ec; color: #c2185b; }
.btn-services { background-color: #fff3e0; color: #e65100; }
.btn-contact { background-color: #f3e5f5; color: #7b1fa2; }

/* LETTERS & SEARCH */
.letters-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-bottom: 15px; }
.letter-box { display: block; width: 30px; height: 30px; line-height: 30px; background: #ecf0f1; text-align: center; text-decoration: none; color: #2c3e50; border-radius: 4px; border: 1px solid #bdc3c7; font-size: 14px; }
.search-container { text-align: center; }
input[type=text] { padding: 10px; width: 60%; font-size: 16px; border: 2px solid #ddd; border-radius: 6px; outline: none; transition: 0.3s; }

/* CONTENT AREA */
.content-area { 
    max-width: 800px; 
    margin: 20px auto; 
    padding: 20px; 
    background: white; 
    min-height: 400px; 
    border-radius: 8px; 
    flex: 1; 
    width: 90%; 
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    background: #2c3e50;
    color: #ecf0f1;
    margin-top: auto;
    font-size: 0.9em;
    border-top: 5px solid #2980b9;
}
.footer a { color: #3498db; text-decoration: none; font-weight: bold; }

/* CHAT WIDGET */
.chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 2000; }
.chat-button { width: 60px; height: 60px; background: #2980b9; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.3); cursor: pointer; display: flex; align-items: center; justify-content: center; color: white; font-size: 30px; }
.chat-window { display: none; width: 350px; height: 500px; background: white; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); flex-direction: column; overflow: hidden; position: absolute; bottom: 80px; right: 0; }
.chat-header { background: #2980b9; color: white; padding: 15px; font-weight: bold; display: flex; justify-content: space-between; }
.chat-body { flex: 1; padding: 15px; overflow-y: auto; background: #f9f9f9; display: flex; flex-direction: column; gap: 10px; }
.chat-footer { padding: 10px; border-top: 1px solid #eee; display: flex; }
.chat-footer input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 4px; outline: none; }
.chat-footer button { margin-right: 5px; padding: 10px 15px; background: #27ae60; color: white; border: none; border-radius: 4px; cursor: pointer; }

.msg { padding: 10px; border-radius: 8px; max-width: 85%; font-size: 0.9em; line-height: 1.4; }
.msg-user { background: #dcf8c6; align-self: flex-end; color: #333; }
.msg-bot { background: #e8e8e8; align-self: flex-start; color: #333; }

/* MODALS & OTHERS */
.image-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 3000; justify-content: center; align-items: center; flex-direction: column; }
.image-modal img { max-width: 90%; max-height: 70%; border-radius: 8px; box-shadow: 0 0 25px rgba(255,255,255,0.2); margin-bottom: 15px; border: 3px solid white; }
.close-modal { color: white; font-size: 40px; cursor: pointer; position: absolute; top: 20px; right: 30px; font-weight: bold; }
.modal-text { color: white; font-size: 1.3em; margin-bottom: 20px; text-align: center; max-width: 80%; background: rgba(0,0,0,0.5); padding: 10px; border-radius: 10px; }

.word-card { background: #fff; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 10px; overflow: hidden; }
.word-title { padding: 15px; background: #f8f9fa; font-size: 1.2em; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; }
.word-desc { display: none; padding: 15px; border-top: 1px solid #ddd; }
.form-control { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ddd; }
.btn-submit { background: #2980b9; color: white; padding: 12px; width: 100%; border: none; cursor: pointer; text-decoration: none; text-align: center; display: inline-block; }
.alert { padding: 15px; margin-bottom: 20px; border-radius: 4px; text-align: center; background: #d4edda; }

/* --- CONTACT PAGE STYLES --- */

/* The Blue Send Button */
.btn-submit { 
    background: #2980b9; 
    color: white; 
    padding: 12px; 
    width: 100%; 
    border: none; 
    border-radius: 5px;
    cursor: pointer; 
    text-decoration: none; 
    text-align: center; 
    display: inline-block; 
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}
.btn-submit:hover {
    background: #1c6ea4;
}

/* The Green WhatsApp Button */
.btn-whatsapp-block { 
    display: block; 
    background-color: #25D366; 
    color: white; 
    text-align: center; 
    padding: 15px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 18px; 
    margin-top: 10px; 
    transition: 0.3s; 
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}
.btn-whatsapp-block:hover {
    background-color: #128c7e;
    color: white;
    transform: translateY(-2px);
}

/* Form Inputs */
.form-control { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box; /* Important so padding doesn't break layout */
}
.form-control:focus {
    outline: none;
    border-color: #3498db;
}

/* --- FORCE CHAT ON TOP --- */
#chatWindow {
    z-index: 2147483646 !important; /* Above everything, below widget button */
    isolation: isolate; /* Creates a new stacking context */
}

/* Ensure the input is clickable */
#chatInput {
    pointer-events: auto !important;
    touch-action: manipulation !important;
}