/**
 * Chat Page Styles
 */


.landing {
    font-family: 'Saira', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a2e;
}

/* Landing Section */
.landing {
    text-align: center;
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.landing-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #1a1a2e;
}

.persona-section {
    position: relative;
    margin-bottom: 40px;
}

.persona-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.persona-content {
    position: relative;
    z-index: 1;
    padding: 60px 20px;
}

.persona-tagline {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.persona-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.start-btn {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 64px;
    gap: 8px;
    height: 44px;
    background: linear-gradient(90deg, #FB8744 0%, #FF9378 100%);
    border-radius: 8px;
    color: #fff;
    font-family: 'Saira', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: lowercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* Quick Questions */
.quick-questions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
    padding: 0 20px;
}

.quick-btn {
    box-sizing: border-box;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    gap: 8px;
    height: 42px;
    background: #FFFFFF;
    border: 1px solid #05002A;
    border-radius: 100px;
    font-family: 'Saira', sans-serif;
    font-size: 14px;
    color: #05002A;
    cursor: pointer;
}

.quick-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Chat Section - Hidden initially */
.chat-section {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.chat-section.active {
    display: block;
}

.chat-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.chat-avatar-side {
    flex-shrink: 0;
    width: 280px;
    height: 350px;
}

.chat-avatar-side svg {
    width: 100%;
    height: 100%;
}

.chat-main {
    background: #F6F6F6;
    border-radius: 24px;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
}

.chat-message {
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message-user {
    align-self: flex-end;
}

.chat-message-user .chat-bubble {
    background: linear-gradient(90deg, #4A90D9 0%, #6BA3E0 100%);
    color: #fff;
    padding: 12px 18px;
    border-radius: 18px 18px 4px 18px;
    font-family: 'Saira', sans-serif;
    font-size: 14px;
}

.chat-message-assistant {
    align-self: flex-start;
}

.chat-message-assistant .chat-bubble {
    background: transparent;
    color: #1a1a2e;
    padding: 8px 0;
    font-family: 'Saira', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.chat-input-row {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.chat-input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: none;
    font-family: 'Saira', sans-serif;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.chat-input::placeholder {
    color: #999;
}

.chat-send-btn {
    padding: 10px 24px;
    height: 44px;
    background: linear-gradient(90deg, #FB8744 0%, #FF9378 100%);
    color: #fff;
    font-family: 'Saira', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: lowercase;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.chat-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.chat-quick-questions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.chat-typing {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.chat-typing span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite both;
}

.chat-typing span:nth-child(1) { animation-delay: 0s; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.6; }
    40% { transform: scale(1); opacity: 1; }
}

/* Landing active state hides it */
.landing.hidden {
    display: none;
}

/* Email Step */
.email-step {
    display: none;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.email-step.active {
    display: block;
}

.email-step-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    margin-bottom: 60px;
}

.email-step-avatar {
    flex-shrink: 0;
    width: 300px;
    height: 350px;
}

.email-step-avatar svg {
    width: 100%;
    height: 100%;
}

.email-step-form {
    max-width: 500px;
    text-align: left;
    background: #F6F6F6;
    padding: 15px;
    border-radius: 24px;
}

.email-step-title {
    font-family: 'Saira', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    line-height: 1.3;
    text-align: center;
}

.email-step-subtitle {
    font-family: 'Saira', sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.email-input-row {
    display: flex;
    gap: 0;
}

.email-input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #818181;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-family: 'Saira', sans-serif;
    font-size: 14px;
    outline: none;
}

.email-input:focus {
    border-color: #818181;
}

.email-input::placeholder {
    color: #999;
}

.email-submit-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 24px;
    height: 44px;
    background: linear-gradient(90deg, #FB8744 0%, #FF9378 100%);
    border-radius: 0 8px 8px 0;
    color: #fff;
    font-family: 'Saira', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: lowercase;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.email-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.email-step-questions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-layout {
        flex-direction: column;
        align-items: center;
    }

    .chat-avatar-side {
        width: 180px;
        height: 220px;
    }

    .chat-main {
        max-width: 100%;
    }

    .email-step-content {
        flex-direction: column;
        text-align: center;
    }

    .email-step-avatar {
        width: 200px;
        height: 230px;
    }

    .email-input-row {
        flex-direction: column;
    }

    .email-submit-btn {
        width: 100%;
        border-radius: 8px;
    }

    .email-input {
        border-radius: 8px;
        border-right: 1px solid #818181;
        margin-bottom: 10px;
    }
}
