/* ========================================
   MULTIMODAL INPUT STYLES
   ======================================== */

/* Voice Input Button */
.btn-voice {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    /* WCAG 2.5.5 compliant */
    height: 48px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.btn-voice:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-voice:disabled {
    background: var(--border);
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-voice.recording {
    background: var(--danger);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Voice Status */
.voice-status {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    min-height: 1.5rem;
}

.voice-status.recording {
    color: var(--danger);
    font-weight: 600;
}

.voice-status.error {
    color: var(--danger);
}

/* Image Upload */
.image-upload-wrapper {
    margin-bottom: 1rem;
}

.image-upload-btn {
    min-height: 56px;
    /* Large touch target */
    width: 100%;
    border: 2px dashed var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.image-upload-btn:hover {
    background: var(--primary);
    color: white;
    border-style: solid;
}

.btn-icon {
    font-size: 1.75rem;
}

/* Image Preview */
.image-preview-container {
    margin-top: 1rem;
}

.image-preview-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.image-preview {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.btn-remove-image {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.btn-remove-image:hover {
    transform: scale(1.1);
    background: #dc2626;
}

.image-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Label with voice button */
.label-with-voice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.label-with-voice .form-label {
    margin-bottom: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .btn-voice {
        width: 52px;
        height: 52px;
        font-size: 1.75rem;
    }

    .image-upload-btn {
        min-height: 64px;
        font-size: 1.1rem;
    }
}