/*
 * Amigo Chatbot Lead Collector — Styles
 */

:root {
    --acb-gold: #c9a84c;
    --acb-gold-light: #e2c470;
    --acb-dark: #111111;
    --acb-darker: #0a0a0a;
    --acb-card: #1a1a1a;
    --acb-white: #ffffff;
    --acb-gray: #888888;
    --acb-border: rgba(201, 168, 76, 0.28);
}

/* ── Toggle Button ── */
#acb-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--acb-gold);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--acb-dark);
    box-shadow: 0 6px 30px rgba(201, 168, 76, 0.5);
    transition: transform 0.25s, box-shadow 0.25s;
}
#acb-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 40px rgba(201, 168, 76, 0.7);
}
#acb-btn svg {
    width: 26px;
    height: 26px;
}

/* Pulse ring */
.acb-pulse {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--acb-gold);
    animation: acb-pulse 2s ease-out infinite;
    pointer-events: none;
}
@keyframes acb-pulse {
    0%   { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ── Panel ── */
#acb-panel {
    position: fixed;
    bottom: 96px;
    right: 24px;
    z-index: 99999;
    width: 370px;
    max-height: 560px;
    background: var(--acb-dark);
    border: 1px solid var(--acb-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
#acb-panel.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* ── Header ── */
.acb-header {
    background: linear-gradient(135deg, var(--acb-gold), var(--acb-gold-light));
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.acb-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.acb-avatar {
    width: 36px;
    height: 36px;
    background: var(--acb-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.acb-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--acb-dark);
    letter-spacing: 0.04em;
}
.acb-status {
    font-size: 0.65rem;
    color: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    gap: 4px;
}
.acb-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
}
.acb-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--acb-dark);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    line-height: 1;
}
.acb-close:hover {
    opacity: 1;
}

/* ── Messages ── */
.acb-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
}
.acb-messages::-webkit-scrollbar {
    width: 3px;
}
.acb-messages::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 3px;
}

.acb-msg {
    max-width: 88%;
    font-size: 0.82rem;
    line-height: 1.6;
    padding: 10px 14px;
    border-radius: 4px;
    animation: acb-fadeIn 0.3s ease;
}
@keyframes acb-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.acb-bot {
    background: rgba(201, 168, 76, 0.08);
    border-left: 2px solid var(--acb-gold);
    color: #ccc;
    align-self: flex-start;
}
.acb-user {
    background: rgba(201, 168, 76, 0.18);
    color: var(--acb-white);
    align-self: flex-end;
    text-align: right;
}
.acb-bot.typing {
    color: var(--acb-gray);
    font-style: italic;
}

/* ── Success message ── */
.acb-success {
    background: rgba(34, 197, 94, 0.1);
    border-left: 2px solid #22c55e;
    color: #86efac;
    font-weight: 500;
}

/* ── Contact Card ── */
.acb-contact-card {
    margin: 0 12px 12px;
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 8px;
    padding: 14px;
    animation: acb-fadeIn 0.4s ease;
}
.acb-contact-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--acb-gold);
    margin-bottom: 10px;
}
.acb-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.8rem;
    color: #ccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.acb-contact-item:last-child {
    border-bottom: none;
}
.acb-contact-item a {
    color: var(--acb-gold-light);
    text-decoration: none;
    transition: color 0.2s;
}
.acb-contact-item a:hover {
    color: var(--acb-white);
    text-decoration: underline;
}
.acb-contact-icon {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* ── Form Steps ── */
.acb-form {
    border-top: 1px solid rgba(201, 168, 76, 0.12);
    padding: 12px 14px 14px;
    flex-shrink: 0;
}
.acb-step {
    animation: acb-fadeIn 0.3s ease;
}
.acb-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--acb-gold);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
}
.acb-input-row {
    display: flex;
    gap: 6px;
    align-items: flex-end;
}
.acb-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: var(--acb-white);
    padding: 10px 12px;
    font-size: 0.82rem;
    font-family: 'Inter', sans-serif;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}
.acb-input:focus {
    border-color: var(--acb-gold);
}
.acb-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}
.acb-textarea {
    resize: none;
    min-height: 44px;
}
.acb-next,
.acb-submit-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.acb-next {
    background: rgba(201, 168, 76, 0.15);
    color: var(--acb-gold);
}
.acb-next:hover {
    background: rgba(201, 168, 76, 0.3);
    transform: translateX(2px);
}
.acb-submit-btn {
    background: var(--acb-gold);
    color: var(--acb-dark);
}
.acb-submit-btn:hover {
    background: var(--acb-gold-light);
    transform: scale(1.05);
}
.acb-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ── Validation error shake ── */
@keyframes acb-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.acb-shake {
    animation: acb-shake 0.4s ease;
}
.acb-input.error {
    border-color: #ef4444;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    #acb-panel {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 88px;
        max-height: 80vh;
        border-radius: 12px;
    }
    #acb-btn {
        bottom: 18px;
        right: 18px;
        width: 54px;
        height: 54px;
    }
    #acb-btn svg {
        width: 22px;
        height: 22px;
    }
}
