/* ============================================
   ORCA AI ASSISTANT - REVISED DUAL-PATH STYLES
   ============================================ */

/* ============================================
   SCREEN CONTAINER
   ============================================ */
.orca-screen {
    padding: 1rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* ============================================
   PROGRESS INDICATOR
   ============================================ */
.orca-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.orca-progress span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.orca-progress span.active {
    background: linear-gradient(135deg, #D4A373, #E8C39E);
    color: #1a2e1a;
    box-shadow: 0 0 15px rgba(212, 163, 115, 0.4);
}

.orca-progress span.done {
    background: #22c55e;
    color: white;
}

.orca-progress .line {
    width: 30px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.orca-progress .line.done {
    background: #22c55e;
}

/* ============================================
   WELCOME SCREEN PATH BUTTONS
   ============================================ */
.orca-path-btn {
    width: 100%;
    padding: 1.25rem;
    border-radius: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.orca-path-btn.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.orca-path-btn.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.orca-path-btn.ai-btn {
    background: linear-gradient(135deg, #1a2e1a, #2d4a2d);
    border: 2px solid rgba(212, 163, 115, 0.3);
}

.orca-path-btn.ai-btn:hover {
    border-color: #D4A373;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 163, 115, 0.2);
}

/* ============================================
   CATEGORY BUTTONS (Product Selection)
   ============================================ */
.orca-category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 80px;
}

.orca-category-btn:hover {
    background: rgba(212, 163, 115, 0.1);
    border-color: rgba(212, 163, 115, 0.3);
    transform: translateY(-2px);
}

.orca-category-btn.selected {
    background: linear-gradient(135deg, rgba(212, 163, 115, 0.2), rgba(232, 195, 158, 0.1));
    border-color: #D4A373;
    box-shadow: 0 0 15px rgba(212, 163, 115, 0.2);
}

/* ============================================
   FORM FIELDS
   ============================================ */
.orca-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.orca-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.orca-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.orca-field input,
.orca-field select,
.orca-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.orca-field input:focus,
.orca-field select:focus,
.orca-field textarea:focus {
    outline: none;
    border-color: #D4A373;
    background: rgba(212, 163, 115, 0.05);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.5);
}

.orca-field input::placeholder,
.orca-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.orca-field select option {
    background: #1a2e1a;
    color: white;
}

.orca-hint {
    font-size: 0.75rem;
    color: rgba(212, 163, 115, 0.8);
}

/* ============================================
   TOGGLE BUTTONS
   ============================================ */
.orca-toggle-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.orca-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.orca-toggle-btn.active {
    background: linear-gradient(135deg, #D4A373, #E8C39E);
    border-color: #D4A373;
    color: #1a2e1a;
    font-weight: 600;
}

/* ============================================
   MEDIA BUTTONS (Photo/Voice)
   ============================================ */
.orca-media-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.orca-media-btn {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.orca-media-btn:hover {
    background: rgba(212, 163, 115, 0.1);
    border-color: rgba(212, 163, 115, 0.3);
    color: white;
}

.orca-media-btn.recording {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    animation: pulse-recording 1.5s ease-in-out infinite;
}

@keyframes pulse-recording {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

.orca-attachments,
.orca-voice-note {
    padding: 0.5rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 0.5rem;
    color: #86efac;
    font-size: 0.75rem;
}

/* ============================================
   ATTACHMENT PREVIEW UI
   ============================================ */
.orca-attachments-preview {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
}

.orca-preview-section {
    margin-bottom: 1rem;
}

.orca-preview-section:last-child {
    margin-bottom: 0;
}

.orca-preview-section h4 {
    color: #D4A373;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.orca-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.orca-preview-item {
    position: relative;
    width: 70px;
    text-align: center;
}

.orca-preview-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.orca-preview-name {
    display: block;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orca-remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.orca-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.orca-remove-btn.audio {
    position: static;
    width: auto;
    height: auto;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.orca-audio-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.orca-audio-player {
    flex: 1;
    height: 32px;
}

.orca-transcript {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 0.5rem;
}

.orca-transcript strong {
    color: #86efac;
    font-size: 0.75rem;
}

.orca-transcript p {
    color: white;
    font-size: 0.8rem;
    font-style: italic;
    margin: 0.25rem 0 0 0;
}

/* ============================================
   NAVIGATION BUTTONS
   ============================================ */
.orca-nav-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.orca-btn-primary,
.orca-btn-secondary {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.orca-btn-primary {
    background: linear-gradient(135deg, #D4A373, #E8C39E);
    color: #1a2e1a;
}

.orca-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 163, 115, 0.3);
}

.orca-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.orca-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.orca-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   CONFIRMATION SCREEN
   ============================================ */
.orca-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.orca-summary-section {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.orca-summary-section:last-child {
    border-bottom: none;
}

.orca-summary-section h3 {
    color: #D4A373;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.orca-summary-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.orca-edit-btn {
    width: 100%;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: rgba(212, 163, 115, 0.8);
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.orca-edit-btn:hover {
    color: #D4A373;
}

/* ============================================
   SUBMIT OPTIONS
   ============================================ */
.orca-submit-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.orca-submit-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.orca-submit-btn.email {
    background: linear-gradient(135deg, #1a2e1a, #2d4a2d);
    border-color: rgba(212, 163, 115, 0.3);
    color: white;
}

.orca-submit-btn.email:hover {
    border-color: #D4A373;
    transform: translateY(-2px);
}

.orca-submit-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.orca-submit-btn.whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

.orca-submit-btn.both {
    background: linear-gradient(135deg, #D4A373, #E8C39E);
    color: #1a2e1a;
}

.orca-submit-btn.both:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 163, 115, 0.4);
}

/* ============================================
   SUCCESS SCREEN
   ============================================ */
.success-screen {
    text-align: center;
}

.orca-success-details {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.orca-success-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.875rem;
    padding: 0.25rem 0;
}

.orca-response-time {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.orca-response-time p {
    margin: 0.25rem 0;
}

.orca-urgent-contact {
    background: rgba(212, 163, 115, 0.1);
    border: 1px solid rgba(212, 163, 115, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    color: white;
    font-size: 0.875rem;
}

.orca-urgent-contact a {
    color: #D4A373;
    text-decoration: none;
}

.orca-urgent-contact a:hover {
    text-decoration: underline;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .orca-screen {
        padding: 0.75rem;
    }

    .orca-category-btn {
        padding: 0.75rem 0.25rem;
        min-height: 70px;
    }

    .orca-category-btn .text-2xl {
        font-size: 1.5rem;
    }

    .orca-category-btn .text-sm {
        font-size: 0.7rem;
    }

    .orca-nav-buttons {
        flex-direction: column;
    }

    .orca-submit-options {
        gap: 0.5rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.orca-screen {
    animation: fadeIn 0.3s ease-out;
}

/* Smooth scrollbar */
.orca-screen::-webkit-scrollbar {
    width: 4px;
}

.orca-screen::-webkit-scrollbar-track {
    background: transparent;
}

.orca-screen::-webkit-scrollbar-thumb {
    background: rgba(212, 163, 115, 0.3);
    border-radius: 2px;
}

.orca-screen::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 163, 115, 0.5);
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.orca-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.orca-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(212, 163, 115, 0.2);
    border-top-color: #D4A373;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.orca-loading p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* ============================================
   VALIDATION ERRORS
   ============================================ */
.orca-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.orca-error p {
    color: #fca5a5;
    font-size: 0.75rem;
    margin: 0.25rem 0;
}

.orca-error p:before {
    content: '⚠️ ';
}