
/* ==========================================
   PUBLIC ADJUSTER - LIVE ASSISTANCE
   Existing Dark Navy / Blue Theme
========================================== */

:root {
    --bg-dark: #071326;
    --panel: rgba(15, 23, 42, 0.88);
    --panel-deep: #0a223c;
    --border: rgba(255, 255, 255, 0.10);
    --text: #ffffff;
    --muted: #94a3b8;
    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --green: #4ade80;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #071326;
}

    html::-webkit-scrollbar {
        width: 8px;
    }

    html::-webkit-scrollbar-track {
        background: #071326;
    }

    html::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #3b82f6, #6366f1);
        border-radius: 10px;
    }

body {
    min-height: 100vh;
    width: 100%;
    color: var(--text);
    background: linear-gradient( 44deg, rgb(1 5 16 / 97%), rgb(7 20 45 / 28%) ), url('../images/background-pattern.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 15px;
    overflow-x: hidden;
    overflow-y: auto;
}

a {
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

/* MAIN PAGE */

.live-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* LIVE HEADER */

.live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 22px;
    background: rgba(10, 20, 45, 0.9);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.live-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .live-heading h1 {
        font-size: 1.45rem;
        font-weight: 800;
        letter-spacing: 2px;
    }

.live-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .45;
        transform: scale(1.2);
    }
}

.live-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff;
    padding: 11px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: .92rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, .3);
    transition: transform .2s, filter .2s;
}

    .live-phone:hover {
        transform: translateY(-2px);
        filter: brightness(1.15);
    }

/* MAIN CONTENT */

.live-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* VIDEO */

.stream-section,
.info-video-section {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 300px;
    max-height: 680px;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

    .video-container iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

.live-video-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    background: #dc2626;
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    pointer-events: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .4);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: livePulse 1.2s infinite;
}

@keyframes livePulse {
    50% {
        opacity: .3;
    }
}

/* SHARED PANELS */

.lead-section,
.chat-section {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
}

.section-heading {
    margin-bottom: 22px;
}

    .section-heading h2,
    .chat-header h2,
    .info-video-header h2 {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .section-heading p,
    .chat-header p {
        font-size: .9rem;
        color: #aabbd0;
        line-height: 1.6;
    }

/* LEAD FORM */

.lead-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

    .form-group label {
        color: #dce8f5;
        font-size: .86rem;
        font-weight: 600;
    }

    .form-group input {
        width: 100%;
        min-height: 46px;
        padding: 12px 14px;
        background: #07182b;
        border: 1px solid #294766;
        border-radius: 8px;
        color: #fff;
        outline: none;
        transition: border-color .2s, box-shadow .2s;
    }

        .form-group input::placeholder {
            color: #74869c;
        }

        .form-group input:focus {
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, .13);
        }

.lead-submit-btn {
    min-height: 46px;
    padding: 12px 22px;
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    transition: transform .2s, filter .2s;
}

    .lead-submit-btn:hover {
        transform: translateY(-2px);
        filter: brightness(1.1);
    }

.form-status {
    grid-column: 1 / -1;
    color: #4ade80;
    font-size: .85rem;
    line-height: 1.5;
}

    .form-status:empty {
        display: none;
    }

/* GREEN / RED BUTTONS */

.action-section {
    width: 100%;
}

.cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 72px;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .3);
    transition: transform .2s, filter .2s;
}

    .cta-btn i {
        font-size: 1.35rem;
    }

    .cta-btn:hover {
        transform: translateY(-2px);
        filter: brightness(1.1);
    }

.green-btn {
    background: linear-gradient(180deg, #44ff00, #108702);
}

.red-btn {
    background: linear-gradient(180deg, #ff0000, #930000);
}

/* CHAT SECTION */

.chat-section {
    scroll-margin-top: 20px;
}

.chat-header {
    margin-bottom: 20px;
}

    .chat-header h2 {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .chat-header h2 i {
            color: #60a5fa;
        }

.chat-messages {
    min-height: 200px;
    max-height: 340px;
    overflow-y: auto;
    background: rgba(0, 0, 0, .2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.chat-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .72rem;
    font-weight: 700;
    color: white;
}

.avatar-p {
    background: #0284c7;
}

.avatar-jd {
    background: #2563eb;
}

.chat-bubble {
    max-width: 85%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .04);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: .85rem;
}

    .chat-bubble strong {
        display: block;
        margin-bottom: 5px;
        color: #60a5fa;
        font-size: .8rem;
    }

    .chat-bubble p {
        color: #dce8f5;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

.chat-input-form {
    display: flex;
    gap: 10px;
}

    .chat-input-form input {
        flex: 1;
        min-width: 0;
        min-height: 46px;
        padding: 12px 14px;
        background: #07182b;
        border: 1px solid #294766;
        border-radius: 8px;
        color: white;
        outline: none;
    }

        .chat-input-form input:focus {
            border-color: #3b82f6;
        }

.send-btn {
    width: 48px;
    min-height: 46px;
    border: none;
    border-radius: 8px;
    background: #6366f1;
    color: #fff;
    font-size: 1rem;
}

    .send-btn:hover {
        background: #4f46e5;
    }

.chat-notice {
    margin-top: 12px;
    color: #94a3b8;
    font-size: .78rem;
}

/* INFORMATIONAL VIDEO */

.info-video-section {
    scroll-margin-top: 20px;
}

.info-video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 4px 18px;
}

    .info-video-header h2 {
        margin: 0;
    }

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: #1e40af;
    color: white;
    font-weight: 600;
}

    .back-btn:hover {
        background: #2563eb;
    }

/* TABLET */

@media (max-width: 1024px) {
    .video-container {
        max-height: none;
    }

    .lead-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MOBILE */

@media (max-width: 768px) {
    body {
        padding: 10px;
        background-attachment: scroll;
    }

    .live-page,
    .live-main {
        gap: 12px;
    }

    .live-header {
        padding: 14px;
    }

    .live-heading h1 {
        font-size: 1.15rem;
    }

    .live-phone {
        padding: 9px 12px;
        font-size: .78rem;
    }

    .stream-section,
    .info-video-section {
        padding: 8px;
    }

    .video-container {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .lead-section,
    .chat-section {
        padding: 18px;
    }

    .lead-form {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .lead-submit-btn {
        width: 100%;
    }

    .cta-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cta-btn {
        min-height: 62px;
        font-size: .95rem;
    }

    .section-heading h2,
    .chat-header h2,
    .info-video-header h2 {
        font-size: 1.1rem;
    }

    .chat-messages {
        min-height: 180px;
        max-height: 300px;
    }
}

@media (max-width: 420px) {
    .live-header {
        gap: 8px;
    }

    .live-heading {
        gap: 7px;
    }

    .live-phone {
        padding: 9px;
        font-size: .72rem;
    }

        .live-phone i {
            font-size: .75rem;
        }

    .chat-bubble {
        max-width: calc(100% - 45px);
    }

    .info-video-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* PROFESSIONAL US WEBSITE FOOTER */

.site-footer {
    background: rgba(10, 20, 45, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    padding: 20px 24px;
    color: #94a3b8;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    font-size: 13px;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

    .footer-links a {
        color: #cbd5e1;
        font-size: 13px;
        transition: color .2s;
    }

        .footer-links a:hover {
            color: #60a5fa;
        }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 15px;
    padding-top: 15px;
    text-align: center;
}

    .footer-bottom p {
        color: #64748b;
        font-size: 11px;
        line-height: 1.6;
    }

@media (max-width: 768px) {
    .site-footer {
        padding: 18px;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: 15px;
    }
}
