@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

.recycle-ai-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f7f6;
    text-align: center;
    padding: 20px;
    font-family: 'Outfit', sans-serif;
}

.ai-container {
    /* max-width: 900px; */
    width: 80%;
}

.ai-title {
    font-size: 49px;
    font-weight: 400;
    color: #676766;
    margin-bottom: 15px;
}

.ai-title .highlight {
    color: #00A263;
    font-weight: 600;
}

.ai-title .sparkle {
    font-size: 28px;
}

.ai-subtitle {
    font-size: 27px;
    color: #676766;
    margin-bottom: 35px;
}

.ai-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0px 0px 24px 0px rgba(0, 0, 0, 0.15);
    padding: 4px 10px;
    gap: 10px;
}

.ai-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 18px 20px;
    font-size: 16px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif !important;
}

.ai-input::placeholder {
    color: #676766 !important;
}


.ai-button {
    background: #1c9c6d;
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s ease;
}

.ai-button:hover {
    background: #158a5e;
}

.ai-note {
    margin-top: 20px;
    font-size: 14px;
    color: #676766;
}


/* Chat wrapper hidden initially */
.ai-chat-wrapper {
    display: none;
    margin-bottom: 30px;
    text-align: left;
}

/* Message container */
.ai-chat-messages {
    width: 100%;
    /* max-width:80%; */
    margin: auto;
}

/* User bubble */
.ai-user-message {
    background: #4a4a4a12;
    padding: 14px 18px;
    border-radius: 30px;
    margin-bottom: 15px;
    margin-left: auto;
    font-size: 16px;
    color: #676766;

    text-align: left;
    /* fix wide bubble issue */

    max-width: 304px;
    width: fit-content;
    /* bubble only as wide as text */

    word-break: break-word;
    /* break long words */
    overflow-wrap: break-word;
    /* support long strings */
}

/* AI message */
.ai-bot-message {
    background: #ffffff;
    padding: 18px;
    border-radius: 18px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}


/* Bot group wrapper */
.ai-bot-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
    width: 100%;
}

/* Bot text bubble */
.ai-bot-bubble {
    background: #f5f7f6;
    padding: 18px 22px;
    border-radius: 18px;
    max-width: 70%;
    font-size: 15px;
    line-height: 1.6;
    color: #2b2b2b;
    margin-bottom: 20px;
}



/* Individual card */

/* Hover effect */
.ai-center-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Card title */
.ai-center-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111;
}

/* Address */
.ai-center-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

/* Remove phone if 0 */
.ai-center-card p:empty {
    display: none;
}




/* ==============================
   PAGE BACKGROUND
============================== */

body {
    background: #f5f7f6;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* ==============================
   AI MESSAGE WRAPPER
============================== */


/* ==============================
   AI BOT TEXT BUBBLE
============================== */

.ai-bubble {
    color: #676766;
    font-size: 16px;
    line-height: 1.7;
}

/* ==============================
   CENTERS GRID
============================== */

.ai-centers-container {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: repeat(2, 1fr);
    /* 2 per row */
    width: 100%;
    gap: 20px;
}


/* ==============================
   CENTER CARD (Figma Match)
============================== */

.ai-center-card {
    width: 260px;
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e6eeea;
    transition: all 0.25s ease;
}

/* Soft hover like Figma */
.ai-center-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

/* ==============================
   CARD TITLE
============================== */

.ai-center-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3a35;
    margin-bottom: 10px;
}

/* ==============================
   ADDRESS & PHONE
============================== */

.ai-center-card p {
    font-size: 14px;
    color: #7b8a84;
    margin: 4px 0;
}

/* ==============================
   GREEN LOCATION ICON CIRCLE
   (like small icon at top)
============================== */

/* .ai-center-card::before {
    content: "📍";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #e8f4ef;
    color: #1c8f5f;
    border-radius: 50%;
    font-size: 16px;
    margin: 0 auto 14px auto;
} */


/* .ai-typing {
    display: inline-flex;
    gap: 5px;
}

.ai-typing span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: aiBlink 1.4s infinite both;
}

.ai-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes aiBlink {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
} */


/* When chat starts */
.chat-started {
    display: flex;
    flex-direction: column;
    /* height: 85vh; */
}

/* Chat area grows */
.chat-started #aiChatWrapper {
    flex: 1;
    /* overflow-y: auto; */
}

/* Move input to bottom */
.chat-started #aiSearchForm {
    position: sticky;
    bottom: 10px;
    background: #fff;
    z-index: 100;
}


.ai-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1c8f5f;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ai-button:hover {
    background: #157a4f;
    box-shadow: 0 8px 20px rgba(28, 143, 95, 0.25);
}

.ai-button svg {
    width: 22px;
    height: 22px;
}

.ai-button.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

/* Header Row */
.ai-header {
    display: flex;
    align-items: center;
}

/* Logo Circle */
.ai-logo {
    width: 23px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-logo img {
    width: 24px;
    height: 23px;
}

/* Title */
.ai-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.ai-center-card img {
    height: 25px;
}

/* Action row */
.card-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

/* Circular button */
.action-btn {
    width: 40px;
    height: 40px;
    background: #e8f4ef;
    border-radius: 50%;
    display: inline-grid;
    align-items: center;
    justify-content: center;
    color: #1c8f5f;
    /* icon color */
    transition: all 0.25s ease;
    text-decoration: none;
}

/* SVG size */
.action-btn svg {
    width: 22px;
    height: 22px;
}

/* Hover (like your Figma) */
.action-btn:hover {
    background: #1c8f5f;
    color: white;
    transform: translateY(-2px);
}

/* Tooltip box */
.tooltip-content {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #2d3a35;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: normal;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    width: max-content;
    max-width: 300px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Tooltip arrow */
.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #2d3a35 transparent transparent transparent;
}

/* Show tooltip on hover */
.action-btn:hover .tooltip-content {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}



.action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #e8f4ef;
    border-radius: 50%;
    color: #1c8f5f;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-right: 8px;
}


/* Tooltip box */
.tooltip-content {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #2d3a35;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: normal;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    width: max-content;
    max-width: 200px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Tooltip arrow */
.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #2d3a35 transparent transparent transparent;
}

/* Show tooltip on hover */
.action-btn:hover .tooltip-content {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.recycle-ai-hero .ai-container {
    max-width: 100%;
    margin-top: 55px;
}

.recycle-ai-hero .ai-container form.ai-search-form {
    margin-inline: auto;
    width: 100%;
}

.recycle-ai-hero .ai-container form.no-query {
    max-width: 877px;
}

section.recycle-ai-hero:has(form.ai-search-form.no-query) {
    align-items: center;
}

section.recycle-ai-hero:has(form.ai-search-form) {
    align-items: flex-end;
    padding-bottom: 0;
    padding-top: 0;
}

div#aiChatMessages {
    max-height: 67vh;
    overflow-Y: auto;
    scrollbar-width: none;
}

.action-btn svg path {
    fill: #606060 !important;
}

.header-nav ul li a {
    font-family: "Outfit", sans-serif;
}

.ai-title .sparkle img {
    margin-bottom: 12px;
    transform: translateY(-15px);
    margin-left: -6px;
}

.dummy-element {
    margin-top: 30 px;
}

.ai-center-card {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
}


@media(max-width:1565px) {
    .test-ai-search .container {
        max-width: 90%;
    }

    .recycle-ai-hero .ai-container {
        max-width: 90%;
        width: 100%;
    }

    .ai-centers-container .ai-center-card {
        width: 100%;
        max-width: calc(100%/4 - 17px);
    }

}

@media(max-width:1279px) {

    footer div#mc_embed_signup form#mc-embedded-subscribe-form {
        width: 100%;
    }

    footer div#mc_embed_signup form#mc-embedded-subscribe-form input#mce-EMAIL {
        width: 270px;
    }
}

@media(max-width:1199px) {
    .ai-centers-container .ai-center-card {
        width: 100%;
        max-width: calc(100%/3 - 14px);
    }

    footer.footer-outer .container .footer-nav {
        max-width: calc(100%/3 - 10px);
        width: 100%;
    }

    footer div#mc_embed_signup {
        width: 100%;
    }

    footer div#mc_embed_signup form#mc-embedded-subscribe-form {
        width: 100%;
    }

    footer .row {
        margin: 0;
        justify-content: center;
    }

    footer div#mc_embed_signup_scroll input#mce-EMAIL {
        width: 75%;
    }

    footer div#mc_embed_signup form#mc-embedded-subscribe-form input#mce-EMAIL {
        width: 75%;
    }
}

@media(max-width:991px) {
    .test-ai-search .container {
        max-width: 96%;
    }

    .recycle-ai-hero .ai-container {
        max-width: 96%;
    }

    .ai-centers-container .ai-center-card {
        width: 100%;
        max-width: calc(100%/2 - 14px);
    }

    .recycle-ai-hero .ai-container form.no-query {
        max-width: 600px;
    }

    .ai-bot-group .ai-bubble {
        max-width: 100%;
        width: 100%;
    }
}

@media(max-width:767px) {
    .ai-title {
        font-size: 38px;
        margin-bottom: 5px;
    }

    footer .row .footer-nav {
        width: auto;
    }

    footer div#mc_embed_signup_scroll input#mce-EMAIL {
        width: 75%;
    }

    .ai-title .sparkle img {
        margin-bottom: 0;
        max-width: 28px;
    }
}

@media(max-width:567px) {
    .recycle-ai-hero .ai-container {
        max-width: 100%;
        width: 100%;
    }

    .ai-centers-container .ai-center-card {
        width: 100%;
        max-width: calc(100%/2 - 5px);
        border-radius: 10px;
        padding: 20px 10px;
    }

    .ai-bot-group .ai-bubble {
        max-width: 100%;
        width: 100%;
    }

    .ai-centers-container {
        gap: 10px;
    }

    .action-btn {
        width: 30px;
        height: 30px;
    }

    .action-btn svg {
        width: 18px;
        height: 18px;
    }

    .ai-button {
        width: 40px;
        height: 40px;
    }

    .ai-title {
        font-size: 32px;
    }

    .ai-subtitle {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .ai-title .sparkle img {
        max-width: 22px;
        margin-bottom: 0;
        margin-top: 8px;
    }


}

@media(max-width:599px) {
    footer div#mc_embed_signup_scroll input#mce-EMAIL {
        width: 100%;
    }

    footer.footer-outer .container .footer-nav {
        max-width: 50%;
        width: 100%;
        float: unset;
        clear: both;
    }

    footer.footer-outer .container .footer-nav li {
        float: unset;
        clear: both;
    }

    footer .row {
        justify-content: flex-start;
    }

    div#aiChatMessages>div {
        position: sticky;
        left: 0;
    }

    footer div#mc_embed_signup form#mc-embedded-subscribe-form input#mce-EMAIL {
        width: 100%;
    }
}

@media(max-width:420px) {
    .ai-centers-container .ai-center-card {
        width: 100%;
        max-width: 100%;
    }

    .ai-bot-bubble {
        padding: 10px 14px;
    }
}


@media(max-width:359px) {

    .recycle-ai-hero .ai-container form.no-query input#aiQuery,
    .chat-started #aiSearchForm input#aiQuery {
        padding: 13px 8px;
        max-width: 83%;
    }

    .recycle-ai-hero .ai-container form.no-query button#sendBtn,
    .chat-started #aiSearchForm button#sendBtn {
        width: 33px;
        height: 33px;
    }
}





.ai-bot-dummy-message {
    background: #f1f1f1;
    padding: 12px 16px;
    border-radius: 12px;
    display: inline-block;
    max-width: 70%;
    font-size: 14px;
}

.ai-typing {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Animated dots */
.dots span {
    animation: blink 1.5s infinite;
    font-weight: bold;
}

.dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {

    0%,
    20% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}



.ai-typing .loader-circle {
    width: 35px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ai-typing .loader-circle img.loader-logo {
    max-width: 19px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ai-typing .loader-circle .loader-ring {
    position: absolute;
    width: 35px;
    height: 35px;
    border: 4px solid #ccc;
    border-top: 4px solid #00B26B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

.card-explanation {
    font-size: 13px;
    color: #666;
    margin: 8px 0 12px;
    line-height: 1.4;
}

.first-card {
    left: 150%;
}

.first-card::after {
    left: 25%;
}