body {
    /*margin: 0;*/
    font-family: 'Tajawal', sans-serif;
    /*background: linear-gradient(to bottom right, #dbeafe, #f0f9ff);*/
    /*height: 100vh;*/
    /*overflow: hidden;*/
    /*display: flex;*/
    /*justify-content: center;*/
    /*align-items: center;*/
}

.chat-wrapper {
    position: relative;
    /*background-color: #ffffff;*/
    border-radius: 20px;
    width: 100%;
    /*max-width: 600px;*/
    display: flex;
    flex-direction: column;
    height: 75vh;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* --- Start overlay (pre-chat) --- */
.start-overlay {
    position: absolute;
    inset: 0; /* fill chat-messages only */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.85);
    z-index: 5;
}

.start-chat-button {
    background-color: #f09243; /* match contact-button */
    color: #fff;
    font-size: 1.875rem; /* 1.25rem * 1.5 */
    padding: 24px 42px; /* 16px 28px * 1.5 */
    border: none;
    border-radius: 48px; /* 32px * 1.5 */
    cursor: pointer;
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.18);
    display: inline-flex;
    align-items: center;
    gap: 15px; /* 10px * 1.5 */
}

.start-chat-button:hover {
    filter: brightness(0.95);
}

.chat-header {
    font-size: 1.2rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    z-index: 2;
    background-color: #fff;
}

.hamburger {
    font-size: 1.5rem;
    cursor: pointer;
    /*display: flex;*/
    display: none;
}

.question-panel {
    position: absolute;
    top: 0;
    right: -100%;
    height: 100%;
    width: 75%;
    background-color: #f5f5f5;
    transition: right 0.3s ease-in-out;
    z-index: 30;
    padding: 1rem;
    overflow-y: auto;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
}

.question-panel.active {
    right: 0;
}

.question-block {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 1rem;
    margin-bottom: 1rem;
}

.question-block h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

.question-block p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    position: relative; /* anchor start overlay within chat container */
    /*background: rgba(255, 255, 255, 0.4);*/
    /*backdrop-filter: blur(8px);*/
    /*-webkit-backdrop-filter: blur(8px);*/
}

.message {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    font-size: 15px;
    word-wrap: break-word;
    color: #000;
}

.sender {
    background: #e0e7ff;
    align-self: flex-end;
    margin-left: auto;
    width: fit-content;
}

.receiver {
    background: #fef2dd;
    align-self: flex-start;
    margin-right: auto;
}

.bottom-bar {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #eee;
    background: #e7f7e9;
    padding: 1rem 1rem 0.5rem;
}

.message-input-wrapper {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 50px;
    padding: 5px 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.message-input-wrapper input {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 14px;
    border-radius: 30px;
    outline: none;
}

.message-input-wrapper input.loading {
    /*background: url('https://i.gifer.com/ZZ5H.gif') no-repeat center center;*/
    /*background-size: 20px 20px;*/
    background-color: #f0f0f0;
    color: transparent;
}

.message-input-wrapper button {
    background-color: #e5edf5;
    color: #0073aa;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.bottom-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.remaining-badge, .contact-button {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: bold;
    height: auto;
}

.remaining-badge {
    background-color: #494e48;
    color: white;
    border: none;
    font-size: 60%;
}

.contact-button {
    background-color: #f09243;
    color: white;
    border: none;
    cursor: pointer;
}

.contact-overlay {
    position: absolute;
    top: 60px;
    bottom: 0;
    left: 0;
    right: 0;
    background: #81b0cf;
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s ease-in-out;
    transform: translateY(100%);
    z-index: 20;
    color: white;
}

.contact-overlay.active {
    transform: translateY(0);
}

.contact-overlay .close-btn {
    position: absolute;
    top: 10px;
    left: 12px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

.response-paragraph {
    margin: 0;
    color: #000 !important;
}

blockquote {
    margin: 0 0 1rem 0;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.25);
    border-left: 5px solid #f09243;
    border-radius: 12px;
    font-style: italic;
    color: #416431;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

blockquote:hover {
    background: rgba(255, 255, 255, 0.4);
    border-left-color: #5e6e8f;
}

.wpforms-field-label {
    color: #fff !important;
}

.no-more-questions-wrapper {
    padding: 10px;
    text-align: right;
    direction: rtl;
}

.no-more-questions-wrapper .contact-button {
    float: left;
}

.suggested-question {
    display: inline-block;
    background-color: #C0C0C0; /* silver color */
    color: #333;
    padding: 6px 12px;
    margin: 4px 6px 4px 0;
    border-radius: 999px; /* pill shape */
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggested-question:hover {
    background-color: #A9A9A9; /* slightly darker on hover */
}

strong {
    font-weight: bold;
}

.typing-indicator span {
    display: inline-block;
    animation: blink 1.4s infinite both;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 100% { opacity: 0.2; }
    20%      { opacity: 1;   }
}

.writing-dots {
    font-size: 120%;
}

.fb-messenger-btn {
    background-color: #0084FF;
    color: #fff;
    font-size: 1.1rem;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease-in-out;
    margin-right: .5rem;
}

.fb-messenger-btn:hover {
    background-color: #006dbf;
}

#bottom-action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap:1rem;
}

/* Stronger, specific overrides for the start button size */
.start-overlay .start-chat-button {
    font-size: 1.125rem; /* half of previous */
    padding: 14px 26px; /* half of previous */
    border-radius: 28px; /* half of previous */
    line-height: 1.2;
    min-width: 30%; /* half of previous */
    justify-content: center;
}

.start-overlay .start-chat-button i {
    font-size: 1em;
}
