* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #4a4a4a transparent; /* Thumb color, Track color */
}

/* This defines the width of the scrollbar */
::-webkit-scrollbar {
    width: 6px;  /* Vertical scrollbar width */
    height: 6px; /* Horizontal scrollbar height */
}

/* This is the draggable part (The Thumb) */
::-webkit-scrollbar-thumb {
    background: #4a4a4a; /* Dark gray */
    border-radius: 10px;  /* Makes it look pill-shaped and modern */
}

/* This is the background of the scrollbar (The Track) */
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1); /* Subtle dark transparent track */
}

/* Hover effect for a touch of interactivity */
::-webkit-scrollbar-thumb:hover {
    background: #666666; /* Lightens slightly when touched */
}

:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: rgba(45, 45, 45, 0.4);
    --bg-tertiary: #3a3a3a;
    --text-primary: #ececec;
    --text-secondary: #a0a0a0;
    --accent: #7BA7CC;
    --accent-dim: #5A7F9A;
    --accent-gold: #C5A56F;
    --border: #404040;
    --warning: #fbbf24;
    --error: #ef4444;
    --input-height: 72px;
    
    --red-button: rgba(128, 0, 0, 0.5);
    --green-button: rgba(0, 128, 0, 0.5);
    --red-button-hover: rgba(200, 0, 0, 0.5);
    --green-button-hover: rgba(0, 200, 0, 0.5);

    --header-footer: rgba(102, 43, 0, 0.08);
    --bg-image-cover: rgba(18, 14, 10, 0.98);
    --bg-button: rgba(35, 30, 25, .8);

    --quiz-purple-transparent: rgba(180, 90, 60, 0.3);
    --quiz-purple: rgb(180, 90, 60);
    --feature-cyan-transparent: rgba(80, 180, 170, 0.3);
    --feature-cyan: rgb(80, 180, 170);

    --emergency-red-button-transparent: rgba(255, 0, 0, 0.3);
    --emergency-red-button: rgb(128, 0, 0);
    --emergency-yellow-button-transparent: rgba(255, 255, 0, 0.3);
    --emergency-yellow-button: rgb(255, 255, 0);
    --emergency-green-button-transparent: rgba(0, 255, 0, 0.3);
    --emergency-green-button: rgb(0, 255, 0);

    --orange-button-transparent: rgba(204, 85, 0, 0.3);
    --orange-button: rgb(204, 85, 0);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /*background: var(--bg-primary);*/
    color: var(--text-primary);

    /*min-height: 100dvh;*/
    height: 100vh;
    display: flex;
    flex-direction: column;

    /* Background Image */
    background-image: radial-gradient(circle at top left,
        rgba(26, 12, 0, 0.98), rgba(26, 12, 0, 0.98)),
        url('/images/bg108.webp');
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    /* This is the magic property that keeps it static */
    background-attachment: fixed;
}

.app {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.full-header {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    background: var(--header-footer);
    border-bottom: 1px solid var(--border);
}

.header {
    padding: 0.5rem 2rem;
    border-bottom: 1px solid black;
    /*background: var(--header-footer);*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.business-info h1 {
    padding-top: 3px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 0.9;
    margin-bottom: 0rem;
}

.business-info p {
    font-size: 1.0rem;
    color: var(--text-secondary);
}

.menu-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-right: 0.0rem;
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.welcome {
    max-width: 900px;
    margin: 0.1rem auto;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.2s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

to {
        opacity: 1;
    }

}

.welcome h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: #fbf6f0;
}

.welcome p {
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 1.25rem;
}


/* Session Management Buttons */
.session-button {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.resume-button {
    background: var(--green-button);
    border: 1px solid var(--border);
    color: white;
}

.resume-button:hover {
    background: var(--green-button-hover);
    transform: translateY(-2px);
}

.delete-button {
    background: var(--red-button);
    border: 1px solid var(--border);
    color: white;
}

.delete-button:hover {
    background: var(--red-button-hover);
    opacity: 0.9;
    transform: translateY(-2px);
}

.message {
    display: flex;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 0.875rem;
}

.message.user .message-avatar {
    background: linear-gradient(135deg, #9B6BB0, #7E6BA0);
}

.message.assistant .message-avatar {
    background: linear-gradient(135deg, var(--accent-gold), #444);
}

.message-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.message-bubble {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.message.user .message-bubble {
    background: rgba(70, 60, 50, 0.4);
    border-right: 3px solid var(--text-secondary);
}

.message.assistant .message-bubble {
    margin-top: 0px;
    padding: 15px 18px;
    background: rgba(123, 167, 204, 0.1);
    border-left: 3px solid var(--accent);
    border-radius: 16px;
    animation: slideDown 0.3s ease;
}

.thinking {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    /*background: rgba(74, 158, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 16px;*/
    margin-right: 3rem;
}

.thinking-dots {
    display: flex;
    gap: 0.5rem;
}

.thinking-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: thinking 1.4s ease-in-out infinite;
}

.thinking-dot:nth-child(1) { animation-delay: 0s; }

.thinking-dot:nth-child(2) { animation-delay: 0.2s; }

.thinking-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinking {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }

30% { transform: translateY(-10px); opacity: 1; }

}

.input-container {
    padding: 0.75rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--header-footer);
}

.input-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.input-field {
    flex: 1;
    padding: 0.0rem 1.0rem;
    background: var(--header-footer);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
}

.send-button, .small-delete-button {
    padding: 1rem;
    background: var(--green-button);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.small-delete-button {
    background: var(--red-button);
}

.send-button:hover:not(:disabled),
.small-delete-button:hover:not(:disabled) {
    background: var(--accent-dim);
    transform: translateY(-1px);
}

.send-button:disabled,
.small-delete-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.suggested-questions {
    margin-top: 0rem;
    padding-top: 0rem;
    transition: all 0.9s ease;
}

.suggested-questions-title {
    font-size: 1.0rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.suggested-question {
    padding: 0.75rem 1rem;
    background: linear-gradient(to right, var(--bg-button), transparent);
    border-left: 4px solid var(--accent-dim);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.9s ease;
    font-size: 1.1rem;
    width: unset !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggested-question:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    transform: translateX(4px);
}

.cdm-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
    gap: 1rem;
    max-width: 900px;
    margin: 2rem auto 0;
}

.concern-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 3fr));
    gap: 1rem;
    max-width: 900px;
    margin: 2rem auto 0;
}

.cdm-button {
    padding: 0.75rem 1rem;
    background: linear-gradient(to right, rgba(64, 55, 45, 0.8), transparent);
    border: 1px solid rgba(100, 100, 100, 0.3);
    border-left: 4px solid var(--accent-dim);
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.9s ease;
    font-size: 1.1rem;
    font-weight: 600;
    width: unset !important;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.cdm-button:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    transform: translateX(4px);
}

.cdm-feature-button {
    padding: 0.75rem 1rem;
    background: linear-gradient(to right, rgba(204, 85, 0, 0.8), transparent);
    border: 1px solid rgba(100, 100, 100, 0.8);
    border-left: 4px solid var(--text-secondary);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.9s ease;
    font-size: 1.1rem;
    font-weight: 600;
    width: unset !important;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cdm-feature-button:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    transform: translateX(4px);
}

.main-menu-image,
.link-symbol,
.feature-image,
.small-menu-image {
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.9;
}

.link-symbol {
    align-items: right;
}

.feature-image {
    opacity: 0.8;
}

.main-menu-image img {
    height: 50px;
}

.feature-image img {
    height: 35px;
}

.small-menu-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 8%;
    opacity: 0.8;
    text-align: center;
}
.small-menu-image img {
    height: 30px;
}

.suggested-question-text {
    max-width: 90%;
    min-width: 90%;
    width: 90%;
    padding-right:7px;
    line-height: 1.4;
}

/* Tell Me More Styles */
.tell-me-more-link {
    display: inline-block;
    margin-top: 0.25rem;
    color: var(--accent);
    font-size: 1.1em;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tell-me-more-link:hover {
    text-decoration: underline;
    color: #9CC0DD;
}

.tell-me-more-link:active {
    color: var(--accent-dim);
}

.tell-me-more-content {
    margin-top: 0px;
    padding: 15px 18px;
    background: rgba(123, 167, 204, 0.1);
    border-left: 3px solid var(--accent);
    border-radius: 16px;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

}

.tell-me-more-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-primary);
}

.tell-me-more-error {
    color: var(--error);
}

.scroll-arrow {
    position: absolute;
    bottom: 85px;       /* Place it just above your input-container */
    left: 3.6rem;
    transform: translateX(-50%);
    color: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    font-size: 2rem;
    z-index: 10;        /* Keep it on top of the messages */
    text-shadow: 0 0 10px rgba(0,0,0,0.8); /* Make it pop against background */
    opacity: 0.5;
    cursor: pointer;       /* Shows the hand/link pointer */
    pointer-events: auto;  /* Ensures the mouse actually "sees" the element */
}

.hidden {
    opacity: 0;
}

.sentinel {
    height: 2px;
    width: 100%;
    margin-top: -2px; /* Pulls it up slightly so it triggers exactly at the edge */
    background: transparent;
    pointer-events: none;
}

#sessionButtons {
    display: none;
    margin: 3.5rem auto;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
}

/* Quiz Styling */
.quiz-active {
    padding: 0rem 2rem 2rem 2rem;
    max-width: 700px;
    min-width: 70%;
    margin: 0 auto;
}

.quiz-question {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-primary);
    padding: 1.5rem;
    background: rgba(45, 45, 45, 0.4);
    border-radius: 8px;
    border-left: 4px solid var(--text-secondary);

    min-height: calc(4.48rem + 3rem);
}

.quiz-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.quiz-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.quiz-btn-true {
    background: var(--green-button);
    border: 1px solid var(--border);
    color: white;
}

.quiz-btn-true:hover {
    background: var(--green-button-hover);
    transform: translateY(-2px);
}

.quiz-btn-false {
    background: var(--red-button);
    border: 1px solid var(--border);
    color: white;
}

.quiz-btn-false:hover {
    background: var(--red-button-hover);
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Modern browsers */
input::placeholder {
    color: var(--accent-gold); /* Warm gold */
    font-weight: 600;
    opacity: 1;    /* Firefox requires this to show the full color */
}

/* Individual browser support (if needed for older versions) */
input::-webkit-input-placeholder { color: var(--accent-gold); }

/* Chrome, Safari, Edge */
input::-moz-placeholder { color: var(--accent-gold); }

/* Firefox 19+ */
input:-ms-input-placeholder { color: var(--accent-gold); }

/* IE 10-11 */

.privacy-link {
    color: var(--text-secondary);
    text-decoration: none;
}

.privacy-link:hover {
    font-weight: 600;
}

.privacy-link img {
    height: 20px;
}

.copyright-normal {
    font-size: 0.85rem;
}

#privacyCopyright {
    text-align: center;
    color: var(--text-secondary);
}

.hamburger {
    border: 1px solid var(--border);
    padding: 3px 6px;
    background: #ddd;
    color: #333;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
}

#pageDivFooter {
    margin-top: 2rem;
    margin-bottom: 0;
    text-align: center;
    color: var(--text-secondary);
}

/* 1. The Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none; /* Controlled by JS */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: sans-serif;
    color: var(--accent-gold);
    
    /* Fade-in Animation */
    animation: fadeInLoading 0.3s ease-in-out;
}

/* 2. The Spinner */
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--accent-gold);
    border-right: 6px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

/* 3. Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInLoading {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* When the 'fb-shell' class is present, shrink the root font size */
html.fb-shell {
    font-size: 75% !important; /* Drops 16px base to 12px */
}

/* Ensure all elements are using relative units to inherit this shrink */
html.fb-shell body, 
html.fb-shell .cdm-button, 
html.fb-shell h3 {
    font-size: 1rem; /* This now refers to the new 12px base */
}

.cdm-progress-container {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1); /* Subtle track on purple */
    border-radius: 20px;
    height: 2rem;
    overflow: hidden;
    border: 1px solid var(--accent-gold);
    margin: 20px 0;
}

.cdm-progress-fill {
    height: 100%;
    width: 0%; /* Initial state */
    background: linear-gradient(90deg, #bf953f, #fcf6ba, #b38728); /* Metallic Gold */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.4s ease-in-out;
}

/*////////////////////////////////////////////////////////////////////////////*/

.emergency-buttons {
    display: flex; /* Flex is much safer than Grid for simple stacks */
    flex-direction: column; 
    gap: 1rem;
    width: 100%;
    max-width: 600px; /* Limits width on desktop */
    margin: 0rem auto;
    /* This is the safety belt: */
    /*box-sizing: border-box;  */
    /*overflow: hidden; */
}

.emergency-button {
    padding: 0.75rem 1rem;
    background: linear-gradient(to right, rgba(64, 55, 45, 0.3), transparent);
    border: 1px solid rgba(100, 100, 100, 0.3);
    border-left: 4px solid var(--accent-dim);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.9s ease;
    font-size: 1.1rem;
    font-weight: 600;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    
    width: 100% !important; 
    box-sizing: border-box;    
}

.emergency-button:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    transform: translateX(4px);
}

.emergency-button-red {
    background: linear-gradient(to right, var(--emergency-red-button-transparent), transparent);
    border-left: 4px solid var(--emergency-red-button);
}
.emergency-button-yellow {
    background: linear-gradient(to right, var(--emergency-yellow-button-transparent), transparent);
    border-left: 4px solid var(--emergency-yellow-button);
}
.emergency-button-green {
    background: linear-gradient(to right, var(--emergency-green-button-transparent), transparent);
    border-left: 4px solid var(--emergency-green-button);
}
.emergency-text {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
}
.emergency-subtext {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: 0.3rem;
}

.cdm-standard-button {
    padding: 0.75rem 1rem;
    background: linear-gradient(to right, rgba(70, 70, 70, 0.8), transparent);
    border: 1px solid rgba(120, 120, 120, 0.3);
    border-left: 4px solid var(--text-secondary);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.9s ease;
    font-size: 1.1rem;
    font-weight: 600;
    width: unset !important;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cdm-standard-button:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    transform: translateX(4px);
}

/* Emergency Container Styles */
.emergency-container {
    max-width: 900px;
    margin: 0rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: fadeIn 0.5s ease-out; /* Using your existing fadeIn animation */
}

.emergency-container h2 {
    font-size: 1.75rem;
    color: var(--error); /* Using your error-red for the title */
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    text-align: center;
}

/* Card Styling */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--text-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* The "Backlit" Effect for your Primary Action */
.affiliate-card {
    border: 1px solid var(--text-secondary);
    /* Mimicking your backlit-white style but with a red emergency glow */
    box-shadow: 0 0 20px 2px rgba(239, 68, 68, 0.15); 
}
.main-menu-card {
    border: 1px solid var(--bg-tertiary);
    /* Mimicking your backlit-white style but with a red emergency glow */
    box-shadow: 0 0 10px 2px rgba(239, 239, 239, 0.1); 
}

.card h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Button Integration */
.card button, .hotline-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
    width: 100%;
    display: block;
    text-decoration: none;
}

.btn-primary {
    background: var(--red-button);
    color: white;
    font-size: 1.1rem;
}
.btn-primary-donate {
    font-family: 'Fredoka', sans-serif;
    background: #007bff;
    color: white;
    font-size: 1.5rem;
}

.btn-primary:hover, .btn-primary-donate:hover {
    background: var(--red-button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.btn-primary-donate:hover {
    background: #004bff;
}


/* Hotline specific styling */
.hotline-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hotline-btn {
    background: var(--red-button);
    border: 1px dashed var(--text-secondary) !important;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.hotline-btn:hover {
    border-color: var(--warning) !important;
    color: var(--warning);
}

.cdm-feature-button-purple {
    background: linear-gradient(to right, var(--quiz-purple-transparent), transparent);
    border-left: 4px solid var(--quiz-purple);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.9);
}
.cdm-standard-button-orange {
    background: linear-gradient(to right, var(--orange-button-transparent), transparent);
    border-left: 4px solid var(--orange-button);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.9);
}
.cdm-feature-button-cyan {
    background: linear-gradient(to right, var(--feature-cyan-transparent), transparent);
    border-left: 4px solid var(--feature-cyan);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    box-sizing: border-box;
    padding: 40px 40px;
    background: rgba(10, 10, 10, 0.75);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-bottom-left-radius: 12px;
    transition: right 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
    z-index: 1500;
    display: none;
    flex-direction: column;
    gap: 25px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    line-height: 1;
    padding: 0;
    margin: 0;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.mobile-menu a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1400;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {

    html, body {
        height: 100%;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

.app {
        height: 100dvh;
        padding-bottom: var(--input-height, 76px);
    }

.main-menu-image img {
        height: 50px;
    }

.header {
        padding: 0.5rem 0.7rem 0.5rem 0.7rem;
    }

.business-info span {
    font-size: 0.9rem;
}
.business-info p {
    margin-top: 0.3rem;
}

.scroll-arrow {
        left: 2rem;
    }

.menu-container {
    margin-right: unset;
}

.quiz-question {
    /* (5 lines * 2.24rem) + 3rem padding */
    min-height: 14.2rem; 
}

.input-container {
        padding: 0.5rem 2rem 0.5rem 2rem;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        background: rgba(74, 74, 74, 0.3);
        border-top: 1px solid var(--border);
        padding: 0.5rem 1rem env(safe-area-inset-bottom);
    }

input::placeholder {
    font-weight: 800;
}

.concern-buttons {
    /*grid-template-columns: repeat(auto-fit, minmax(150px, 2fr));*/
    grid-template-columns: 2fr;
}

.cdm-buttons{
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

.chat-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0.7rem 0.7rem 0.7rem;
}

.quiz-active {
        padding: 2rem;
    }

.tell-me-more-link {
        margin-top: 0.65rem;
        margin-bottom: 0.65rem;
    }

.mobile-menu a {
        font-size: 1.1rem;
        line-height: 1.1;
    }

    .hotline-links {
        grid-template-columns: 1fr;
    }
}

/* Circular Progress Styles */
.concern-circle-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 20px auto;
}

.concern-circle-svg {
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 10;
}

.circle-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease-out;
}

.percentage-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.button-margin {
    margin-top: 0rem;
    margin-bottom: 0rem;
}

/* ****************************** */

  .section-container,
  .section-container-keep-handy {
    position: relative;
    width: 100%;
    min-height: 200px; /* Adjust height as needed */
    display: flex;
    align-items: center;    /* Vertical center */
    justify-content: center; /* Horizontal center */
    overflow: hidden;
  }

  /* The background image layer */
  .section-container::before,
  .section-container-keep-handy::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 50%;
    height: 50%;
    opacity: 0.5; /* Set your opacity here (0.0 to 1.0) */
    z-index: 1;
    background-image: url('/images/section-happiest-scrolls100p.png');
    background-size: cover;
    background-position: center;
  }

  .section-container-keep-handy::before {
    background-image: url('/images/section-keep-handy.png');
  }

  /* The content layer */
  .section-content, .section-content-keep-handy {
    position: relative;
    z-index: 2; /* Keeps text above the background */
    text-align: center;
    color: white;
    font-family: sans-serif;
  }

/* ============================================================
   HERO HEADER
   ============================================================ */

#hero-header, #hero-dog-pals {
    margin-bottom: 0rem;
    margin-top: -1rem;
    margin-left: -50vw;
    margin-right: -50vw;
    position: relative;
    left: 50%;
    right: 50%;
    padding: 2rem;
    text-align: center;
    width: 100vw;
            
    background-image: radial-gradient(circle at top left,
        rgba(11, 15, 20, 0.6), rgba(32, 15, 14, 0.6)),
        url('/images/hero-bg.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 400px;

    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.2s forwards;
}

#hero-dog-pals {
    margin-top: 1rem;
    margin-bottom: 4rem;

    background-image: radial-gradient(circle at top left,
        rgba(11, 15, 20, 0.8), rgba(32, 15, 14, 0.8)),
        url('/images/dogpals.jpg');
    background-position: top center;
    background-attachment: fixed !important;
    min-height: 330px;
}

#welcome-heading, .section-header {
    color: var(--text-primary);
    font-size: 3.2rem;
    font-weight: 700;
    text-align: left;
    letter-spacing: 0rem !important;
    margin-top: -0.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.0;
}

#hero-header ul {
    padding-left: 0;
    margin-top: 1rem;
    font-size: 1.6rem;
    text-align: left;
}

#hero-header li {
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.section-header {
    text-align: center;
}

.pet-input-field {
    flex: 1;
    padding: 1.0rem 1.0rem;
    background: var(--header-footer);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    font-family: inherit;
    /*width: 70%;*/
    
    transition: border-color 0.2s ease;
}

.pet-input-field:focus {
    outline: none;
    border-color: var(--accent);
}

.feature-container {
    animation: fadeIn 0.3s ease-out;
    width: 100%;
    max-width: 600px;
    margin: 0rem auto;
}

@media (max-width: 768px) {

    .feature-container {
        margin-top: 0rem;
        padding-top: 0rem;
    }

    #hero-header {
        background-image: radial-gradient(circle at top left,
            rgba(11, 15, 20, 0.7), rgba(32, 15, 14, 0.7)),
            url('/images/fimage2.webp');
        background-size: 100%;
        background-position: top;
        background-repeat: no-repeat;
        min-height: unset;
        margin-top: -2.5rem;
    }

    #welcome-heading {
        font-size: 2.2rem;
        margin-top: 1rem;
    }
}

/* ============================================================
   HOMECOMING CAROUSEL (home page teaser)
   ============================================================ */

.gnf-carousel-wrap {
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.gnf-carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 1rem 1rem;
    scrollbar-width: none;
}

.gnf-carousel-track::-webkit-scrollbar {
    display: none;
}

.gnf-carousel-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.gnf-carousel-card:hover {
    border-color: var(--accent-gold);
}

.gnf-carousel-img {
    width: 200px;
    height: 360px;
    object-fit: cover;
    display: block;
}

/* ============================================================
   CATEGORY PILLS - Home page topic selectors
   ============================================================ */

.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.category-pill {
    background: var(--bg-button);
    border: 1px solid var(--accent-gold);
    border-radius: 999px;
    color: var(--accent-gold);
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    padding: 10px 22px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.category-pill:hover,
.category-pill:active {
    background: rgba(197, 165, 111, 0.2);
    color: #e0c880;
}

/* ============================================================
   CATEGORY PRE-SCREEN - Dog / Cat chooser buttons
   ============================================================ */

.category-pet-btn {
    background: var(--bg-button);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 600;
    font-family: inherit;
    padding: 1.2rem 2.5rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    min-width: 120px;
}

.category-pet-btn:hover,
.category-pet-btn:active {
    border-color: var(--accent-gold);
    background: rgba(197, 165, 111, 0.1);
}

@media (max-width: 768px) {
    .category-pill {
        font-size: 0.95rem;
        padding: 9px 18px;
    }
    .category-pet-btn {
        padding: 1rem 2rem;
    }
}

/* ============================================================
   QUIZ OPTIONS - Multi-choice buttons (non True/False quizzes)
   ============================================================ */

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.quiz-option-btn {
    background: var(--bg-button);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    padding: 14px 20px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.quiz-option-btn:hover,
.quiz-option-btn:active {
    border-color: var(--accent-gold);
    background: rgba(197, 165, 111, 0.1);
}
