* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: #102a43;
    background: #fff
}

.navbar {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    border-bottom: 1px solid #edf2f5;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px
}

.logo>span {
    font-size: 32px
}

.logo strong {
    display: block;
    font-size: 18px
}

.logo small {
    display: block;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #607d8b
}

nav {
    display: flex;
    gap: 30px
}

nav a,
footer a {
    color: inherit;
    text-decoration: none
}

.btn {
    border: 0;
    border-radius: 7px;
    padding: 13px 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer
}

.primary {
    background: #08a5ad;
    color: #fff
}

.secondary {
    border: 1px solid #08a5ad;
    background: #fff;
    color: #08a5ad;
    text-decoration: none;
    display: inline-block
}

.hero {
    min-height: 385px;
    display: grid;
    grid-template-columns: 48% 52%;
    background: #f5fafc
}

.hero-content {
    padding: 70px 7%;
    align-self: center
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    color: #08a5ad;
    font-weight: 800
}

.hero h1 {
    font-size: 56px;
    line-height: 1.05;
    margin: 13px 0 18px
}

.hero p {
    font-size: 18px;
    color: #536b7d;
    line-height: 1.55;
    max-width: 520px
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 28px
}

.hero-image {
    min-height: 385px;
    background: linear-gradient(120deg, #e7f7fa, #d4eef2);
    display: flex;
    align-items: center;
    justify-content: center
}

.dental-placeholder {
    width: 78%;
    height: 78%;
    border-radius: 30px;
    background: linear-gradient(135deg, #bfe7ed, #eaf8fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #08a5ad;
    font-size: 26px;
    font-weight: 800
}

.section,
.why {
    padding: 65px 5%;
    text-align: center
}

.center {
    display: block
}

.section h2,
.why h2 {
    font-size: 31px;
    margin: 10px 0 30px
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px
}

.card {
    padding: 28px 20px;
    border: 1px solid #e2edf1;
    border-radius: 12px;
    background: #fff
}

.icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #e9f8fa;
    margin: auto auto 16px;
    display: grid;
    place-items: center;
    font-size: 24px
}

.card h3 {
    font-size: 17px
}

.card p,
.benefits p {
    color: #667b8a;
    line-height: 1.5;
    font-size: 14px
}

.why {
    background: #f4fafc
}

.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    text-align: left
}

.cta {
    text-align: center;
    padding: 65px 20px;
    background: #eaf8fa
}

.cta h2 {
    font-size: 32px;
    margin: 0 0 8px
}

.cta p {
    color: #607d8b;
    margin-bottom: 25px
}

footer {
    background: #082c43;
    color: #dceaf0;
    padding: 45px 6%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 35px;
    font-size: 14px
}

footer h4 {
    color: #fff;
    margin-top: 0
}

footer a {
    display: block;
    margin: 10px 0;
    color: #c9dce4
}

.chat-fab {
    position: fixed;
    right: 25px;
    bottom: 24px;
    width: 66px;
    height: 66px;
    border: 0;
    border-radius: 50%;
    background: #08a5ad;
    color: #fff;
    font-size: 29px;
    cursor: pointer;
    box-shadow: 0 8px 30px #073b4d44;
    z-index: 100
}

.chat-fab i {
    position: absolute;
    right: 3px;
    top: 2px;
    width: 13px;
    height: 13px;
    background: #25c96f;
    border: 2px solid #fff;
    border-radius: 50%
}

.chat-widget {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 420px;
    height: 650px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 15px 55px #082c4340;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 101;
    border: 1px solid #e5eef2
}

.chat-widget.open {
    display: flex
}

.chat-widget.fullscreen {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0
}

.chat-header {
    height: 72px;
    flex: 0 0 72px;
    background: #08a5ad;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px
}

.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #08a5ad;
    display: grid;
    place-items: center
}

.chat-title {
    flex: 1
}

.chat-title strong,
.chat-title span {
    display: block
}

.chat-title span {
    font-size: 11px;
    margin-top: 3px;
    opacity: .9
}

.chat-controls {
    display: flex;
    gap: 4px
}

.chat-controls button {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 25px;
    width: 30px;
    height: 34px;
    cursor: pointer
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    background: #fbfdfe
}

.message {
    display: flex;
    margin: 9px 0
}

.message.user {
    justify-content: flex-end
}

.bubble {
    max-width: 80%;
    padding: 12px 14px;
    border-radius: 16px;
    background: #edf2f5;
    color: #19354a;
    line-height: 1.45;
    font-size: 14px;
    white-space: pre-wrap
}

.user .bubble {
    background: #08a5ad;
    color: #fff;
    border-bottom-right-radius: 5px
}

.bot .bubble {
    border-bottom-left-radius: 5px
}

.typing {
    opacity: .6
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 15px
}

.quick-actions button {
    background: #fff;
    border: 1px solid #d4e3e8;
    border-radius: 18px;
    padding: 8px 12px;
    color: #385466;
    cursor: pointer;
    font-size: 12px
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid #e7eef1
}

.chat-input input {
    flex: 1;
    border: 1px solid #d5e2e7;
    border-radius: 24px;
    padding: 13px 16px;
    outline: none;
    font-size: 14px
}

.chat-input button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #08a5ad;
    color: #fff;
    font-size: 20px;
    cursor: pointer
}

.chat-input button:disabled {
    opacity: .5
}

.powered {
    text-align: center;
    color: #718592;
    font-size: 11px;
    padding: 0 0 10px
}

@media(max-width:900px) {
    nav {
        display: none
    }

    .hero {
        grid-template-columns: 1fr
    }

    .hero-image {
        display: none
    }

    .cards,
    .benefits {
        grid-template-columns: repeat(2, 1fr)
    }

    footer {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:600px) {
    .navbar {
        padding: 0 18px
    }

    .navbar>.btn {
        display: none
    }

    .hero-content {
        padding: 50px 25px
    }

    .hero h1 {
        font-size: 43px
    }

    .cards,
    .benefits {
        grid-template-columns: 1fr
    }

    .chat-widget {
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0
    }

    .chat-fab {
        right: 18px;
        bottom: 18px
    }
}

.price {
    margin-top: 18px;
    font-size: 20px;
    font-weight: 800;
    color: #08a5ad;
}

/* =========================================
   CUSTOMER DETAILS FORM
   ========================================= */

.customer-form-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 44, 67, 0.35);
    backdrop-filter: blur(3px);

    display: none;
    align-items: center;
    justify-content: center;

    z-index: 200;

    padding: 20px;
}

.customer-form-overlay.show {
    display: flex;
}


.customer-form-card {
    width: 100%;
    max-width: 390px;

    background: #fff;

    border-radius: 18px;

    padding: 26px;

    box-shadow: 0 20px 60px rgba(8, 44, 67, 0.25);

    animation: customerFormIn 0.2s ease-out;
}


@keyframes customerFormIn {

    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


.customer-form-header {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 24px;
}


.customer-form-icon {
    width: 46px;
    height: 46px;

    border-radius: 50%;

    background: #e9f8fa;

    display: grid;
    place-items: center;

    font-size: 23px;
}


.customer-form-header h3 {
    margin: 0;

    font-size: 20px;

    color: #102a43;
}


.customer-form-header p {
    margin: 4px 0 0;

    font-size: 12px;

    color: #718592;
}


.form-group {
    margin-bottom: 15px;
}


.form-group label {
    display: block;

    margin-bottom: 6px;

    font-size: 13px;

    font-weight: 700;

    color: #385466;
}


.form-group input {
    width: 100%;

    border: 1px solid #d5e2e7;

    border-radius: 8px;

    padding: 12px 13px;

    font-size: 14px;

    outline: none;

    font-family: inherit;

    transition: border-color 0.2s;
}


.form-group input:focus {
    border-color: #08a5ad;
}


.customer-form-submit {
    width: 100%;

    border: 0;

    border-radius: 8px;

    padding: 13px;

    margin-top: 5px;

    background: #08a5ad;

    color: #fff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;
}


.customer-form-submit:hover {
    opacity: 0.92;
}


.customer-form-cancel {
    width: 100%;

    border: 0;

    background: transparent;

    color: #718592;

    padding: 10px;

    margin-top: 5px;

    font-size: 13px;

    cursor: pointer;
}


@media(max-width:600px) {

    .customer-form-card {
        max-width: 100%;
        padding: 22px;
    }

}

/* =========================================
   THEME VARIABLES
   ========================================= */

:root {
    --bg: #ffffff;
    --bg-secondary: #f5fafc;
    --bg-card: #ffffff;

    --text: #102a43;
    --text-secondary: #536b7d;
    --text-muted: #667b8a;

    --border: #e2edf1;

    --primary: #08a5ad;
    --primary-light: #e9f8fa;

    --footer-bg: #082c43;
    --footer-text: #dceaf0;

    --chat-bg: #fbfdfe;
    --chat-bubble: #edf2f5;
}


/* =========================================
   DARK MODE
   ========================================= */

body.dark-mode {

    --bg: #0f1f2b;
    --bg-secondary: #132936;
    --bg-card: #172f3d;

    --text: #edf7fa;
    --text-secondary: #b7cbd4;
    --text-muted: #9bb1bc;

    --border: #294552;

    --primary: #10b8c0;
    --primary-light: #193f48;

    --footer-bg: #071820;
    --footer-text: #c8dbe2;

    --chat-bg: #10232e;
    --chat-bubble: #203844;
}


/* =========================================
   GLOBAL DARK MODE
   ========================================= */

body {
    background: var(--bg);
    color: var(--text);
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}


/* Navbar */

.navbar {
    background: var(--bg);
    border-bottom-color: var(--border);
}


/* Links */

nav a {
    color: var(--text);
}


/* Hero */

.hero {
    background: var(--bg-secondary);
}

.hero p {
    color: var(--text-secondary);
}


/* Hero image */

.hero-image {
    background: linear-gradient(120deg,
            var(--primary-light),
            var(--bg-secondary));
}

.dental-placeholder {
    background: linear-gradient(135deg,
            #24505b,
            var(--primary-light));
}


/* Sections */

.section,
.why {
    background: var(--bg);
}

.why {
    background: var(--bg-secondary);
}

.section h2,
.why h2,
.cta h2 {
    color: var(--text);
}


/* Cards */

.card {
    background: var(--bg-card);
    border-color: var(--border);
}

.card p,
.benefits p {
    color: var(--text-muted);
}


/* CTA */

.cta {
    background: var(--primary-light);
}

.cta p {
    color: var(--text-muted);
}


/* Footer */

footer {
    background: var(--footer-bg);
}


/* Secondary button */

.secondary {
    background: var(--bg-card);
}


/* =========================================
   THEME TOGGLE
   ========================================= */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 42px;
    height: 42px;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: var(--bg-card);
    color: var(--text);

    display: grid;
    place-items: center;

    font-size: 19px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
}


/* =========================================
   CHAT WIDGET DARK MODE
   ========================================= */

.chat-widget {
    background: var(--bg-card);
    border-color: var(--border);
}

.chat-messages {
    background: var(--chat-bg);
}

.bubble {
    background: var(--chat-bubble);
    color: var(--text);
}

.quick-actions {
    background: var(--bg-card);
}

.quick-actions button {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-secondary);
}

.chat-input {
    background: var(--bg-card);
    border-top-color: var(--border);
}

.chat-input input {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border);
}

.chat-input input::placeholder {
    color: var(--text-muted);
}

.powered {
    color: var(--text-muted);
}


/* =========================================
   CUSTOMER FORM DARK MODE
   ========================================= */

.customer-form-overlay {
    background: rgba(0, 0, 0, 0.65);
}

.customer-form-card {
    background: var(--bg-card);
}

.customer-form-header h3 {
    color: var(--text);
}

.customer-form-header p {
    color: var(--text-muted);
}

.form-group label {
    color: var(--text-secondary);
}

.form-group input {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.customer-form-cancel {
    color: var(--text-muted);
}