/* The "لنبدأ حواراً" conversation — the WASLAN contact chat's layout, in this site's navy and teal. */
.bot-chat{direction:rtl;min-width:0;display:flex;flex-direction:column;background:linear-gradient(145deg,#142840,#0e2035);border:1px solid rgba(180,211,231,.17);border-radius:28px;box-shadow:0 26px 80px rgba(0,0,0,.2);overflow:hidden;text-align:right}
.bot-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px;border-bottom:1px solid var(--line);background:rgba(8,21,37,.35)}
.bot-agent{display:flex;align-items:center;gap:13px;min-width:0}
.bot-agent>div{min-width:0}
.bot-avatar{width:60px;height:60px;flex:0 0 60px;border-radius:19px;background:#081525;border:1px solid rgba(83,212,207,.28);display:grid;place-items:center;overflow:hidden}
.bot-avatar img{width:100%;height:100%;object-fit:contain}
.bot-agent b,.bot-agent small{display:block}
.bot-agent b{font-size:20px;font-weight:800;color:var(--ink);line-height:1.35}
.bot-agent small{display:flex;align-items:center;gap:7px;margin-top:4px;font-size:14px;color:var(--muted)}
.bot-online{width:8px;height:8px;flex:none;border-radius:50%;background:var(--teal);box-shadow:0 0 0 3px rgba(83,212,207,.2)}
.bot-restart{width:52px;height:52px;flex:0 0 52px;border:1px solid var(--line);border-radius:17px;background:rgba(83,212,207,.1);color:var(--teal);display:grid;place-items:center;cursor:pointer;transition:background .2s,border-color .2s}
.bot-restart:hover{background:rgba(83,212,207,.18);border-color:rgba(83,212,207,.4)}
.bot-restart svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.bot-body{height:360px;padding:22px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;background:linear-gradient(180deg,rgba(8,21,37,.25),rgba(8,21,37,.5));scrollbar-width:thin;scrollbar-color:rgba(83,212,207,.4) transparent}
.bot-msg{display:flex;align-items:flex-end;gap:10px;margin-bottom:16px}
.bot-msg img{width:40px;height:40px;flex:0 0 40px;border-radius:13px;background:#081525;border:1px solid rgba(83,212,207,.22);object-fit:contain}
.bot-msg>div{max-width:82%}
.bot-bubble{padding:13px 16px;border:1px solid rgba(180,211,231,.16);border-radius:18px 18px 6px 18px;background:#183350;color:var(--ink);font-size:16px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-line}
.bot-msg time{display:block;margin-top:5px;font-size:12px;color:var(--muted)}
.user-msg{flex-direction:row-reverse;justify-content:flex-start}
.user-msg>div{max-width:78%}
.user-msg .bot-bubble{border-color:transparent;border-radius:18px 18px 18px 6px;background:var(--teal);color:#081525;font-weight:600}
.user-msg time{text-align:left}
.bot-typing{display:inline-flex;align-items:center;gap:4px;padding:14px 16px;border:1px solid rgba(180,211,231,.16);border-radius:18px;background:#183350}
.bot-typing i{width:6px;height:6px;border-radius:50%;background:var(--teal);animation:botTyping 1s infinite ease-in-out}
.bot-typing i:nth-child(2){animation-delay:.15s}
.bot-typing i:nth-child(3){animation-delay:.3s}
@keyframes botTyping{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-3px);opacity:1}}

.bot-choices{display:flex;flex-wrap:wrap;gap:8px;padding:14px 18px 4px;border-top:1px solid var(--line);background:rgba(8,21,37,.35)}
.bot-choices[hidden]{display:none}
.bot-choices button{padding:10px 16px;border:1px solid rgba(83,212,207,.35);border-radius:999px;background:rgba(83,212,207,.08);color:var(--ink);font:700 15px var(--font);cursor:pointer;transition:background .2s,border-color .2s,transform .2s}
.bot-choices button:hover{background:rgba(83,212,207,.2);border-color:var(--teal);transform:translateY(-1px)}

.bot-composer[hidden]{display:none}
.bot-send{width:56px;height:56px;flex:0 0 56px;border:0;border-radius:17px;background:var(--teal);color:#081525;display:grid;place-items:center;cursor:pointer;box-shadow:0 10px 26px rgba(83,212,207,.22);transition:transform .2s,box-shadow .2s,opacity .2s}
.bot-send:hover:not(:disabled){box-shadow:0 14px 32px rgba(83,212,207,.32)}
.bot-send:hover:not(:disabled){transform:translateY(-1px)}
.bot-send:disabled{opacity:.45;cursor:default}
.bot-send svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.bot-honeypot{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);opacity:0;pointer-events:none}
.bot-done{padding:14px 18px 16px;border-top:1px solid var(--line);background:rgba(8,21,37,.35)}
.bot-done[hidden]{display:none}
.bot-done button{width:100%;min-height:54px;display:flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:17px;background:var(--teal);color:#081525;font:800 16px var(--font);cursor:pointer;box-shadow:0 10px 26px rgba(83,212,207,.2);transition:transform .2s,box-shadow .2s}
.bot-done button:hover{transform:translateY(-1px);box-shadow:0 14px 32px rgba(83,212,207,.3)}
.bot-done svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.bot-note{margin:0;padding:0 20px 16px;background:rgba(8,21,37,.35);color:var(--muted);font-size:12.5px;line-height:1.6}

@media(max-width:560px){
  .bot-head{padding:14px}
  .bot-avatar{width:50px;height:50px;flex-basis:50px;border-radius:16px}
  .bot-agent b{font-size:17px}
  .bot-agent small{font-size:13px}
  .bot-restart{width:46px;height:46px;flex-basis:46px;border-radius:15px}
  .bot-body{height:340px;padding:16px 12px}
  .bot-msg{gap:7px}
  .bot-msg img{width:34px;height:34px;flex-basis:34px;border-radius:11px}
  .bot-msg>div{max-width:85%}
  .bot-bubble{font-size:15px;padding:12px 14px}
  .bot-choices{padding:12px 11px 2px}
  .bot-send{width:52px;height:52px;flex-basis:52px}
}

/* The input bar: the answer field (with the country code on the phone question), skip and send */
.bot-composer{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;padding:14px 18px 16px;border-top:1px solid var(--line);background:rgba(8,21,37,.35)}
.bot-composer[hidden]{display:none}
.bot-choices:not([hidden])+.bot-composer{border-top:0}
.bot-error{flex:1 0 100%;display:flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid rgba(255,138,138,.28);border-radius:12px;background:rgba(255,107,107,.08);color:#ffb0b0;font-size:13.5px;line-height:1.5}
.bot-error::before{content:"!";flex:none;width:18px;height:18px;border-radius:50%;background:#ff8a8a;color:#081525;display:grid;place-items:center;font:800 12px/1 var(--font)}
.bot-error[hidden]{display:none}
.bot-field{flex:1;min-width:0;display:flex;align-items:stretch;min-height:54px;border:1px solid rgba(180,211,231,.22);border-radius:17px;background:#0c1d30;overflow:hidden;transition:border-color .2s,box-shadow .2s}
.bot-field:focus-within{border-color:var(--teal);box-shadow:0 0 0 4px rgba(83,212,207,.14)}
.bot-field textarea{flex:1;min-width:0;min-height:52px;max-height:140px;padding:14px 17px;border:0;outline:none;background:transparent;color:var(--ink);font:500 16px/1.6 var(--font);resize:none}
.bot-field textarea::placeholder{color:#7f93a6}
.bot-field textarea:disabled{opacity:.6}
/* Phone: the code on the left of the number, as a phone number is read */
.bot-field.is-phone{direction:ltr}
.bot-field.is-phone textarea{text-align:left;letter-spacing:.04em}
.bot-country{flex:0 0 auto;appearance:none;-webkit-appearance:none;margin:0;padding:0 30px 0 14px;border:0;border-inline-end:1px solid rgba(180,211,231,.18);outline:none;background:rgba(83,212,207,.07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2353d4cf' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center/14px;color:var(--ink);font:700 14px var(--font);direction:ltr;cursor:pointer}
.bot-country:hover{background-color:rgba(83,212,207,.13)}
.bot-country:focus-visible{background-color:rgba(83,212,207,.16)}
.bot-country option{background:#0c1d30;color:var(--ink);direction:rtl}
.bot-country[hidden]{display:none}
.bot-option{flex:1;min-width:0;appearance:none;-webkit-appearance:none;margin:0;padding:0 17px 0 44px;border:0;outline:none;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2353d4cf' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 17px center/16px;color:var(--ink);font:600 16px var(--font);cursor:pointer}
.bot-option:invalid,.bot-option:has(option:checked:disabled){color:#7f93a6}
.bot-option option{background:#0c1d30;color:var(--ink)}
.bot-option[hidden],.bot-field textarea[hidden]{display:none}
@media(max-width:560px){
  .bot-composer{gap:8px;padding:11px}
  .bot-country{padding:0 24px 0 9px;background-position:right 6px center;font-size:13px}
}
/* The section: one card, the chat on the left and WASLAN's assistant on the right */
.contact-card{position:relative;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.75fr);align-items:stretch;direction:ltr;padding:12px;border:1px solid rgba(180,211,231,.14);border-radius:34px;background:linear-gradient(150deg,rgba(23,46,72,.72),rgba(9,23,39,.78));box-shadow:0 30px 90px rgba(0,0,0,.28);overflow:hidden;isolation:isolate}
.contact-card:before{content:"";position:absolute;z-index:-1;right:-8%;top:-10%;width:52%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(83,212,207,.16),rgba(87,149,220,.06) 45%,transparent 70%);pointer-events:none}
.contact-card .bot-chat{border-radius:24px;box-shadow:none;border-color:rgba(180,211,231,.12)}
/* The messages take whatever height the card has, so nothing is left empty under the note */
.contact-card .bot-body{flex:1 1 0;height:auto;min-height:340px}
.contact-assistant{direction:rtl;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:26px clamp(20px,2.6vw,38px) 30px;text-align:center}
.assistant-visual{position:relative;width:100%;display:flex;justify-content:center}
.assistant-visual:after{content:"";position:absolute;z-index:-1;left:50%;bottom:2px;width:60%;height:26px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(ellipse,rgba(0,0,0,.5),transparent 70%)}
.assistant-visual .teal-robot{display:block;width:auto!important;height:clamp(230px,26vw,320px);aspect-ratio:407/587}
.assistant-visual .teal-robot img{height:100%}
.assistant-label{margin-top:8px;padding:5px 12px;border:1px solid rgba(83,212,207,.3);border-radius:999px;background:rgba(83,212,207,.08);color:var(--teal);font-size:12.5px;font-weight:700}
.contact-assistant h3{margin:0;font:800 clamp(22px,2vw,27px)/1.3 var(--font);color:var(--ink)}
.contact-assistant p{max-width:300px;margin:0;color:var(--muted);font-size:15.5px;line-height:1.75}
.assistant-points{width:100%;max-width:300px;margin:8px 0 0;padding:14px 0 0;border-top:1px solid var(--line);list-style:none;display:grid;gap:10px;text-align:right}
.assistant-points li{display:flex;align-items:center;gap:10px;color:#d4e0e8;font-size:15px;line-height:1.5}
.assistant-points li:before{content:"";flex:none;width:22px;height:22px;border-radius:50%;background:rgba(83,212,207,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2353d4cf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") no-repeat center/13px}
@media(max-width:900px){
  .contact-card{grid-template-columns:1fr;direction:rtl;padding:10px;border-radius:28px}
  .contact-assistant{order:-1;padding:20px 16px 18px}
  .assistant-visual .teal-robot{height:200px}
  .assistant-points{display:none}
  .contact-card .bot-body{flex:none;height:360px;min-height:0}
}
@media(prefers-reduced-motion:reduce){.bot-typing i{animation:none}}

/* The chat as a popup on the inner pages. */
.chat-popup{width:min(560px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:0;border:0;background:transparent;color:inherit;overflow:visible}
.chat-popup::backdrop{background:rgba(3,10,19,.72);backdrop-filter:blur(4px)}
.chat-popup[open]{animation:chatPopupIn .22s ease-out}
@keyframes chatPopupIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.chat-popup .bot-chat{max-height:calc(100dvh - 24px);box-shadow:0 30px 90px rgba(0,0,0,.5)}
.chat-popup .bot-body{flex:1 1 auto;height:min(420px,calc(100dvh - 280px));min-height:220px}
.chat-popup .bot-head{padding-left:70px}
.chat-popup-close{position:absolute;z-index:2;top:25px;left:20px;width:38px;height:38px;display:grid;place-items:center;border:1px solid rgba(180,211,231,.2);border-radius:12px;background:rgba(8,21,37,.6);color:#e8f2f6;cursor:pointer;transition:border-color .2s,background .2s}
.chat-popup-close:hover{border-color:#53d4cf;background:rgba(83,212,207,.12)}
.chat-popup-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
html.chat-popup-open{overflow:hidden}
@media(prefers-reduced-motion:reduce){.chat-popup[open]{animation:none}}
