@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/*color */
:root {
    --gold-dark: #9D8B3F;
    --gold-medium: #C9A961;
    --gold-light: #E8D4B0;
    --cream: #F9F7F4;
    --charcoal: #2A2A2A;
    --light-gray: #E8E5E0;
}


#chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

#chatbox {
    width: 320px;
    height: 450px;
    border-radius: 12px;
    box-shadow: var(--cream);
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: Arial, sans-serif;
    transform: scale(1);
    opacity: 1;
    transition: all 0.6s ease;
}

#chatbox.hidden {
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    height: 0;
}

#chat-header {
    background: var(--gold-light);
    color: #fff;
    padding: 10px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-header button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

#chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    height: 300px;
}

.bot-message,
.user-message {
    padding: 8px 12px;
    margin: 6px 0;
    max-width: 75%;
    border-radius: 20px;
    display: inline-block;
    animation: fadeIn 0.3s ease;
}

.bot-message {
    background: #eee;
    color: #333;
}

.user-message {
    background: var(--gold-light);
    color: #fff;
    align-self: flex-end;
}

.hidden {
    display: none;
}

#chat-bubble {
    width: fit-content;
    height: 40px;
    background: var(--gold-dark);
    color: #fff;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
    padding: 0 10px;
    position: absolute;
    bottom: 0;
    right: 0;
}

#chat-bubble img {
    width: 30px;
}

#chat-bubble.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

button.option-btn:hover {
    background: #ddd;
}

/* When a bot message is immediately followed by another bot message */
.bot-message+.bot-message {
    border-top-left-radius: 4px;
    /* 2nd bot: top-left corner sharp */
}

/* When a bot message is followed by another bot message (1st bot) */
.bot-message:not(:last-child) {
    border-bottom-left-radius: 16px;
    /* reset bottom-left for all */
}

.bot-message:has(+ .bot-message) {
    border-bottom-left-radius: 4px;
    /* 1st bot: bottom-left corner sharp */
}

/* User message with options */
.user-message.options-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background-color: transparent;
    color: #fff;
    padding: 8px;
    border-radius: 16px;
    margin: 4px 0;
}


.submit-btn {
    color: #9D8B3F;
    background-color: #333;
}

/* Option buttons */
.option-btn {
    background: #eee;
    color: #333;
    padding: 8px 22px;
    border-radius: 20px;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    margin: 4px 4px 0 auto;
    text-align: left;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 
.clex{

  justify-content: center !important;
  align-items: center;

} */

.formBtn {
    background-color: var(--cream);
	color:black!important;
}

/* Normal bot and user messages already styled as before */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.modal .contact-form-box {
    width: 100%;
    box-shadow: none;
}

.modal .modal-header {
    background: var(--charcoal);
}

.section-title {
    position: relative;
    padding-bottom: 10px;
    color: var(--charcoal);
}