/* ============================================================
   portal-support.css
   Unified Operator Support Button & Modal Styles
   Shared across: Booking, Customer, Driver, Quotes, Packages
   ============================================================ */

/* ── Support Button in Header ───────────────────────────── */
.portal-header-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #334155;
}

.portal-header-support-btn:hover {
    border-color: var(--pkg-primary, #6366f1);
    color: var(--pkg-primary, #6366f1);
    background: #fdf4ff;
}

/* ── Support Modal Overlay ──────────────────────────────── */
.portal-support-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.portal-support-modal-overlay.show {
    display: flex;
}

/* ── Modal Box ──────────────────────────────────────────── */
.portal-support-modal-box {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: supportPopIn 0.2s ease;
}

@keyframes supportPopIn {
    from { transform: scale(0.95); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* ── Modal Header ───────────────────────────────────────── */
.portal-support-header {
    background: var(--pkg-primary, #6366f1);
    padding: 20px 24px;
    color: #fff;
    position: relative;
}

.portal-support-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
}

.portal-support-header p {
    margin: 4px 0 0 0;
    font-size: 0.82rem;
    opacity: 0.9;
}

/* ── Close Button ───────────────────────────────────────── */
.portal-support-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.portal-support-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ── Modal Body ─────────────────────────────────────────── */
.portal-support-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Contact Items ──────────────────────────────────────── */
.portal-support-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-decoration: none !important;
    transition: background-color 0.2s, border-color 0.2s;
    color: inherit;
}

.portal-support-item:hover {
    background-color: #f8fafc;
    border-color: var(--pkg-primary, #6366f1);
}

.portal-support-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #475569;
    flex-shrink: 0;
}

.portal-support-item:hover .portal-support-item-icon {
    background: #eff6ff;
    color: var(--pkg-primary, #6366f1);
}

.portal-support-item-details h4 {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portal-support-item-details p {
    margin: 2px 0 0 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
}
