/* =============================================================================
   CAREER CORNER
   ============================================================================= */

/* --- Floating CTA Pill --- */
.cc-btn {
    position: fixed;
    top: 107px;
    right: 24px;
    z-index: 9980;
    border: none;
    background: #1EC86A;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(30,200,106,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 24px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: cc-glow 2.5s ease-in-out infinite;
}
.cc-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 24px rgba(30,200,106,0.4);
    animation: none;
}
.cc-btn.cc-btn--hidden {
    display: none;
}
.cc-btn-text {
    display: inline;
}
.cc-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* --- Gentle glow pulse on shadow only --- */
@keyframes cc-glow {
    0%   { box-shadow: 0 4px 16px rgba(30,200,106,0.3); }
    50%  { box-shadow: 0 4px 24px rgba(30,200,106,0.55), 0 0 0 8px rgba(30,200,106,0.15); }
    100% { box-shadow: 0 4px 16px rgba(30,200,106,0.3); }
}

/* --- Panel --- */
.cc-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    z-index: 9995;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -6px 0 32px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    pointer-events: none;
}
.cc-panel.cc-panel--open {
    transform: translateX(0);
    pointer-events: all;
}

/* --- Panel Header --- */
.cc-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 3px solid var(--green);
    background: #fff;
    flex-shrink: 0;
}
.cc-panel-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.cc-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--navy);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
}
.cc-panel-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}
.cc-panel-minimise,
.cc-panel-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cc-panel-minimise:hover { color: var(--text-dark); }
.cc-panel-close:hover { color: #C0392B; }

/* --- Panel Body --- */
.cc-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* --- Messages --- */
.cc-msg {
    max-width: 90%;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.6;
}
.cc-msg--system {
    background: var(--bg-section);
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.cc-msg--user {
    background: var(--violet);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.cc-msg--briefing {
    background: var(--bg-section);
    border-left: 3px solid var(--border);
    color: var(--text-dark);
    align-self: flex-start;
    max-width: 95%;
    border-radius: 0 12px 12px 0;
    white-space: pre-line;
}

/* --- Funnel CTA --- */
.cc-funnel-cta {
    display: block;
    text-align: left;
    background: none;
    color: var(--violet);
    padding: 10px 16px;
    border: 1px solid var(--violet);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    margin-top: 4px;
    align-self: flex-start;
    max-width: 95%;
    line-height: 1.5;
}
.cc-funnel-cta:hover {
    background: var(--violet);
    color: #fff;
}

/* --- Email Form --- */
.cc-email-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: flex-start;
    width: 100%;
    max-width: 95%;
}
.cc-email-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.15s ease;
    background: #fff;
}
.cc-email-input:focus { border-color: var(--violet); }
.cc-email-input.cc-email-input--error { border-color: #C0392B; }
.cc-email-hint {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.5;
}
.cc-email-error {
    font-size: 0.78rem;
    color: #C0392B;
    line-height: 1.4;
    display: none;
}
.cc-email-error.cc-email-error--visible { display: block; }
.cc-email-submit {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: var(--violet);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.cc-email-submit:hover { background: var(--violet-dark); }
.cc-email-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Chat Input --- */
.cc-panel-footer {
    padding: 12px 20px 16px;
    border-top: 1px solid var(--border);
    background: #fff;
    flex-shrink: 0;
}
.cc-input-row { display: flex; gap: 8px; }
.cc-chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    outline: none;
    resize: vertical;
    min-height: 42px;
    max-height: 200px;
    transition: border-color 0.15s ease;
    background: #fff;
}
.cc-chat-input:focus { border-color: var(--violet); }
.cc-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: none;
    background: var(--violet);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.cc-send-btn:hover { background: var(--violet-dark); }
.cc-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.cc-send-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Close Session Button --- */
.cc-end-session {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: #12153D;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease;
}
.cc-end-session:hover {
    background: #2A2D52;
}

/* --- Disclaimer (fixed in footer) --- */
.cc-disclaimer {
    font-size: 0.78rem;
    color: #333333;
    line-height: 1.4;
    padding: 10px 16px;
    background: #F5F6FA;
    border-radius: 6px;
    margin-top: 8px;
    margin-bottom: 4px;
}
.cc-disclaimer strong {
    display: block;
    margin-bottom: 3px;
    font-size: 0.78rem;
    color: #12153D;
}

/* --- Marketing opt-in checkbox --- */
.cc-optin-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.78rem;
    color: #555555;
    line-height: 1.4;
    cursor: pointer;
    margin-top: 2px;
}
.cc-optin-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #6C63FF;
}

/* --- Predictive Dropdown --- */
.cc-suggestions {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    max-height: 240px;
    overflow-y: auto;
    display: none;
    z-index: 2;
    margin-bottom: 8px;
}
.cc-suggestions.cc-suggestions--visible { display: block; }
.cc-suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
    transition: background 0.1s ease;
}
.cc-suggestion-item:last-child { border-bottom: none; }
.cc-suggestion-item:hover { background: var(--bg-section); }
.cc-suggestion-cat {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* --- Loading --- */
.cc-loading {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    align-self: flex-start;
}
.cc-loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--violet);
    opacity: 0.3;
    animation: cc-dot-pulse 1.2s ease-in-out infinite;
}
.cc-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.cc-loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes cc-dot-pulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
    40% { opacity: 1; transform: scale(1.2); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .cc-panel {
        width: 100vw;
    }
    .cc-btn {
        top: auto;
        bottom: 80px;
        right: 24px;
        padding: 12px;
        border-radius: 50%;
        gap: 0;
    }
    .cc-btn-text {
        display: none;
    }
    .cc-btn svg {
        width: 22px;
        height: 22px;
    }
}
