/* ========================================================
   JABERI PLASTIC SURGERY — SHARED SITE COMPONENTS CSS
   Covers: Sticky CTAs, Unified Footer, Chatbot
   ======================================================== */

/* --------------------------------------------------------
   CALENDAR CONSULT BUBBLE — bottom-left circle icon
   -------------------------------------------------------- */
#sc-cal-bubble {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9000;
    font-family: 'Outfit', sans-serif;
}

.sc-cal-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #19253D;
    border: 2px solid #C8A86A;
    color: #C8A86A;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(25, 37, 61, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sc-cal-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 32px rgba(200, 168, 106, 0.35);
    background: #22304d;
    color: #C8A86A;
}

.sc-cal-btn i {
    font-size: 22px;
}

/* --------------------------------------------------------
   STICKY RIGHT CTA — Next Virtual Consultation card
   -------------------------------------------------------- */
.sc-cta-right {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    pointer-events: none;
}

.sc-cta-right-card {
    background: rgba(25, 37, 61, 0.96);
    border: 1px solid rgba(200, 168, 106, 0.35);
    border-radius: 14px 0 0 14px;
    padding: 25px 22px 19px;
    max-width: 269px;
    backdrop-filter: blur(12px);
    box-shadow: -4px 0 32px rgba(25, 37, 61, 0.3);
    pointer-events: all;
    transition: box-shadow 0.3s ease;
}

.sc-cta-right-card:hover {
    box-shadow: -8px 0 40px rgba(200, 168, 106, 0.25);
}

.sc-cta-right-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.sc-availability-pulse {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #34d399;
    flex-shrink: 0;
    animation: scPulseGreen 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
}

@keyframes scPulseGreen {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(52, 211, 153, 0.5); }
    50% { opacity: 0.5; box-shadow: 0 0 12px rgba(52, 211, 153, 0.9); }
}

.sc-availability-label {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    line-height: 1.2;
    animation: scGoldShimmer 2.5s ease-in-out infinite;
    color: #C8A86A;
}

@keyframes scGoldShimmer {
    0%, 100% { color: #C8A86A; text-shadow: 0 0 6px rgba(200, 168, 106, 0.4); }
    50% { color: #e8d5a8; text-shadow: 0 0 14px rgba(200, 168, 106, 0.8); }
}

.sc-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 13px;
}

.sc-slot {
    display: block;
    text-align: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #C8A86A, #b8945d);
    color: #19253D;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(200, 168, 106, 0.3);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.sc-slot:hover {
    transform: translateX(-2px);
    filter: brightness(1.1);
}

.sc-cta-right-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    letter-spacing: 0.05em;
    margin: 0;
}

/* --------------------------------------------------------
   UNIFIED FOOTER OVERRIDES
   -------------------------------------------------------- */
footer.footer .sc-footer-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

footer.footer .sc-footer-form input,
footer.footer .sc-footer-form select {
    width: 100%;
    padding: 9px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
}

footer.footer .sc-footer-form input:focus,
footer.footer .sc-footer-form select:focus {
    border-color: #C8A86A;
    background: rgba(255, 255, 255, 0.1);
}

footer.footer .sc-footer-form select option {
    background: #19253D;
    color: white;
}

footer.footer .sc-footer-form button {
    padding: 10px 18px;
    background: #C8A86A;
    color: #19253D;
    border: none;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

footer.footer .sc-footer-form button:hover {
    background: #b8945d;
    transform: translateY(-1px);
}

/* --------------------------------------------------------
   CHATBOT
   -------------------------------------------------------- */
#sc-chat {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Outfit', sans-serif;
}

.sc-chat-bubble {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #19253D;
    border: 2px solid #C8A86A;
    color: #C8A86A;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(25, 37, 61, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
    margin-left: auto;
}

.sc-chat-bubble:hover,
.sc-chat-bubble.active {
    transform: scale(1.08);
    box-shadow: 0 6px 32px rgba(200, 168, 106, 0.35);
    background: #22304d;
}

.sc-chat-bubble i {
    font-size: 22px;
}

.sc-chat-notification {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.sc-chat-panel {
    position: absolute;
    bottom: 68px;
    right: 0;
    width: 340px;
    max-height: 500px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(25, 37, 61, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    border: 1px solid rgba(25, 37, 61, 0.08);
}

.sc-chat-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.sc-chat-head {
    background: #19253D;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sc-chat-head-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.sc-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #C8A86A;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #19253D;
    font-size: 16px;
    flex-shrink: 0;
}

.sc-chat-head-info span {
    font-size: 14px;
    font-weight: 600;
    display: block;
    line-height: 1.2;
}

.sc-chat-head-info small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
}

.sc-chat-head-info small::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    display: inline-block;
}

#sc-chat-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.2s ease;
}

#sc-chat-close:hover {
    color: white;
}

.sc-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f9f8f6;
    scroll-behavior: smooth;
}

.sc-chat-messages::-webkit-scrollbar { width: 4px; }
.sc-chat-messages::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.sc-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #1a1a1a;
}

.sc-msg p { margin: 0 0 6px; }
.sc-msg p:last-child { margin: 0; }

.sc-msg-bot {
    background: white;
    border-radius: 4px 12px 12px 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    align-self: flex-start;
}

.sc-msg-user {
    background: #19253D;
    color: white;
    border-radius: 12px 4px 12px 12px;
    align-self: flex-end;
}

.sc-msg-user p { color: white; }

.sc-disclaimer {
    font-size: 11px !important;
    color: #888 !important;
    border-top: 1px solid #f0f0f0;
    padding-top: 6px;
    margin-top: 6px !important;
}

.sc-chat-quickreplies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 4px 0;
}

.sc-qr {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1.5px solid #C8A86A;
    background: white;
    color: #19253D;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.sc-qr:hover {
    background: #19253D;
    color: #C8A86A;
    border-color: #19253D;
}

.sc-chat-input-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-top: 1px solid #e8e4e0;
    background: white;
    gap: 8px;
    flex-shrink: 0;
}

#sc-chat-input {
    flex: 1;
    border: 1px solid #e0dcd6;
    border-radius: 999px;
    padding: 9px 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    outline: none;
    color: #19253D;
    background: #f9f8f6;
    transition: border-color 0.2s ease;
}

#sc-chat-input:focus {
    border-color: #C8A86A;
    background: white;
}

#sc-chat-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #19253D;
    border: none;
    color: #C8A86A;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

#sc-chat-send:hover {
    background: #C8A86A;
    color: #19253D;
    transform: scale(1.05);
}

/* --------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------- */
@media (max-width: 900px) {
    .sc-cta-right { display: none; }
}

@media (max-width: 640px) {
    .sc-cta-left { display: none; }
    #sc-chat { bottom: 16px; right: 16px; }
    .sc-chat-panel { width: calc(100vw - 32px); right: 0; }
}

/* --------------------------------------------------------
   FLOATING SIDEBAR CTA — journey/procedure/blog pages
   -------------------------------------------------------- */

/* Card burst on stage change */
@keyframes sc-fcta-card-burst {
    0%   { transform: scale(1);    box-shadow: 0 12px 40px rgba(0,0,0,0.18); border-color: rgba(200,168,106,0.25); }
    18%  { transform: scale(1.09); box-shadow: 0 0 0 7px rgba(200,168,106,0.55), 0 12px 40px rgba(0,0,0,0.28); border-color: rgba(200,168,106,1); }
    50%  { transform: scale(1.03); box-shadow: 0 0 0 18px rgba(200,168,106,0.1), 0 12px 40px rgba(0,0,0,0.2);  border-color: rgba(200,168,106,0.5); }
    100% { transform: scale(1);    box-shadow: 0 12px 40px rgba(0,0,0,0.18); border-color: rgba(200,168,106,0.25); }
}

/* Heading pop-in on stage change */
@keyframes sc-fcta-textpop {
    0%   { opacity: 0; transform: scale(0.65) translateY(12px); }
    60%  { opacity: 1; transform: scale(1.08) translateY(-3px); }
    100% { opacity: 1; transform: scale(1)    translateY(0); }
}

.sc-floating-cta {
    position: absolute;
    left: 18px;
    z-index: 901;
    width: 269px;
    background: linear-gradient(160deg, #19253D 0%, #2a3a5c 100%);
    border-radius: 19px;
    padding: 30px 25px;
    text-align: center;
    border: 1px solid rgba(200, 168, 106, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    will-change: top;
    pointer-events: all;
}

.sc-floating-cta.sc-fcta-burst {
    animation: sc-fcta-card-burst 0.75s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.sc-floating-cta h3 {
    font-family: 'Fraunces', serif;
    font-size: 21px;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.25;
    font-weight: 700;
}

.sc-floating-cta h3.sc-fcta-textpop {
    display: inline-block;
    animation: sc-fcta-textpop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.sc-floating-cta p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin: 0 0 19px;
}

.sc-floating-cta .sc-fcta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 14px;
    border-radius: 11px;
    background: linear-gradient(135deg, #C8A86A, #b8945d);
    color: #19253D;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(200, 168, 106, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sc-floating-cta .sc-fcta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(200, 168, 106, 0.4);
}

.sc-floating-cta .sc-fcta-phone {
    display: block;
    margin-top: 14px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}

.sc-floating-cta .sc-fcta-phone a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.sc-floating-cta .sc-fcta-phone a:hover {
    color: #C8A86A;
}

@media (max-width: 1440px) {
    .sc-floating-cta { display: none; }
}
