/* =========================================================
   COMPONENTS CSS — Floating Bars, Drawer, Modal, Social Icons,
   Scroll Top, Popup Modal, Expert Bar
   ========================================================= */

/* ================= FIXED SIDE CTA & DRAWER ================= */
.fixed-side-cta {
    position: fixed;
    right: -85px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    z-index: 990;
    background-color: #1f241c;
    color: var(--white);
    padding: 12px 26px;
    border-radius: 12px 12px 0 0;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: var(--transition-normal);
}

.fixed-side-cta:hover {
    background-color: var(--white);
    padding-bottom: 16px;
    color: var(--olive-dark);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 36, 28, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.drawer-overlay.active { visibility: visible; }

.side-drawer {
    position: fixed;
    top: 130px;
    right: -450px;
    width: 100%;
    max-width: 440px;
    height: auto;
    border-radius: 17px;
    background-color: var(--bg-cream);
    z-index: 1001;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.side-drawer.active { right: 0; }

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.drawer-close:hover {
    background-color: rgba(0,0,0,0.05);
    transform: rotate(90deg);
}

/* ================= POPUP MODAL ================= */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 36, 28, 0.75);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.popup-modal.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-cream);
    width: 90%;
    max-width: 500px;
    padding: 45px 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.85);
    transition: var(--transition-smooth);
    border: 2px solid var(--primary-olive);
}

.popup-modal.active .popup-content { transform: scale(1); }

.popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.popup-close:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--text-dark);
}

/* ================= EXPERT SCROLL BAR ================= */
.expert-scroll-bar {
    position: fixed;
    bottom: -120px;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #1f241c;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.12);
    border-top: 3px solid #1f241c;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 12px 20px;
}

.expert-scroll-bar.is-visible { bottom: 0; }

.expert-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.expert-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.expert-badge {
    background: #f4f6f0;
    color: #1f241c;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.expert-text .expert-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.expert-text .expert-sub {
    font-size: 0.85rem;
    color: #666;
    margin: 3px 0 0 0;
}

.expert-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-expert-call {
    background: #FBF6E9;
    color: #1f241c !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn-expert-call:hover {
    background: #9ca07c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
}

.btn-expert-call svg { animation: pulseIcon 1.8s infinite; }

.expert-close-btn {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.2s ease;
}

.expert-close-btn:hover { color: #1f241c; }

@keyframes pulseIcon {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .expert-sub { display: none; }
    .expert-text .expert-title { font-size: 0.9rem; }
    .btn-expert-call { padding: 8px 14px; font-size: 0.85rem; }
}

/* ================= FLOATING SOCIAL ICONS ================= */
.floating-social-icons {
    position: fixed;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99999;
}

.social-float {
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-float i {
    color: #1f241c;
    font-size: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 165, 49, 0.25);
    background-color: #1f241c;
}

.social-float:hover i { color: #fbf6e9; }

@media (max-width: 768px) {
    .floating-social-icons {
        position: fixed !important;
        left: -65px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        padding: 8px 0 8px 8px;
    }

    .floating-social-icons.active { left: 10px !important; }

    .social-toggle {
        position: absolute !important;
        right: -28px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 28px !important;
        height: 48px !important;
        background-color: #1f241c !important;
        border: none !important;
        color: #ffffff !important;
        border-radius: 0 10px 10px 0 !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 3px 0 8px rgba(0,0,0,0.15) !important;
        outline: none;
    }

    .social-toggle .toggle-icon {
        transition: transform 0.3s ease !important;
        font-size: 13px !important;
        font-weight: bold !important;
        display: inline-block !important;
    }

    .floating-social-icons.active .toggle-icon {
        transform: rotate(180deg) !important;
    }
}

@media (min-width: 769px) {
    .social-toggle { display: none !important; }
}

/* ================= SCROLL TO TOP ================= */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-olive);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 900;
}

.scroll-top-btn.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--olive-dark);
    transform: translateY(-3px);
}

/* ================= MOUSE SPOTLIGHT ================= */
.mouse-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                rgba(156, 160, 124, 0.08),
                transparent 40%);
}

.mouse-spotlight.active { opacity: 1; }

/* ================= ILL MODAL (Popup Form) ================= */
:root {
    --ill-primary-color: #9ca07c;
    --ill-primary-hover: #888c6a;
    --ill-form-bg: #fbf6e9;
    --ill-text-dark: #2d3748;
    --ill-text-muted: #64748b;
    --ill-input-bg: #f3eee0;
    --ill-input-border: #e2dcd0;
}

.ill-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    padding: 15px;
}

.ill-modal-overlay.ill-active {
    opacity: 1;
    visibility: visible;
}

.ill-modal-card {
    width: 100%;
    max-width: 750px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px 1fr;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    transform: scale(0.95) translateY(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    max-height: 85vh;
}

.ill-modal-overlay.ill-active .ill-modal-card {
    transform: scale(1) translateY(0);
}

.ill-modal-sidebar {
    background-color: #9CA07C;
    color: #ffffff;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
}

.ill-profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.ill-avatar-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.ill-avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ill-profile-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.ill-profile-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
}

.ill-quote-block {
    margin: 14px 0;
    font-size: 0.8rem;
    line-height: 1.4;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.ill-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.ill-modal-form-area {
    background-color: var(--ill-form-bg);
    position: relative;
    overflow-y: auto;
}

.ill-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #718096;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.ill-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--ill-text-dark);
}

.ill-form-header { margin-bottom: 16px; }

.ill-form-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ill-text-dark);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.ill-form-subtitle {
    font-size: 0.8rem;
    color: var(--ill-text-muted);
    font-weight: 500;
    margin: 0;
}

.ill-form-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ill-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ill-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ill-form-group label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--ill-text-dark);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.ill-input-wrapper {
    position: relative;
    width: 100%;
}

.ill-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #1f241c;
    pointer-events: none;
    z-index: 2;
}

.ill-textarea-wrapper .ill-input-icon {
    top: 12px;
    transform: none;
}

.ill-form-control {
    width: 100%;
    background: var(--ill-input-bg);
    border: 1px solid var(--ill-input-border);
    border-radius: 6px;
    min-height: 38px;
    padding: 8px 12px 8px 36px;
    color: var(--ill-text-dark);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ill-form-control:focus {
    border-color: var(--ill-primary-color);
    box-shadow: 0 0 0 2px rgba(156, 160, 124, 0.15);
    background: #ffffff;
}

.ill-form-control::placeholder { color: #94a3b8; }

select.ill-form-control {
    cursor: pointer;
    appearance: none;
    padding-right: 36px;
}

.ill-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--ill-primary-color);
    pointer-events: none;
}

textarea.ill-form-control {
    min-height: 70px;
    resize: vertical;
    padding-top: 10px;
}

.ill-submit-btn {
    width: 100%;
    border: none;
    background-color: var(--ill-primary-color);
    color: #ffffff;
    min-height: 42px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.ill-submit-btn:hover {
    background-color: var(--ill-primary-hover);
    box-shadow: 0 4px 10px rgba(156, 160, 124, 0.3);
    transform: translateY(-1px);
}

.ill-success-state {
    display: none;
    text-align: center;
    padding: 30px 15px;
}

.ill-success-icon {
    font-size: 2.5rem;
    color: var(--ill-primary-color);
    margin-bottom: 12px;
}

.ill-success-state h3 {
    font-size: 1.25rem;
    color: var(--ill-text-dark);
    margin-bottom: 6px;
}

.ill-success-state p {
    color: var(--ill-text-muted);
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .ill-modal-overlay { padding: 10px; }
    .ill-modal-card {
        grid-template-columns: 1fr;
        max-width: 100%;
        max-height: 90vh;
    }
    .ill-modal-sidebar {
        padding: 18px 15px;
        display: none;
    }
    .ill-avatar-container {
        width: 55px;
        height: 55px;
        margin-bottom: 6px;
    }
    .ill-quote-block { margin: 8px 0; font-size: 0.75rem; }
    .ill-form-row-2 { grid-template-columns: 1fr; }
    .ill-modal-form-area { padding: 20px 16px; }
}