/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #000;
    background-color: #ffd966;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    min-height: calc(100vh - 70px);
    background-color: #ffd966;
    padding-top: 70px;
}

/* Header - Sticky */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #ffd966;
    color: #000;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 600px) {
    .header {
        left: calc(50% - 300px);
        right: calc(50% - 300px);
    }
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    font-family: "Fraunces", serif;
}

/* Hamburger Button */
.hamburger-btn {
    position: absolute;
    left: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #000;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.hamburger-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 70px;
    left: -250px;
    width: 250px;
    background-color: #fff;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    z-index: 999;
    transition: left 0.3s ease;
    max-width: 600px;
    border-radius: 0 0 12px 0;
}

.nav-menu.open {
    left: 0;
}

.nav-item {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid #000;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #000;
    transition: background-color 0.2s;
}

.nav-item:last-child {
    border-bottom: none;
}

.nav-item:hover {
    background-color: #ffd966;
}

/* Content Area */
.content {
    padding: 24px 20px;
}

/* Screen Management */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Typography */
.intro {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 24px;
    color: #000;
}

.question {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #000;
}

h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #000;
    font-weight: 700;
}

/* Privacy Box */
.privacy-box {
    background-color: #fff;
    border: 2px solid #000;
    padding: 20px;
    margin-bottom: 32px;
    border-radius: 12px;
}

.privacy-box ul {
    list-style: none;
    margin-top: 12px;
}

.privacy-box li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.privacy-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #000;
    font-weight: bold;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 700;
    border: 2px solid #000;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
    min-height: 48px;
    font-family: "Plus Jakarta Sans", sans-serif;
    border-radius: 12px;
}

.btn-primary {
    background-color: #000;
    color: #ffd966;
}

.btn-primary:hover {
    background-color: #333;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
}

.btn-secondary:hover {
    background-color: #f0f0f0;
}

.btn-danger {
    background-color: #fff;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-danger:hover {
    background-color: #fff5f5;
}

.btn-text {
    background-color: transparent;
    color: #000;
    text-decoration: underline;
    border: none;
}

.btn-text:hover {
    opacity: 0.7;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    border: none;
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: #fff;
    border-radius: 12px;
}

input:focus,
textarea:focus {
    outline: none;
    background-color: #fffef0;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Conversation */
#conversationContainer {
    padding: 20px;
    padding-bottom: 150px;
}

.message {
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 16px;
}

.message-bot {
    background-color: #ffe699;
    color: #000;
    max-width: 85%;
}

.message-user {
    background-color: #fff5d9;
    color: #000;
    margin-left: auto;
    max-width: 85%;
}

.message-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.message-text {
    font-size: 18px;
    line-height: 1.5;
    white-space: pre-line;
}

/* Chat Input Area - Sticky at bottom */
.chat-input-area {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffd966;
    padding: 16px 20px;
    border-top: 2px solid #000;
    z-index: 100;
    display: none;
}

@media (min-width: 600px) {
    .chat-input-area {
        left: calc(50% - 300px);
        right: calc(50% - 300px);
    }
}

.chat-input-area.active {
    display: block;
}

.input-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.input-row textarea {
    flex: 1;
    resize: none;
    min-height: auto;
}

.btn-send {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background-color: #000;
    color: #ffd966;
    border: 2px solid #000;
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.btn-send:hover {
    background-color: #333;
}

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

/* Privacy Choice */
.privacy-choice {
    margin-top: 24px;
}

/* Button Group */
.button-group {
    margin-top: 24px;
}

/* Data Preview */
.data-preview {
    background-color: #fff;
    padding: 16px;
    border: 2px solid #000;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 12px;
}

.data-item {
    padding: 12px;
    background-color: #ffd966;
    margin-bottom: 12px;
    border: 1px solid #000;
    border-radius: 8px;
}

.data-label {
    font-weight: 700;
    font-size: 14px;
    color: #000;
    margin-bottom: 4px;
}

.data-value {
    font-size: 16px;
    color: #000;
}

/* Next Steps */
.next-steps {
    margin-top: 32px;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 20px;
    color: #000;
}

/* Landing Page - Conversation Starters */
.landing-hero {
    text-align: center;
    margin-bottom: 40px;
}

.main-question {
    font-size: 32px;
    font-weight: 700;
    margin: 32px 0 24px;
    color: #000;
}

.value-prop {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 40px;
    color: #000;
    font-weight: 600;
}

.starters-section {
    margin-top: 32px;
}

.starters-label {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    color: #000;
}

.conversation-starter {
    width: auto;
    max-width: 85%;
    margin-left: auto;
    margin-right: 0;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 400;
    border: none;
    background-color: #fff5d9;
    cursor: pointer;
    margin-bottom: 12px;
    min-height: 48px;
    font-family: "Plus Jakarta Sans", sans-serif;
    text-align: left;
    transition: all 0.2s;
    color: #000;
    display: block;
    border-radius: 16px;
}

.conversation-starter:hover {
    background-color: #000;
    color: #ffd966;
}

.conversation-starter:active {
    transform: scale(0.98);
}

/* Footer */
.main-footer {
    background-color: #ffd966;
    padding: 24px 20px;
    text-align: center;
    border-top: 2px solid #000;
    display: none;
}

.main-footer.visible {
    display: block;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-text {
    font-size: 14px;
    color: #000;
    margin-bottom: 12px;
}

.footer-links {
    font-size: 14px;
}

.footer-links a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-separator {
    margin: 0 12px;
    color: #000;
}

/* Mobile Optimization */
@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .header h1 {
        font-size: 24px;
    }

    .intro {
        font-size: 18px;
    }

    .btn {
        font-size: 17px;
    }

    .content {
        padding: 20px 16px;
    }

    .main-question {
        font-size: 26px;
    }

    .conversation-starter {
        font-size: 16px;
        padding: 14px 16px;
        max-width: 90%;
    }

    .value-prop {
        font-size: 20px;
    }

    .footer-text {
        font-size: 12px;
    }

    .footer-links {
        font-size: 12px;
    }

    .footer-separator {
        margin: 0 8px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid white;
    }
}
