/* Doctors at Home — the assistant (chat.js). Owner, 10 Oct 2026: «make it actual design … a logo of the company slightly modified
   circular with a nice glow around it and maybe an open animation (like it sliding in from the outside of the screen)».
   The launcher: the house emblem on a white disc, a ring in the logo's blue and red, a soft breathing glow, a green «live» dot, and the
   label beside it; the first time in a visit it slides in from outside the screen. The window slides in when opened (from the right on a
   computer, from below on a phone) and out when closed. The site's colours and font; less motion when the device asks for it. */

/* ---------- the launcher ---------- */
.dc-fab { position: fixed; z-index: 60; right: 14px; bottom: calc(var(--bar-h, 68px) + 14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px;
  padding: 0; border: 0; background: none; font-family: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), opacity .3s ease; }
.dc-fab.dc-away { transform: translateX(calc(100% + 48px)); opacity: 0; pointer-events: none; }
body:has(#consent:not([hidden])) .dc-fab { display: none; } /* the cookie box first: the launcher would cover its «Αποδοχή» */
@media (min-width: 1024px) { .dc-fab { right: 26px; bottom: 26px; } }

/* the circle: its own layer (isolation), its glow (::before) always behind the white disc (.dc-disc), so on hover it grows and stays white
   (owner, 10 Oct 2026: on hover «dont just make it blue» … «not get rid of the animations»); the label keeps its colour */
.dc-orb { position: relative; flex: none; width: 60px; height: 60px; isolation: isolate; transition: transform .25s ease; }
@media (min-width: 1024px) { .dc-orb { width: 66px; height: 66px; } }
.dc-disc { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(140deg, #4b7bc2 0%, #133c75 46%, #b3181e 100%) border-box;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .95), 0 0 6px 1px rgba(75, 123, 194, .45), 0 6px 14px rgba(12, 42, 85, .22); } /* a small glow, close to the circle (owner, 10 Oct 2026) */
.dc-disc img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.dc-fab:hover .dc-orb, .dc-fab:focus-visible .dc-orb { transform: scale(1.07); }
.dc-orb::before { content: ""; position: absolute; inset: -5px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 42% 40%, rgba(90, 140, 215, .6) 0, rgba(61, 104, 168, .34) 38%, rgba(179, 24, 30, .16) 56%, rgba(255, 255, 255, 0) 72%);
  filter: blur(2px); animation: dc-breathe 3.4s ease-in-out infinite; }
.dc-live { position: absolute; top: 0; right: 0; width: 14px; height: 14px; border-radius: 50%; background: #22b45f; border: 2.5px solid #fff; box-shadow: 0 0 0 0 rgba(34, 180, 95, .5); animation: dc-ping 2.6s ease-out infinite; }
.dc-fab:focus-visible { outline: none; }
.dc-fab:focus-visible .dc-disc { outline: 3px solid #f2a33a; outline-offset: 5px; } /* (keyboard only: the site's focus mark) */

.dc-tag { position: relative; display: block; padding: 10px 15px; border-radius: 14px; background: #133c75; color: #fff; font-weight: 650; font-size: .95rem; line-height: 1.25;
  white-space: nowrap; box-shadow: 0 10px 24px rgba(12, 42, 85, .26); transition: opacity .35s ease, transform .35s ease; }
.dc-tag::after { content: ""; position: absolute; right: -5px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 2px; background: #133c75; transform: rotate(45deg); }
.dc-fab.dc-mini .dc-tag { opacity: 0; transform: translateX(14px); pointer-events: none; } /* phones: the label goes after a few seconds, the logo stays */

/* the first time in a visit: from outside the screen, the logo first, then its label */
.dc-fab.dc-enter { animation: dc-slide .85s cubic-bezier(.2, 1.3, .36, 1) .9s both; }
.dc-fab.dc-enter .dc-tag { animation: dc-fade .45s ease-out 1.65s both; }
@keyframes dc-slide { from { transform: translateX(calc(100% + 70px)); } to { transform: none; } }
@keyframes dc-fade { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes dc-breathe { 0%, 100% { transform: scale(.97); opacity: .55; } 50% { transform: scale(1.03); opacity: .9; } }
@keyframes dc-ping { 0% { box-shadow: 0 0 0 0 rgba(34, 180, 95, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(34, 180, 95, 0); } }

/* ---------- the window ---------- */
.dc-panel { position: fixed; z-index: 70; inset: 0; display: flex; flex-direction: column; background: #fff; color: var(--ink, #1d2738); font-size: 1rem;
  visibility: hidden; opacity: 0; transform: translateY(100%);
  transition: transform .44s cubic-bezier(.16, 1, .3, 1), opacity .3s ease, visibility 0s linear .44s; }
.dc-panel.dc-open { visibility: visible; opacity: 1; transform: none; transition: transform .44s cubic-bezier(.16, 1, .3, 1), opacity .22s ease, visibility 0s; }
@media (min-width: 720px) {
  .dc-panel { inset: auto 24px 24px auto; width: 400px; height: min(660px, calc(100vh - 48px)); border-radius: 22px; overflow: hidden; transform: translateX(calc(100% + 56px));
    box-shadow: 0 30px 70px rgba(12, 42, 85, .3), 0 6px 18px rgba(12, 42, 85, .16); }
}
html.dc-on { overflow: hidden; }
@media (min-width: 720px) { html.dc-on { overflow: auto; } }

.dc-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; color: #fff;
  background: radial-gradient(130% 160% at 0% 0%, #2b5ca3 0%, #133c75 52%, #0c2a55 100%); }
.dc-av { position: relative; flex: none; width: 46px; height: 46px; }
.dc-av .dc-disc { border-width: 2px; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(140deg, #a9c3ea, #fff 50%, #f3b0b3) border-box;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .12), 0 0 20px 5px rgba(130, 175, 240, .45); }
.dc-av .dc-disc img { inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
.dc-av .dc-live { top: -2px; right: -2px; width: 12px; height: 12px; border-width: 2px; border-color: #133c75; }
.dc-ht { flex: 1 1 auto; min-width: 0; }
.dc-ht b { display: block; font-size: 1.05rem; font-weight: 750; letter-spacing: -.005em; }
.dc-ht span { display: block; margin-top: 3px; font-size: .85rem; line-height: 1.4; color: #c9d7ee; }
.dc-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; line-height: 1; font-family: inherit; cursor: pointer; transition: background .2s; }
.dc-x:hover { background: rgba(255, 255, 255, .24); }
.dc-new { flex: none; height: 34px; padding: 0 13px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff;
  font-weight: 700; font-size: .85rem; font-family: inherit; cursor: pointer; transition: background .2s; }
.dc-new:hover { background: rgba(255, 255, 255, .2); }
.dc-new[hidden] { display: none; }

.dc-body { flex: 1 1 auto; overflow-y: auto; padding: 18px 14px 18px 12px; background: linear-gradient(180deg, #f8f4ed 0%, #f4efe5 100%); overscroll-behavior: contain; }
.dc-log { display: flex; flex-direction: column; gap: 10px; }
.dc-m { position: relative; max-width: 80%; padding: 10px 14px; border-radius: 18px; line-height: 1.45; font-size: .98rem; white-space: pre-wrap; overflow-wrap: anywhere;
  animation: dc-pop .28s ease-out both; }
.dc-b { align-self: flex-start; margin-left: 36px; background: #fff; border: 1px solid #ece4d6; border-bottom-left-radius: 6px; box-shadow: 0 2px 8px rgba(12, 42, 85, .06); }
.dc-u { align-self: flex-end; background: linear-gradient(135deg, #22579f 0%, #133c75 100%); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 4px 12px rgba(19, 60, 117, .22); }
/* the assistant's little logo beside the first of its messages in a row */
.dc-log > .dc-b:first-child::before, .dc-log > :not(.dc-b) + .dc-b::before, .dc-intro::before { content: ""; position: absolute; left: -36px; bottom: 0; width: 28px; height: 28px; border-radius: 50%;
  background: #fff var(--dc-emblem, none) center / 66% no-repeat; box-shadow: 0 0 0 1.5px rgba(19, 60, 117, .16), 0 0 10px 2px rgba(61, 104, 168, .22); }
@keyframes dc-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dc-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.dc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa6b8; animation: dc-dot 1.1s infinite ease-in-out; }
.dc-typing i:nth-child(2) { animation-delay: .15s; } .dc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dc-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* the form: the patient's name, a phone, the area (and a field people never see) */
.dc-form { position: relative; display: grid; gap: 12px; padding: 2px; }
.dc-form[hidden] { display: none; }
.dc-intro { justify-self: start; margin: 0 0 4px 36px; }
/* the details given last time, kept on this device: one click to start, «Αλλαγή» to change them */
.dc-me { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid #e2dccf; border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(12, 42, 85, .05); }
.dc-me[hidden], .dc-fields[hidden] { display: none; }
.dc-me-r { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-bottom: 1px solid #f1ece2; font-size: .95rem; }
.dc-me-r span { color: var(--muted, #586579); font-size: .86rem; }
.dc-me-r b { font-weight: 650; color: var(--ink, #1d2738); overflow-wrap: anywhere; }
.dc-change { justify-self: end; margin-top: 6px; padding: 6px 12px; border: 1.5px solid #dfe5ee; border-radius: 10px; background: #fff; color: var(--navy, #133c75);
  font-weight: 700; font-size: .88rem; font-family: inherit; cursor: pointer; }
.dc-change:hover { border-color: var(--navy, #133c75); }
.dc-fields { display: grid; gap: 12px; }
.dc-forgetme { justify-self: start; padding: 0; border: 0; background: none; color: var(--muted, #586579); font-size: .82rem; font-family: inherit; text-decoration: underline; cursor: pointer; }
.dc-forgetme[hidden] { display: none; }
.dc-f { display: grid; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--navy, #133c75); }
.dc-f input { width: 100%; min-height: 50px; padding: 11px 15px; border: 1.5px solid #e2dccf; border-radius: 14px; background: #fff; color: var(--ink, #1d2738);
  font-weight: 400; font-size: 1rem; font-family: inherit; box-shadow: 0 1px 2px rgba(12, 42, 85, .04); transition: border-color .2s, box-shadow .2s; }
.dc-f input:focus { border-color: #3d68a8; outline: none; box-shadow: 0 0 0 4px rgba(61, 104, 168, .16); }
.dc-f input[aria-invalid="true"] { border-color: var(--red, #b3181e); box-shadow: 0 0 0 4px rgba(179, 24, 30, .1); }
.dc-trap { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important;
  overflow: hidden !important; clip-path: inset(50%) !important; opacity: 0 !important; } /* the field people never see (bots fill it) */
.dc-err { margin: 0; color: var(--red, #b3181e); font-size: .9rem; font-weight: 600; }
.dc-err:empty { display: none; }
.dc-go, .dc-yes { min-height: 50px; padding: 10px 18px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #c8222a 0%, #b3181e 60%, #9d141a 100%); color: #fff;
  font-weight: 750; font-size: 1rem; font-family: inherit; cursor: pointer; box-shadow: 0 8px 18px rgba(179, 24, 30, .26); transition: transform .15s, box-shadow .2s; }
.dc-go:hover, .dc-yes:hover { box-shadow: 0 10px 22px rgba(179, 24, 30, .34); }
.dc-go:active, .dc-yes:active { transform: translateY(1px); }
.dc-go:disabled, .dc-yes:disabled, .dc-no:disabled, .dc-send:disabled { opacity: .6; cursor: default; box-shadow: none; }
.dc-priv { margin: 2px 0 0; font-size: .8rem; line-height: 1.45; color: var(--muted, #586579); }

/* writing */
.dc-foot { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #ece4d6; background: #fff; }
.dc-foot[hidden] { display: none; }
.dc-foot textarea { flex: 1 1 auto; min-width: 0; min-height: 46px; max-height: 120px; padding: 12px 16px; border: 1.5px solid #e2dccf; border-radius: 23px; background: #fbfaf7;
  font-weight: 400; font-size: 1rem; line-height: 1.4; font-family: inherit; color: var(--ink, #1d2738); resize: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.dc-foot textarea:focus { border-color: #3d68a8; outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(61, 104, 168, .14); }
.dc-send { flex: none; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #c8222a 0%, #b3181e 60%, #9d141a 100%); box-shadow: 0 6px 14px rgba(179, 24, 30, .3); transition: transform .15s; }
.dc-send svg { width: 20px; height: 20px; margin-left: 2px; }
.dc-send:active { transform: scale(.95); }
.dc-note { margin: 0; padding: 6px 14px 10px; background: #fff; font-size: .75rem; color: var(--muted, #586579); text-align: center; }

/* the cards: the offer of a call, an emergency */
.dc-card { align-self: stretch; display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #ece4d6; box-shadow: 0 4px 14px rgba(12, 42, 85, .07);
  animation: dc-pop .3s ease-out both; }
.dc-offer { grid-template-columns: 1fr 1fr; }
.dc-no { min-height: 50px; padding: 10px 14px; border: 1.5px solid #dfe5ee; border-radius: 14px; background: #fff; color: var(--navy, #133c75); font-weight: 700; font-size: 1rem; font-family: inherit; cursor: pointer; }
.dc-no:hover { border-color: var(--navy, #133c75); }
.dc-er { background: #fff6f6; border-color: #f0c4c6; }
.dc-er b { color: var(--red-d, #8f1217); font-size: 1.05rem; line-height: 1.35; }
.dc-row { display: flex; gap: 10px; }
.dc-tel { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 14px; color: #fff; font-weight: 800; font-size: 1.1rem; font-family: inherit;
  text-decoration: none; background: linear-gradient(135deg, #c8222a 0%, #b3181e 60%, #9d141a 100%); box-shadow: 0 8px 18px rgba(179, 24, 30, .26); }
.dc-tel:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .dc-fab, .dc-panel, .dc-tag, .dc-orb { transition: opacity .2s, visibility 0s !important; transform: none !important; animation: none !important; }
  .dc-orb::before, .dc-live, .dc-m, .dc-card, .dc-typing i { animation: none !important; }
}
