/* ==========================================
   CUSTOMER SELECTION STEP - REDESIGNED
   Matching EventInformationStep Style
   ========================================== */

/* Container & Layout */
.cust-container {
    margin: 0 auto;
    padding: 1rem;
}

.cust-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cust-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.cust-header-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Badge */
.cust-badge-success {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Selected Customer Card */
.cust-selected-card {
    background: white;
    border: 2px solid #10b981;
    border-radius: 0.625rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cust-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.cust-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cust-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cust-btn-remove {
    padding: 0.5rem 1rem;
    background: #fee2e2;
    border: 1px solid #dc2626;
    color: #991b1b;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.cust-btn-remove:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-1px);
}

/* Customer Details Grid */
.cust-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.cust-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cust-detail-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cust-detail-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #111827;
}

.cust-highlight {
    color: #10b981;
    font-weight: 700;
}

/* Search Section */
.cust-section-card {
    background: white;
    border-radius: 0.625rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.25rem;
}

.cust-section-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Search Bar */
.cust-search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.cust-form-control {
    flex: 1;
    min-width: 250px;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #111827;
    transition: all 0.2s;
}

.cust-form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cust-btn-icon {
    padding: 0.625rem 1rem;
    background: white;
    border: 1px solid #d1d5db;
    color: #6b7280;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cust-btn-icon:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}

.cust-btn-success {
    padding: 0.625rem 1rem;
    background: #10b981;
    border: 1px solid #10b981;
    color: white;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.cust-btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

/* Filter Buttons */
.cust-type-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.cust-filter-btn {
    padding: 0.5rem 0.875rem;
    background: white;
    border: 1px solid #d1d5db;
    color: #6b7280;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.cust-filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.cust-filter-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.cust-filter-btn.vip.active {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

/* Search Results Header */
.cust-search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.cust-results-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.cust-text-muted {
    font-size: 0.8125rem;
    color: #9ca3af;
    font-style: italic;
}

/* Loading State */
.cust-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 1rem;
    color: #6b7280;
}

.cust-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty States */
.cust-empty-search-state,
.cust-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 2px dashed #e5e7eb;
    border-radius: 0.75rem;
    margin: 1.5rem auto;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.cust-empty-search-state::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.cust-empty-search-state i,
.cust-no-results > i {
    font-size: 4rem;
    color: #3b82f6;
    margin-bottom: 1.5rem;
    display: block;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 6px rgba(59, 130, 246, 0.15));
}

.cust-empty-search-state h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.75rem 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.025em;
}

.cust-empty-search-state p,
.cust-no-results p {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.cust-no-results {
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    border-color: #fecaca;
}

.cust-no-results > i {
    color: #ef4444;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 6px rgba(239, 68, 68, 0.15));
}

.cust-d-flex {
    display: flex;
}

.cust-gap-md {
    gap: 0.75rem;
}

.cust-justify-center {
    justify-content: center;
}

.cust-btn-secondary {
    padding: 0.625rem 1rem;
    background: white;
    border: 1px solid #d1d5db;
    color: #6b7280;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.cust-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}

.cust-btn-accent {
    padding: 0.625rem 1rem;
    background: #3b82f6;
    border: 1px solid #3b82f6;
    color: white;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.cust-btn-accent:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Customer List */
.cust-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cust-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cust-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.15);
}

.cust-card.selected {
    border-color: #10b981;
    background: #f0fdf4;
}

.cust-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cust-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.cust-info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.cust-info-row i {
    width: 1rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.cust-info-row span {
    flex: 1;
}

.cust-vip-indicator {
    display: inline-flex;
    align-items: center;
    color: #f59e0b;
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

/* Utility Classes */
.cust-text-success {
    color: #10b981;
}

.cust-fw-semibold {
    font-weight: 600;
}

.cust-text-center {
    text-align: center;
}

.cust-mt-lg {
    margin-top: 1.5rem;
}

/* Modal Styles */
.cust-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}

.cust-modal-content {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.cust-modal-lg {
    max-width: 800px;
}

.cust-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 2px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 0.75rem 0.75rem 0 0;
}

.cust-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cust-modal-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.cust-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cust-container {
        padding: 0.75rem;
    }

    .cust-details-grid {
        grid-template-columns: 1fr;
    }

    .cust-search-bar {
        flex-direction: column;
    }

    .cust-form-control {
        min-width: 100%;
    }

    .cust-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .cust-modal-lg {
        max-width: 100%;
    }

    .cust-modal-header {
        padding: 1rem;
        border-radius: 0;
    }
}
