:root {
    --ivory: #F9F7F2;
    --antique-rose: #C8A39E;
    --deep-emerald: #1E4938;
    --aged-gold: #B69E71;
    --charcoal: #333333;
    --light-gold: #D9C9A3;
    --bg-texture: #F5F3EE;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    background: linear-gradient(135deg, var(--bg-texture) 0%, #F0EDE6 100%);
    font-family: 'Inter', sans-serif;
    color: var(--charcoal);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before, body::after {
    content: "";
    position: fixed;
    width: 200px;
    height: 200px;
    background: url('../assets/images/conner.png') no-repeat center/contain;
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
}

body::before { 
    top: 20px; 
    left: 20px; 
}

body::after { 
    top: 20px; 
    right: 20px; 
    transform: rotate(90deg); 
}

.page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 15px;
}

.container {
    position: relative;
    z-index: 10;
    max-width: 550px;
    width: 100%;
    padding: 40px 30px;
    background: white;
    border: 1px solid var(--aged-gold);
    border-radius: 24px;
    min-height: 950px;
    margin: 40px auto;
}

.container::before, .container::after {
    content: "";
    position: fixed;
    width: 200px;
    height: 200px;
    background: url('../assets/images/conner.png') no-repeat center/contain;
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
}

.container::before { 
    bottom: 20px; 
    left: 20px; 
    transform: rotate(-90deg); 
}

.container::after { 
    bottom: 20px; 
    right: 20px; 
    transform: rotate(180deg); 
}

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

.header h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--deep-emerald);
    margin-bottom: 5px;
    letter-spacing: 5px;
    transform: scaleY(1.1);
}

.header p {
    font-size: 13px;
    color: var(--antique-rose);
    margin: 1px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header .location {
    font-size: 12px;
    color: #6c6c6c;
    margin-top: 2px;
    letter-spacing: 0.6px;
}

.center-decoration {
    width: 200px;
    height: 60px;
    background: url('../assets/images/center.png') no-repeat center/contain;
    margin: 2px auto;
    opacity: 0.8;
}

.language-toggle {
    display: block;
    width: 220px;
    padding: 14px 0;
    background-color: var(--deep-emerald);
    color: var(--ivory);
    border: none;
    border-radius: 30px;
    font-size: 16px;
    text-align: center;
    margin: 12px auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
    cursor: pointer;
    font-weight: 500;
}

.language-toggle:hover { 
    background-color: #1a4232; 
}

.language-toggle:active { 
    transform: scale(0.98); 
}

.language-toggle span {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.language-toggle span.active {
    opacity: 1;
    font-weight: 600;
}

.main-content {
    background-color: white;
    border: 1px solid var(--aged-gold);
    border-radius: 15px;
    padding: 25px;
    margin: 35px 0;
}

.message-box {
    border-radius: 15px;
    padding: 16px;
    margin-bottom: 45px;
    min-height: 300px;
    max-height: 300px;
    overflow-y: auto;
}

.chat-message {
    margin: 12px 0;
    display: flex;
    align-items: flex-start;
    animation: messageSlide 0.5s ease-out;
}

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

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

.message-content {
    max-width: 90%;
    padding: 18px 22px;
    border-radius: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    line-height: 1.4;
}

.message-content.ai {
    background: #F5F1F2;
    color: var(--charcoal);
    border: 1px solid #ebe7e8;
    border-radius: 12px 12px 12px 3px;
}

.message-content.user {
    background: var(--deep-emerald);
    color: white;
    border-radius: 12px 12px 3px 12px;
}

.message-content.success {
    background: linear-gradient(135deg, var(--aged-gold), var(--light-gold));
    color: var(--charcoal);
    border: 1px solid var(--aged-gold);
    text-align: center;
    font-weight: 500;
}

.message-content.thinking {
    background: #f5e6e8;
    border: 1px dashed #e8d5d7;
    opacity: 0.8;
    font-style: italic;
}

.message-image {
    margin-top: 10px;
    text-align: center;
}

.message-image img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: contain;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 15px;
}

.service-card {
    background-color: white;
    border: 1px solid var(--aged-gold);
    border-radius: 12px;
    padding: 16px 14px;
    text-align: center;
    transition: transform 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55px;
    position: relative;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0.5px;
    border: 0.5px solid rgba(184, 158, 113, 0.25);
    border-radius: 5px;
    pointer-events: none;
}

.service-card:hover { 
    transform: translateY(-1px); 
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.3;
}

.input-area {
    display: flex;
    margin-top: 79px;
    align-items: center;
    background: white;
    border: 1px solid var(--aged-gold);
    border-radius: 25px;
    padding: 6px 6px 6px 22px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.input-area:focus-within {
    border-color: var(--deep-emerald);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 2px rgba(30, 73, 56, 0.1);
}

.text-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 12px;
    font-size: 16px;
    color: var(--charcoal);
}

.text-input::placeholder {
    color: #999;
    opacity: 0.7;
    font-style: italic;
}

.send-button {
    background-color: var(--deep-emerald);
    color: white;
    border: none;
    border-radius: 20px;
    width: 65px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.send-button:hover { 
    background-color: #1a4232; 
}

.send-button:active { 
    transform: scale(0.95); 
}

.loader {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 2px solid var(--aged-gold);
    border-radius: 50%;
    border-top-color: var(--deep-emerald);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin { 
    to { 
        transform: rotate(360deg); 
    } 
}

.message-box::-webkit-scrollbar { 
    width: 4px; 
}

.message-box::-webkit-scrollbar-track { 
    background: transparent; 
}

.message-box::-webkit-scrollbar-thumb { 
    background: var(--aged-gold); 
    border-radius: 2px; 
    opacity: 0.7; 
}

.message-box::-webkit-scrollbar-thumb:hover { 
    background: var(--deep-emerald); 
}

@media (max-width: 360px) {
    .container { 
        max-width: 320px; 
        padding: 20px 15px; 
        margin: 15px auto; 
    }
    
    .header h1 { 
        font-size: 20px; 
    }
    
    body::before, body::after, .container::before, .container::after { 
        width: 150px; 
        height: 150px; 
    }
}