/* Contact Page Main */
.contact-main {
    min-height: calc(100vh - 120px);
    padding: 40px 20px;
    background: #f9fafb;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.contact-header h1 {
    font-size: 36px;
    color: #1f2937;
    margin-bottom: 12px;
}

.contact-header p {
    font-size: 18px;
    color: #6b7280;
}

/* Chat ID Banner */
.chat-id-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.chat-id-label {
    font-weight: 600;
    opacity: 0.9;
}

.chat-id-value {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.chat-id-copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.chat-id-copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Chat Page Container */
.chat-page-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Chat Window (embedded in page) */
.chat-page-window {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 600px;
    overflow: hidden;
}

/* Chat Messages */
.chat-page-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #f9fafb;
}

.chat-welcome-message {
    text-align: center;
    color: #6b7280;
    padding: 40px 20px;
    font-size: 16px;
}

/* Message Bubbles */
.chat-page-message {
    margin-bottom: 16px;
    display: flex;
    animation: messageSlideIn 0.3s ease;
}

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

.chat-page-message.user {
    justify-content: flex-end;
}

.chat-page-message.admin {
    justify-content: flex-start;
}

.chat-page-message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    word-wrap: break-word;
}

.chat-page-message.user .chat-page-message-bubble {
    background: white;
    color: #1f2937;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-page-message.admin .chat-page-message-bubble {
    background: white;
    color: #1f2937;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-page-message-text {
    margin: 0 0 6px 0;
    line-height: 1.5;
}

.chat-page-message-time {
    font-size: 11px;
    opacity: 0.7;
}

/* Chat Input Container */
.chat-page-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-page-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    min-height: 50px;
    max-height: 120px;
    transition: border-color 0.2s;
}

.chat-page-input:focus {
    outline: none;
    border-color: #667eea;
}

.chat-page-send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
    white-space: nowrap;
}

.chat-page-send-btn:hover {
    transform: translateY(-2px);
}

.chat-page-send-btn:active {
    transform: translateY(0);
}

/* Contact Info Sidebar */
.contact-info-sidebar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.contact-info-sidebar h3 {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    color: #4b5563;
}

.contact-info-item svg {
    flex-shrink: 0;
    color: #667eea;
}

.contact-info-item strong {
    display: block;
    color: #1f2937;
    margin-bottom: 4px;
}

.contact-info-item p {
    margin: 0;
    font-size: 14px;
}

/* Scrollbar */
.chat-page-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-page-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-page-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-page-container {
        grid-template-columns: 1fr;
    }

    .contact-info-sidebar {
        order: -1;
    }

    .chat-page-window {
        height: 500px;
    }
}

/* Chat ID Modal */
.chat-id-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.chat-id-modal.show {
    display: flex;
}

.chat-id-modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-id-modal-content h2 {
    margin: 0 0 16px 0;
    color: #1f2937;
    font-size: 28px;
}

.chat-id-modal-content > p {
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.6;
}

.chat-id-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-id-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-id-option-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.chat-id-option-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.chat-id-option-btn.secondary {
    background: #f3f4f6;
    color: #1f2937;
    border: 2px solid #d1d5db;
}

.chat-id-option-btn.secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.btn-icon {
    font-size: 20px;
}

.divider {
    text-align: center;
    position: relative;
    margin: 8px 0;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 40px);
    height: 1px;
    background: #d1d5db;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: white;
    padding: 0 12px;
    color: #9ca3af;
    font-size: 14px;
}

.existing-chat-option {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-id-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
}

.chat-id-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-id-info {
    margin-top: 24px;
    padding: 16px;
    background: #fef3c7;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.chat-id-info p {
    margin: 0;
    font-size: 14px;
    color: #92400e;
    line-height: 1.6;
}

.chat-id-info strong {
    color: #78350f;
}

/* WhatsApp Button */
.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

.whatsapp-button svg {
    flex-shrink: 0;
}

.whatsapp-button span {
    white-space: nowrap;
}
