﻿/* ============================
   CONTACT PAGE V7 — Clean Light Glass
   Matches design system (global.css)
   ============================ */

/* ── Page shell ── */
.contact-page {
    min-height: 100vh;
    background:
        linear-gradient(rgba(255, 255, 255, .40), rgba(255, 255, 255, .40)),
        url('../images/contact/contact-us-background.png') center top / cover no-repeat,
        var(--bg);
    position: relative;
    overflow: hidden;
}

.contact-orb-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 110, 247, .09) 0%, transparent 70%);
    top: -200px;
    right: -150px;
    pointer-events: none;
    z-index: 0;
}

.contact-orb-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 80, 255, .06) 0%, transparent 70%);
    bottom: 0;
    left: -150px;
    pointer-events: none;
    z-index: 0;
}

.contact-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.contact-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 80% 5%, rgba(79, 110, 247, .06), transparent),
        radial-gradient(ellipse 50% 70% at 5% 85%, rgba(123, 149, 255, .05), transparent);
}

/* ── Hero ── */
.contact-hero {
    text-align: center;
    padding: 120px 24px 8px;
    position: relative;
    z-index: 1;
}

.contact-hero h1 {
    font-family: var(--ff-serif);
    font-size: clamp(3rem, 7vw, 5rem);
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.05;
    letter-spacing: -.025em;
}

.contact-hero .hero-sub {
    font-size: 1.05rem;
    color: #2d3147;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Main Layout: column — chat on top, pills row beneath ── */
.contact-layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 44px;
    max-width: 1280px;
    width: 68vw;
    margin: 32px auto 80px;
}

/* ══════════════════════════════════════
   CHAT WINDOW
   ══════════════════════════════════════ */
.contact-chat {
    width: 100%;
    background: rgba(255, 255, 255, .6);
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: var(--radius-xl);
    box-shadow:
        0 0 0 .5px rgba(255, 255, 255, .6),
        0 2px 8px rgba(0, 0, 0, .04),
        0 8px 40px rgba(0, 0, 0, .07),
        inset 0 1px 0 rgba(255, 255, 255, .8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 480px;
    min-height: 480px;
    position: relative;
}

/* ── Chat Topbar ── */
.chat-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    background: rgba(255, 255, 255, .4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.chat-topbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, .8);
    box-shadow: 0 2px 8px rgba(79, 110, 247, .2), 0 0 0 3px rgba(79, 110, 247, .06);
    transition: all .4s var(--ease);
}

.chat-topbar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s var(--ease);
}

.chat-topbar-avatar:hover img {
    transform: scale(1.08);
}

.chat-topbar-avatar.morphing {
    animation: avMorph .45s var(--ease-bounce);
}

@keyframes avMorph {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(.6) rotate(-8deg);
        opacity: .4;
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.chat-topbar-info {
    flex: 1;
}

.chat-topbar-name {
    font-size: .84rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    transition: color .4s var(--ease);
}

.chat-topbar-role {
    font-size: .64rem;
    color: var(--text-muted);
    transition: color .3s var(--ease);
}

.chat-topbar-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    transition: all .4s ease;
}

.chat-status-dot:not(.offline) {
    animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, .4);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0);
    }
}

.chat-status-dot.offline {
    background: #B0B5CC;
    box-shadow: none;
    animation: none;
}

.chat-topbar-status span:last-child {
    font-size: .64rem;
    color: var(--text-muted);
}

/* ── Messages area ── */
.chat-messages {
    flex: 1;
    padding: 20px 20px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 110, 247, .15) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(79, 110, 247, .15);
    border-radius: 3px;
}

/* ── Message rows ── */
.chat-msg-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 82%;
    animation: msgIn .3s var(--ease-bounce);
}

.chat-msg-row--bot {
    align-self: flex-start;
}

.chat-msg-row--user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

@keyframes msgIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.97);
    }

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

.chat-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, .7);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .07);
}

.chat-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Bubbles ── */
.chat-msg-bubble {
    padding: 11px 16px;
    border-radius: 18px;
    font-size: .86rem;
    line-height: 1.6;
    color: var(--text);
}

.chat-msg-row--bot .chat-msg-bubble {
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .5);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
    border-bottom-left-radius: 5px;
    color: var(--text);
}

.chat-msg-row--user .chat-msg-bubble {
    background: var(--gradient-1);
    color: #fff;
    border-bottom-right-radius: 5px;
    box-shadow: 0 4px 16px rgba(79, 110, 247, .22);
}

.chat-msg-sender {
    font-size: .58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 2px;
}

/* ── Quick Reply Buttons ── */
.chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
    align-self: flex-start;
    margin-left: 38px;
    animation: msgIn .35s var(--ease-bounce);
}

.chat-quick-btn {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(79, 110, 247, .2);
    background: rgba(79, 110, 247, .05);
    color: var(--accent);
    font-family: var(--ff);
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s var(--ease);
}

.chat-quick-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79, 110, 247, .25);
}

.chat-quick-btn:active {
    transform: scale(.95);
}

/* ── Typing indicator ── */
.chat-typing {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    align-self: flex-start;
    animation: msgIn .2s var(--ease);
}

.chat-typing-dots {
    display: flex;
    gap: 4px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, .6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 16px;
    border-bottom-left-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
    width: fit-content;
}

.chat-typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--accent);
    opacity: .4;
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.chat-typing-dots span:nth-child(2) {
    animation-delay: .2s;
}

.chat-typing-dots span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: .4;
    }

    30% {
        transform: translateY(-4px);
        opacity: .8;
    }
}

/* ── Input Bar ── */
.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(0, 0, 0, .05);
    background: rgba(255, 255, 255, .35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.chat-input {
    flex: 1;
    min-height: 40px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 18px;
    color: var(--text);
    font-family: var(--ff);
    font-size: .85rem;
    outline: none;
    transition: all .3s var(--ease);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03);
}

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

.chat-input:focus {
    background: rgba(255, 255, 255, .85);
    border-color: rgba(79, 110, 247, .3);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, .06), inset 0 1px 2px rgba(0, 0, 0, .02);
}

.chat-input:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.chat-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(79, 110, 247, .25);
    transition: all .25s var(--ease-bounce);
}

.chat-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(79, 110, 247, .4);
}

.chat-send-btn:active {
    transform: scale(.92);
}

.chat-send-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.chat-send-btn svg {
    width: 18px;
    height: 18px;
}

/* -- Pill row beneath chat -- */
.contact-direct-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* center heading + pills */
    gap: 16px;
    width: 100%;
}

.contact-direct-heading {
    font-family: var(--ff-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
    line-height: 1.1;
    text-align: center;
}

.contact-sidebar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    /* row centered */
    gap: 10px;
    width: 100%;
}

.contact-sidebar-heading {
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-muted);
    padding: 0 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Medium pill chip ── */
.contact-opt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .09);
    border-radius: 9999px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.contact-opt:hover {
    background: #f5f5f7;
    border-color: rgba(0, 0, 0, .14);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
}

.contact-opt:active {
    background: #ebebed;
    transform: scale(.98);
    transition-duration: .06s;
}

/* Per-channel faintest colour hint on hover */
.contact-opt--phone:hover {
    background: #f0f3ff;
    border-color: rgba(79, 110, 247, .2);
}

.contact-opt--mail:hover {
    background: #f0f3ff;
    border-color: rgba(79, 110, 247, .18);
}

.contact-opt--wa:hover {
    background: #f0fff5;
    border-color: rgba(37, 211, 102, .25);
}

.contact-opt--tg:hover {
    background: #f0f8ff;
    border-color: rgba(0, 136, 204, .22);
}

.contact-opt--ig:hover {
    background: #fff0f3;
    border-color: rgba(228, 64, 95, .20);
}

.contact-opt--fb:hover {
    background: #f0f5ff;
    border-color: rgba(0, 105, 255, .20);
}

/* Icon */
.contact-opt-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-opt-icon img {
    width: 20px;
    height: 20px;
}

/* Label */
.contact-opt-name {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text);
}

/* Arrow — zero-width by default, grows on hover so content shifts left smoothly */
.contact-opt-arrow {
    width: 0;
    overflow: hidden;
    color: var(--text-light);
    opacity: 0;
    transform: translateX(-4px);
    transition: width .2s ease, opacity .2s ease, transform .2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.contact-opt:hover .contact-opt-arrow {
    width: 14px;
    opacity: 1;
    transform: translateX(0);
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .contact-layout {
        width: 96vw;
    }

    .contact-sidebar {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 2.2rem;
    }

    .chat-messages {
        padding: 14px 14px 8px;
    }

    .chat-msg-row {
        max-width: 92%;
    }

    .chat-quick-replies {
        margin-left: 0;
    }

    .contact-opt {
        font-size: .68rem;
        padding: 5px 10px;
    }
}